Skip to content

firstmate-crew 0.9.1: keep a crewmate's status line through a compaction (bb 0.49) - #98

Merged
gpambrozio merged 1 commit into
mainfrom
fm/firstmate-crew-bb-0.49-compat
Nov 6, 2026
Merged

gpambrozio merged 1 commit into
mainfrom
fm/firstmate-crew-bb-0.49-compat

Conversation

@gpambrozio

Copy link
Copy Markdown
Owner

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's lastAssistantText and threads.output only the latest turn's reply. A compaction-only turn yields nothing, so the board lost the crewmate's status line and crewColumn dropped a blocked / needs-decision / failed / paused crewmate to Idle. Those are the crewmates idle long enough for crew autocompact.

  • ReportCache.remember keeps the cached report when the text is null or blank. report() does the same when lastText is blank. With nothing cached (after a restart), it reads the new lastAgentMessage port: the last root agentMessage item (no parentToolCallId) from threads.events.list, in 100-row pages, five pages at most.
  • lastText keeps its meaning (the latest turn's reply), because quiet shipshape relies on exactly that.
  • Tests: the server test reproduces the bug (an idle with a blocked: line, then an idle with null keeps the report and the Blocked column). A second server test covers the log fallback after a restart. The ReportCache unit tests cover blank text, and bb-ports tests cover paging, the 100-row cap and skipping subagent messages. Both server tests fail on main's fleet.ts.

Charter

  • §0 adds the bb thread log <id> --json --all | jq … fallback for when bb thread output prints nothing. §3, §7 and the stuck-crewmate ladder point to it. The seq query skips subagent messages too.
  • The crew listing now holds on bb 0.47–0.49: archived threads are listed up to 0.48 and left out from 0.49 on unless --include-archived is added (Leave archived threads out of bb thread list by default get-bb/bb#6886).
  • A thread's git state is bb git status <environment-id> (bb 0.48+), with bb thread show <id> --work-status kept for bb 0.47. That keeps engines.bb at >=0.47, so no engines bump.
  • The fingerprint is repinned (0a31a8a6bc6822c7) and its history updated.

Docs and version

  • Repo 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.
  • 0.9.1, with a changelog entry.

Verified: npm run typecheck, npm test (543 passed), bb plugin build, and check-plugin-consistency.mjs. Not checked against a live bb: the fallback reads the shapes from SDK 0.6.94's typings, and the jq query was run against a live bb 0.49.0 thread.

🤖 Generated with Claude Code

…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]>
@gpambrozio
gpambrozio merged commit 3d1c8ec into main Nov 6, 2026
14 checks passed
@gpambrozio
gpambrozio deleted the fm/firstmate-crew-bb-0.49-compat branch November 6, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants