feat: 新增会话压缩命令和上下文显示功能

- ICHelperPanel: 新增 compressConversation 命令处理,支持手动触发会话压缩
- ICHelperPanel: 在加载历史会话时设置 lastTaskId,确保压缩操作可用
- webviewContent: 新增 contextUsage 消息处理,更新上下文使用量显示
- userInteraction: 将用户回答超时时间从 5 分钟延长至 2 小时
This commit is contained in:
XiaoFeng
2025-12-31 18:50:27 +08:00
parent b794d1ceb0
commit f933d84cd1
3 changed files with 47 additions and 2 deletions

View File

@ -571,6 +571,13 @@ export function getWebviewContent(iconUri?: string): string {
currentSegmentedMessage = null;
break;
case 'contextUsage':
// 更新上下文使用量显示
if (typeof updateContextDisplay === 'function') {
updateContextDisplay(message.currentTokens, message.maxTokens);
}
break;
case 'hideLoading':
// 隐藏加载指示器
hideLoadingIndicator();