Repository navigation
firstmate-crew 0.9.1: keep a crewmate's status line through a compaction (bb 0.49) - #98
Merged
Merged
Conversation
…ion (bb 0.49) bb 0.49 (get-bb/bb#6893) gives thread.idle's lastAssistantText and threads.output only the latest turn's reply, so crew autocompact's compaction turn yields nothing and the board dropped a blocked, needs-decision, failed or paused crewmate to Idle. ReportCache now keeps the report it has on a blank text and, with none cached, reads the last root agentMessage from the event log (100-row pages). The charter gets the same fallback for `bb thread output`, words the crew listing for bb 0.47-0.49 (archived threads left out from 0.49), and uses `bb git status <environment-id>` for git state, keeping `bb thread show --work-status` for bb 0.47. Refs #75. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
The bb 0.49.0 release scout's three firstmate-crew compatibility fixes (#75, the scout's comment there).
Status line lost after autocompact
bb 0.49 (get-bb/bb#6893) gives
thread.idle'slastAssistantTextandthreads.outputonly the latest turn's reply. A compaction-only turn yields nothing, so the board lost the crewmate's status line andcrewColumndropped a blocked / needs-decision / failed / paused crewmate to Idle. Those are the crewmates idle long enough for crew autocompact.ReportCache.rememberkeeps the cached report when the text is null or blank.report()does the same whenlastTextis blank. With nothing cached (after a restart), it reads the newlastAgentMessageport: the last rootagentMessageitem (noparentToolCallId) fromthreads.events.list, in 100-row pages, five pages at most.lastTextkeeps its meaning (the latest turn's reply), because quiet shipshape relies on exactly that.blocked:line, then an idle withnullkeeps the report and the Blocked column). A second server test covers the log fallback after a restart. TheReportCacheunit tests cover blank text, andbb-portstests cover paging, the 100-row cap and skipping subagent messages. Both server tests fail onmain'sfleet.ts.Charter
bb thread log <id> --json --all | jq …fallback for whenbb thread outputprints nothing. §3, §7 and the stuck-crewmate ladder point to it. The seq query skips subagent messages too.--include-archivedis added (Leave archived threads out of bb thread list by default get-bb/bb#6886).bb git status <environment-id>(bb 0.48+), withbb thread show <id> --work-statuskept for bb 0.47. That keepsengines.bbat>=0.47, so no engines bump.0a31a8a6bc6822c7) and its history updated.Docs and version
AGENTS.md: the compaction line now says bb 0.49 no longer notifies the parent for a compaction-only child turn (Merge child notices while the parent is blocked, and skip /compact turns get-bb/bb#7028). It also records the latest-turn-only output and its event-log fallback.firstmate-crew/AGENTS.md: the compaction-wakes-the-mate note is now limited to ≤0.48, and the interrupted-turn note is updated. A new invariant covers keeping the status line.Verified:
npm run typecheck,npm test(543 passed),bb plugin build, andcheck-plugin-consistency.mjs. Not checked against a live bb: the fallback reads the shapes from SDK 0.6.94's typings, and thejqquery was run against a live bb 0.49.0 thread.🤖 Generated with Claude Code