feat(v2): V2 适配壳 + V1/V2 统一入口(双格式) - #17
Merged
Merged
Conversation
Closed
Closed
fix(v2): 修复子代理工具识别、agent 显示与会话归账
fix(v2): 防止子代理结束事件跨会话归账
避免同一 sessionId 因新的 tool part 在 TUI 侧边栏重复展示,并补充回归测试。
fix(v2): 修复子代理会话归账与侧边栏去重
feat(panel): 新增可切换的面板边框
# Conflicts: # src/index.tsx
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.
功能
为 opencode2(V2 TUI)提供适配壳,采用「共享核心 + 双入口」架构,V1 行为保持不变:
src/core/):纯逻辑抽取(类型/格式化/颜色/KV/usage 读取/状态机)src/panel/):SubAgentPanel + PanelApi 契约(V1/V2 复用)tui/index.js双格式:{id, tui, setup})——同一包、同一 package.json 服务两端:tui字段(V1 面板)setup字段(V2 面板)——exports["./tui"]指向该入口src/v2/):context → PanelApi(tool 事件归一化 / execution 事件映射 / client.interrupt 真实取消)验证
tsc --noEmit通过、npm run build通过平台差异
发布策略