跨进程 键盘用ai 在主应用里也要显示

This commit is contained in:
2026-02-26 21:47:22 +08:00
parent 69bd2b2af9
commit a711be4c4d
6 changed files with 104 additions and 2 deletions

View File

@@ -256,7 +256,20 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
if (self.hasLoadedData || self.isLoading) {
return;
}
[self loadChatHistory];
}
- (void)refreshChatHistory {
//
self.currentPage = 1;
self.hasMoreHistory = YES;
self.hasLoadedData = NO;
self.isLoading = NO;
//
[self.messages removeAllObjects];
[self.chatView clearMessages];
[self loadChatHistory];
}