Repository navigation
fix(adopt): 隐藏接入候选会话标识 - #837
Merged
deepcoldy merged 3 commits intoAug 21, 2026
Merged
Conversation
deepcoldy
requested changes
Aug 12, 2026
deepcoldy
left a comment
Owner
There was a problem hiding this comment.
当前改动不影响选择键、搜索或确认分发,但删除 Session ID 后,历史候选可能变得不可区分:buildAdoptEntries 的历史行仅展示 title / CLI / cwd / 分钟级最近活动时间。两条会话若这些字段相同,卡面会完全一致,而 callback 仍分别指向不同的 resume:<cliSessionId>,用户只能随机选择,存在恢复错误上下文的风险。
请为历史候选保留一个不暴露内部 session ID、但在同屏内稳定且可区分的展示信息,并补一条“两条不同 ID、其余展示字段相同”的回归测试。
另外建议本 PR 顺手清理此次删除产生的 sessionUnknown 及中英文 card.adopt.field_session / card.adopt.session_unknown 死代码。若目标是彻底避免 /adopt 流程向用户暴露 ID,还需一并处理两个现存边缘路径:OpenCode 无标题时以完整 ID 作为标题,以及历史候选点击后消失时 cmd.adopt.resume_not_found 回显完整 ID。
added 2 commits
August 21, 2026 17:52
Owner
复核了最新 commit(head
验证:
两点可选的小清理,供参考(均不阻断):
改动方向正确,是否合入及是否顺手处理上述两点,以维护者决定为准。 |
deepcoldy
added a commit
that referenced
this pull request
Aug 21, 2026
… adopt 隐藏会话标识) 本分支 pm2→supervisor 迁移主合并(1f53f5c)完成后,origin/master 又前进 3 个 commit。这 3 个都与 fleet 供给 / pm2 无关(用量检测、改名后 @ 注入、adopt 候选 展示),merge-tree 预览零冲突,直接快进合入以便 review 对齐最新 master。 Co-Authored-By: Claude <[email protected]>
|
🚀 Released in v3.17.0 |
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.
改动
/adopt候选卡中的 Session ID 展示。影响面
/adopt候选卡展示;tmux、Herdr、zellij 和历史恢复候选共用该卡片渲染路径。验证
pnpm vitest run test/card-builder.test.ts(171 passed)pnpm buildpnpm daemon:restart