feat: SSE close fix, auto-compaction status, undo/redo buttons, tool copy, build fix - #740
Open
jokinas wants to merge 5 commits into
Open
feat: SSE close fix, auto-compaction status, undo/redo buttons, tool copy, build fix#740jokinas wants to merge 5 commits into
jokinas wants to merge 5 commits into
Conversation
added 4 commits
September 6, 2026 20:01
…copy, build fix Fix agent-event-connection close() to prevent errors on shutdown; Add compacting AgentPhase for auto/manual compaction distinction; Add undo/redo/checkpoint buttons using pi-workspace-history; Add copy button to ToolCallBlock header; Fix React duplicate key in CompactionFileList; Move xterm CSS import to layout.tsx; Add outputFileTracingExcludes for build EPERM fix
Deduplicate ancestor messages when active branch changes during pagination request; Add 'i' prefix to numeric fallback keys to avoid React key collisions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: SSE连接修复、自动压缩状态显示、撤销/重做按钮、工具复制、构建修复
修改内容
SSE 连接修复
agent-event-connection.ts的close()方法,使用succeed()替代reject,防止正常关闭连接时产生AgentEventConnectionError报错自动压缩状态显示
AgentPhase类型中新增compacting状态,区分自动压缩与手动压缩撤销/重做/检查点按钮
handleSend调用 pi-workspace-history 插件的斜杠命令(/undo、/redo、/checkpoint)工具调用复制按钮
block.input.command),而非工具的回复内容React 重复 Key 修复
CompactionFileList的重复 key 警告,使用Array.from(new Set(files))对文件路径去重CSS 导入修复
@xterm/xterm/css/xterm.css从globals.css的@import移至layout.tsx的 JSimport@import中的 bare module 路径生产构建修复
next.config.ts中添加outputFileTracingExcludes,排除 UPPS 路径next build时EPERM错误翻译
chat.autoCompacting、chat.undo、chat.redo、chat.checkpointfeat: SSE close fix, auto-compaction status, undo/redo buttons, tool copy, build fix
Changes
SSE Connection Fix
agent-event-connection.tsclose()to usesucceed()instead ofreject, preventing spuriousAgentEventConnectionErroron normal connection shutdownAuto-Compaction Status
compactingstate toAgentPhasetype to distinguish auto-compaction from manual compactionUndo / Redo / Checkpoint Buttons
/undo,/redo,/checkpoint) viahandleSendTool Call Copy Button
block.input.command), not the tool resultReact Duplicate Key Fix
CompactionFileListduplicate key warning by deduplicating file paths withArray.from(new Set(files))CSS Import Fix
@xterm/xterm/css/xterm.cssfromglobals.csstolayout.tsxJS import@importProduction Build Fix
outputFileTracingExcludesforUPPSpath to fixEPERMerror duringnext buildon WindowsTranslations
chat.autoCompacting,chat.undo,chat.redo,chat.checkpoint