Repository navigation
fix(collector): reveal only Paseo sessions you started, never dispatched agents, for 0.12.5 - #54
Merged
Merged
Conversation
…hed agents, for 0.12.5 Agents dispatched by another agent carry the paseo.parent-agent-id label or have never received a message from you in Paseo, and their first message is a <paseo-system> agent message. Any of these now keeps the session hidden, even if you talked to that sub-agent afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
0.12.4 的
scripts/claude-resume-visibility.ts以“会话里有你直接发出的消息”为条件,Paseo 子代理只要你之后和它对话过,或者是在 Paseo 之外用paseo run派出的,就会被列进claude --resume。期望是只列出你自己开的主会话。变化
paseo.parent-agent-id标签,或lastUserMessageAt为 null(从未收到你在 Paseo 里发的消息),即视为派出的代理,不处理。同一会话被多个代理引用时,任一记录显示为派出就不处理。<paseo-system>包裹的代理消息时视为子代理,之后你再和它对话也不改变。paseo run派出时加--label paseo.parent-agent-id=<派出者>可被识别为子代理。验证
bun test tests:567 通过,0 失败;新增覆盖带父代理标签、从未收到你消息、子代理之后被你直接对话三种情况均不改写。bun run typecheck通过。--dry-run):19 个主会话将显示,11 个运行中暂不处理;比 0.12.4 少列出 2 个从未收到你消息的代理和 1 个你后来对话过的子代理。🤖 Generated with Claude Code