feat(panel): 区分子代理调用与衍生会话(⇢/↳ 标识) - #27
Merged
Merged
Conversation
- SubEntry 新增 origin(tool/sub)与 background 字段,含 isBackgroundInput helper - 后台工具条目显示 ⇢,衍生会话条目显示 ↳;展开区显示 origin 行 - V2 从本地库同步衍生会话(session_v2.parent_id),无工具条目时补 sub: 条目 - i18n 四语言补齐 origin.*;新增 isBackgroundInput 与恢复 endedAt 回归测试
- host 在会话 resume 后不会清空 time_idle,导致仍在运行的子会话被误判为 done - 新增 isSessionActive:以「最后一条消息晚于 time_idle」判定运行中(idle 消息视为停止) - statusOfChild 在 active 下不给出终态;adapter 对 active 子会话回报 busy - 面板轮询时把处于 busy 的终态条目恢复为 running(等待下一次真实 idle) - 补充 isSessionActive/statusOfChild 单元测试
- 新增 show_origin 设置与 /subagent-origin 开关,默认开启 - 关闭后隐藏列表的 ⇢/↳ 标记与展开详情的来源行 - 设置菜单(/subagent-sections)与 /subagent-config 摘要同步显示 - 补充四语言文案
- ⇢/↳ 标记与展开详情的来源行默认隐藏,用 /subagent-origin 按需开启 - V1/V2 的信号与命令读取同步调整默认值
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.
新增
SubEntry新增origin(tool/sub)与background?字段,并抽出isBackgroundInput()统一后台判断(此前三处重复)。⇢;↳;origin.*。session_v2.parent_id,排除 fork),没有对应工具条目的补成sub:<sid>条目——标题、agent、model/tokens/cost 与time_idle/idle_outcome终态全部来自数据库;按sessionId去重,并尊重清除名单;工具条目出现后由既有的findSubEntryKey按 sessionId 合并,不会重复显示。验证
isBackgroundInput单元测试;npm run typecheck/npm run build/npm test:29 项测试全部通过。src/v2/db.ts)提供子会话列表。