Repository navigation
feat(native-chat): the chat strip and the sidebar read the host's child records - #22614
Conversation
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Host publishes its child records. The status summary gains optional
children?: AgentChildWorkView[], withbackgroundTasksnow derived from the same views (live rows only); the chat strip channel readsreadChildWorkfrom the host's status sink instead of the adapter's task DTO, republishes only on a changed fingerprint, and sends an explicitnullonce a live provider has no rows. The parent row ingestscanonicalStatusStore.getChildren(subject)rather than the summary's task list. - Retention without a timer. The status feed tracks the newest root turn id in the journal (subagent turns excluded) and, when it changes, admits a new
turn-startedevidence edge; the reducer removes settled children that no longer own live work, so a finished child stays listed with its outcome until the session's next turn. - Both readers draw from the records. The renderer bridge decodes
summary.childrenpermissively, copies them onto the row verbatim, derives the legacysubagentsroster from them, and reuses the child array across repeated summaries; the strip consumes the same views plus achildRowContextbuilt exactly as the sidebar builds it, so a lost or stale parent reads the same on both surfaces. - The old writer is gone.
onBackgroundTasksChangedis deleted end to end (Claude/Codex adapters, close/teardown funnels, runtime wiring,host.publishBackgroundTaskState); a new adapter seambackgroundTaskStopssupplies the provider's stop capability for provider-side decisions only. - Wire compatibility. New capability
agent-session.background-task-child-views.v1is advertised by the shared remote list and the desktop renderer; the RPC boundary withholdschildrenand settled-only rosters from a reader that does not advertise it.decodeAgentChildWorkViewsignores unknown keys and degrades unknown enum arms rather than dropping rows, and Codex view ids map back tocodex-agent:<thread>for legacy shapes.
I read the complete diff (all 66 files) and ran the new and rewritten suites touching this surface — shared view-wire/reconciliation, the status-feed and feed-children suites, the end-to-end structured-child-records-switch, the RPC capability suite, and the renderer switch/background-tasks-view tests — all green. The abstraction is coherent: one store read feeds one projection, and the legacy shapes are derived from it rather than maintained in parallel, which is the failure mode this PR exists to remove. No blocking or non-blocking findings.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
3422cca to
78e73c6
Compare
9acc0c1 to
619639b
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the delta since the previous Pullfrog review. The branch was rebased from base 3422ccaf4c onto 78e73c646a, which now carries the mainAgent lane; git range-diff shows the patch content is otherwise unchanged, so the re-review is the rebase integration plus the header-comment fix.
- Rebased onto the
mainAgentlane.structuredAgentSessionAgentStatusnow takeschildWork(records or views) instead of the summary'sbackgroundTasks, while returning the base'smainAgent. The only PR edit to that function is the input swap, so the host's parent row, the renderer bridge, and the CLI still fold one liveness source. - Held-open verdict preserved. The ingest and bridge date a child-held row with
isAgentStatusHeldOpenByChildWork({ state, mainAgent }), which is exactly the removedfromChildWork(mainAgent.state === leadState && state !== 'done'); the parent row's freshness clock is unchanged. - Readers still draw from the views. The bridge copies
summary.childrenonto the row and derives the legacy roster from them; the live-entry builder reuses the child array across repeated summaries; the strip counts only live views toward the monitoring indicator. - Wire and retention unchanged. The
agent-session.background-task-child-views.v1capability, the RPC-boundary withholding ofchildrenand settled-only rosters, theturn-startedretention edge, and the header-comment reword all stand as previously reviewed.
I read the complete diff end to end, plus the base versions of the files the rebase touched, and traced the fromChildWork → isAgentStatusHeldOpenByChildWork equivalence. No new findings.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
78e73c6 to
04d1d40
Compare
619639b to
8dac1b1
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed the delta since the previous pullfrog review (8dac1b1 → bb15e1c): two commits that move conversation-command admission off the provider adapter's own task roster and onto the host's child records. One non-code note: the PR description's Review section still lists conversation-command admission among the adapter-tracker readers, which this delta no longer holds.
- Admission reads the strip's records.
conversationCommandBlockednow takeschildWorkand folds it throughagentChildWorkLiveness, the same fold the strip's monitoring indicator uses, so a settled roster blocks nothing and only work the strip lists refuses a command. - One owner for the stop-offer rule. The new shared
agentChildWorkViewOffersStopis used by both the row model'scanStopand admission'sstripOffersStop, andstripOffersStopmirrors the strip's own controls: a per-row stop wheresupportsTaskStop, otherwise the single untargeted stop wheresupportsStopAll. readChildWorkthreaded to the decision.StructuredAgentSessionMutationContextgainsreadChildWork(wired fromclientDelivery.readChildWork); bothrunStructuredConversationCommandandrewindStructuredAgentSessionpass it.- Adapter interface trimmed.
backgroundTaskStateleavesStructuredAgentSessionAdapterand the router; the concrete Claude/Codex adapters keep it as a test-only accessor for holding the tracker roster beside the records. - Tests. A new end-to-end test proves a tracker roster that claims live work refuses nothing while the strip is empty, refuses
Stop…for a live record, and admits once the record settles; the unit suite covers the targeted / untargeted / no-stop matrix with the tracker present throughout. - Comments only. The legacy death condition, the summary clock-tolerance invariant, and the retention lifecycles.
I read the full diff and the delta end to end, traced stripOffersStop against the strip's render gating (supportsStop / supportsStopAll and the per-row stopId), confirmed agentChildWorkViewOffersStop is exactly the old canStop predicate, and ran the admission unit suite (7/7) and the new integration suite (1/1) green, plus pnpm tc:node and oxlint on the changed files.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
b4cf0d2 to
5406ab2
Compare
bb15e1c to
254db2d
Compare
5406ab2 to
359483b
Compare
254db2d to
20bff9f
Compare
359483b to
f02c2e1
Compare
20bff9f to
02631b8
Compare
f02c2e1 to
d30ea85
Compare
02631b8 to
04870e9
Compare
d30ea85 to
a26d58b
Compare
04870e9 to
dbf9315
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the two commits that landed since the prior pullfrog review, on a branch rebased onto the advanced base (the rest of the current commit stack is content-identical to the prior review; only these two are new).
- The retained projection drops children when the store does.
revokeLiveno longer stripschildren/backgroundTasks(it drops onlyhostExecutionOwned), andforgetnow re-readschildWorkFieldsafterownership.forgetand broadcasts the retained summary. Aforgetwith no close (eviction) now removes a session's child rows from the retained projection too, so the session list and the chat strip agree at each step.forgetStructuredAgentSessionand the evictionreleaseLeasestep are the productionforget-without-close callers this addresses;revokeLivehas no production caller besidesclose. - Provider exit is settled, not erased, in the end-to-end test.
structured-child-records-switch.test.tsnow asserts that a provider exit settles a still-live child with an unreported outcome while both surfaces keep listing it, and thathost.closethen removes the row and every child record from both. - The Codex producer test no longer uses the tracker as an oracle. Each step writes its expected child liveness and parent fold out literally; the
adapter.backgroundTaskStatecomparison is gone, so the test can fail independently of the tracker it shares executions with. - Comments realigned. The retention note in
structured-agent-session-status-feed.tsand thesession-endeddocstring inagent-status-child-work-evidence.tsnow match the base's "a session's end settles its live children" behavior.
Verification: feed, feed-children and admission suites (37), reentry / forget-status / Codex producer / Codex background-tasks / Claude close (18), the switch e2e (1/1), the renderer node-builtin boundary (2/2), and pnpm tc:node — all green.
ℹ️ PR description still describes session-ended as erasing every record
The description's Retention paragraph says the provider ending the session "(its session-ended evidence removes every record, e.g. a provider exit or the post-exit release)". With the base's "a session's end settles its live children" change plus this commit, session-ended settles a still-live child unknown and keeps settled children; only the next root turn, the settled-record cap, or the host letting go removes a record. Updating that sentence would keep reviewers from reading the old behavior as current.
Technical details
# Stale `session-ended` wording in the PR description
## Affected sites
- PR description → Retention paragraph: "when the provider ends the session (its `session-ended` evidence removes every record, e.g. a provider exit or the post-exit release)"
## Required outcome
- Say that `session-ended` settles a still-live child with an outcome nobody reported and keeps settled children, until the session's next root turn, the settled-record cap, or the host releasing the session.
## Suggested approach (optional)
- `src/main/native-chat/agent-session-wire/structured-agent-session-status-feed.ts:241` carries the current wording.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
871c4b9 to
05308c3
Compare
dbf9315 to
7d02ed4
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the single commit that landed since the prior pullfrog review, 7d02ed47ef (the prior head dbf9315d33 is content-identical to d917c014b5, its rewritten twin under the rebase).
- The idle-release clock reads the host's child records.
createStructuredAgentSessionHoldsgains a requiredreadChildWorkargument, wired fromclientDelivery.readChildWork;hasOwedWorknow foldsagentChildWorkLiveness(readChildWork(sessionId))instead of the adapter's task roster, so the "keep an idle chat while its subagents run" clock consults the same records the sidebar and strip draw from. - The quit snapshot reads the same records.
structuredAgentSessionWorkingAtStopandstructuredAgentSessionShownStatustakechildWork: AgentChildWorkView[]fromsurfaces.readChildWorkrather than the tracker'sbackgroundTasks, andliveTasksfilters the views with the shared liveness rule. - A latent fold mismatch is fixed.
structuredAgentSessionShownStatusstill handed the roster tostructuredAgentSessionAgentStatusasbackgroundTasks, which the fold no longer reads; a settled lead with a still-running subagent therefore foldeddoneand offered nothing at teardown. Handing itchildWorkrestores the offer, and the restart-teardown test now proves thetaskslabel comes from the records. - Tests move off the tracker oracle. The owed-work-release suite wires a real
AgentHookServeras the status sink plusonChildWorkEvidence, asserting throughhost.history(...).backgroundTasks.children; a newserveHostTestChildWorkharness helper andchildRecordfixture feed the restart-teardown/interruption tests through the records read.
I read the delta end to end and traced both readers: readChildWork returns the records once the parent row has landed (StructuredAgentSessionStatusOwnership, which the attached session's initial publish guarantees), the fold filters settled rows identically on records and views, and no production code reads the adapter's tracker method any longer. Ran the four changed suites (56/56) and pnpm tc:node (exit 0), green.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
61fa991 to
57f622d
Compare
There was a problem hiding this comment.
ℹ️ No critical issues — one minor suggestion inline, flagged as an unverified ordering assumption rather than a demonstrated bug.
Reviewed changes
This run re-reviewed the seven commits that landed since the prior pullfrog review (d7bb26a → 0788ed9), plus a re-integrated origin/main merge. They move the last provider-side reads onto the host's child records and settle two long-standing shape questions.
- Retention now keys on the user's send, not a provider turn.
newestRootTurnIdbecamenewestAcceptedSendKey(journal epoch + the newestacceptedsubmission), so a turn Claude opens on its own — the wake a finishing background task triggers — no longer retires a finished child; only the user's next accepted send (or a rewind's epoch replacement) does. - A background Stop resolves from the child records. New shared
agent-child-work-stop.ts; the adapter contract'sstopBackgroundTasksnow takestaskIdsthe host derives from the records (performCancelreads them throughinput.childWork), and Claude ends each acknowledged task via newClaudeChildWorkDecoder.stopAcknowledged. - One nested-owner rule.
settledOwnersOfLiveWorkmoved intoagent-status-child-work-liveness.tsand is read by retention (removableSettled) as well as the listing module, so a finished owner of live work survives at any depth, not just one level. - The Codex legacy flat roster is derived faithfully.
withCodexChildCommandshides a Codex child agent's command while its agent runs and names it<agent> — <command>once settled, through the sharedcodex-child-command-description. - The client decodes a roster's child rows once, as the frame arrives. New
admitAgentSessionBackgroundTaskStatedecodeschildrenin the reducer, so equality and every reader see decoded rows andstructuredSessionBackgroundTasksViewno longer decodes. - The strip channel forgets a closed conversation's roster.
StructuredAgentSessionConversations.deletenotifies a close observer the channel registers, so reopening a session re-sends its roster instead of staying silent on a stale fingerprint.
I read the incremental diff end to end and the affected production files. The retention key is safe against the per-commit projection cache — a dispatch write bumps the journal cursor().sequence, so acceptedSendKey cannot be served stale — and the stop predicate the host resolves is the same conjunction the strip renders by. Two independent passes over the Codex legacy shim and the Claude stop path returned the Codex derivation faithful for the command shell and the stop predicate consistent; the one open item is inline.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…finished after the user wrote stays Two lifecycle gaps from the round-1 fixes. A Stop acknowledged ahead of the task's own ending relabelled it. The SDK hands Orca a control answer as soon as it reads it and queues other frames, so when a task finished just as the user pressed Stop, the acknowledgement arrived before the task's completion the CLI wrote first, and the task read "Stopped" with its result lost. An acknowledged Stop now ends a record provisionally (outcome basis `stop-acknowledged`); the task's own terminal frame replaces it, and nothing replaces an ending the task reported itself. A finished child still vanished with no new action from the user when the send the provider took was written before the child finished: a steer Claude takes at its next boundary, or a queued draft handed over at the end of the turn. The user's next turn now carries when they acted (the send's written time, or the draft's queued time, both on the host clock), and only children that finished at or before it retire; a later one stays until the user's next send. A rewind still retires every finished child. Also: a Stop-all keeps stopping the remaining tasks after one request fails, then reports the failure.
…its one A roster with only running or only finished rows made a new empty array on every render, so the strip regrouped its rows each time. One shared empty list keeps its memo.
…ers under the main agent The budget can keep a finished child and cut its finished owner. The child still named that owner, so it rendered nowhere. The selection now clears an owner it did not keep, as the view contract says for an owner outside the projection.
There was a problem hiding this comment.
ℹ️ No critical issues — one comment nitpick inline.
Reviewed changes
This run re-reviewed the three PR-authored commits that landed since the prior pullfrog review (0788ed9 → bacc1ba), which sit atop a merge of origin/main whose incoming changes are unrelated to this PR's surface.
- A task's own ending can replace a Stop's. The acknowledgement of a background Stop now settles the record provisionally with a new host-only
outcomeBasis: 'stop-acknowledged'; the task's own terminal frame of the same run replaces it, while a reported ending is never replaced by a later acknowledgement. The two rules live in a new sharedagent-status-child-work-ending.ts;ClaudeChildWorkDecoder.stopAcknowledgedsupplies the basis, and the codec validates the field (settled-only, host-only — it never reaches the view wire). - Retention keys on when the user acted, not on a provider turn.
newestAcceptedSendKeybecamenewestAcceptedSend({ epoch, clientMessageId, actedAt }), dating a send handed over from a queued draft by when the draft was queued. The feed carriesactedAton theturn-startededge only within an epoch, and the reducer keeps a finished child whose settle time is after it — so a child that finished after the user wrote their message stays until their next send, while a rewind (new epoch) still retires every finished child. - A failed stop request no longer abandons the rest.
stopClaudeBackgroundTaskscontinues past a refusal and rethrows the first non-control error after the loop; a control refusal still leaves that task live. - The strip's view reuses one empty list. A roster that omits
tasksorsettledTasksnow returns a shared empty array, keeping the strip's memo identity stable across renders. - A budget-cut owner's child renders under the main agent. When the 100-row strip budget drops a child's owner, the child's view is re-parented to the main agent so it never renders under a row that is not there.
I read the incremental diff end to end and the affected production files, traced the new ending rules through each ordering (report-after-ack, ack-after-report, matching outcome, unknown), confirmed the retention clocks are both host wall-clock, and ran the changed suites — claude-background-stop-records (5), claude-stop-ack-race (4, real SDK), claude-background-wake-retention (3), reconciliation (21), status-child-work (3), feed-children (9), background-tasks-view (5), child-work-selection (6) — 56/56 green, plus pnpm tc:node (exit 0). The prior review's one open thread — the stop-acknowledgement ordering — is resolved by 2c8575935f, whose new tests pin the interleaving deterministically.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…ldren" is sent once A stop-all kept asking after a request timed out, so a Claude CLI that stopped answering control requests cost one full deadline per task, while the chat's sends, Stop and /compact waited behind it. A timeout now ends the loop; other request failures still let the remaining tasks be stopped. The chat strip channel never remembered that it had sent "no children", so every change in a chat with none re-sent that frame to each subscriber. It now remembers it, and forgets only when the conversation closes. Also renames agent-child-work-stop.ts to agent-child-work-stop-targets.ts, which says what it answers: the provider ids a background Stop reaches.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: ec58a7a2-e2e4-40de-b1fe-f3730a83b450
📒 Files selected for processing (9)
src/main/claude/claude-background-stop-records.test.tssrc/main/claude/claude-structured-control-actions.test.tssrc/main/claude/claude-structured-control-actions.tssrc/main/native-chat/agent-session-wire/structured-agent-session-background-task-channel.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-background-task-channel.tssrc/main/native-chat/agent-session-wire/structured-agent-session-turns-cancel.tssrc/main/native-chat/agent-session-wire/structured-conversation-command-admission.tssrc/shared/agent-child-row-model.tssrc/shared/agent-child-work-stop-targets.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
| if (error instanceof ClaudeControlRequestTimeoutError) { | ||
| throw error | ||
| } |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
#!/bin/bash
rg -nP -C5 '\bstopClaudeBackgroundTasks\s*\(|stopBackgroundTasks\s*\(' src/main --type=ts -g '!*.test.ts'Repository: stablyai/orca
Length of output: 2142
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- control actions ---'
cat -n src/main/claude/claude-structured-control-actions.ts | sed -n '1,140p'
printf '%s\n' '--- session adapter ---'
cat -n src/main/claude/claude-structured-session-adapter.ts | sed -n '150,245p'
printf '%s\n' '--- stop result/error consumers ---'
rg -n -C4 'cancelled|ClaudeControlRequestTimeoutError|stopClaudeBackgroundTasks|stopBackgroundTasks' src/main/claude --type=ts -g '!*.test.ts'Repository: stablyai/orca
Length of output: 41803
🏁 Script executed:
#!/bin/bash
printf '%s\n' '--- repository-wide stop API references ---'
rg -n -C5 '\bstopBackgroundTasks\b|\bstopClaudeBackgroundTasks\b|onChildWorkEvidence|child-work evidence|ChildWorkEvidence' . -g '!node_modules' -g '!dist' -g '!build'
printf '%s\n' '--- adapter contract declarations ---'
rg -n -C8 'interface StructuredAgentSessionAdapter|stopBackgroundTasks:|stopBackgroundTasks\?' srcRepository: stablyai/orca
Length of output: 42054
🏁 Script executed:
#!/bin/bash
cat -n src/main/native-chat/agent-session-wire/structured-agent-session-turns-cancel.ts | sed -n '1,145p'
printf '%s\n' '--- cancellation entrypoints and result types ---'
rg -n -C6 'cancelStructured|cancelTurn|AgentSessionCancelOutcome|stoppedBefore|scope\?' src/main/native-chat/agent-session-wire src/shared -g '*.ts' -g '!*.test.ts'Repository: stablyai/orca
Length of output: 41416
Preserve partial cancellation after a later timeout.
An earlier successful stop sets cancelled = true and records the stopped task. A later timeout throws before the result returns. performCancel catches that error, leaves cancelled as false, and returns a background-task result with cancelled: false. This can report that no task stopped even when an earlier task did stop.
Carry the partial cancellation state through the timeout path so callers can distinguish “some tasks stopped” from “no task stopped.”
There was a problem hiding this comment.
ℹ️ No critical issues in this delta — one earlier doc typo is still open and is re-anchored inline.
Reviewed changes
This run re-reviewed the single PR-authored commit that landed since the prior pullfrog review (bacc1ba → dbd2439), which sits atop a clean merge of origin/main (a020c1ee4b, first parent bacc1ba, second d2dbe2c385) whose incoming commits are unrelated to this PR's surface (Windows CLI launcher, Linux keyring/secrets, antivirus scan, test retirements).
- A stop-all that times out stops asking.
stopClaudeBackgroundTasksnow rethrowsClaudeControlRequestTimeoutErrorstraight out of the per-task catch, ending the loop instead of letting a wedged CLI cost one full deadline per named id while the chat's sends, Stop and/compactqueue behind it. A non-control failure still lets the remaining tasks be tried and is rethrown after the loop; a control refusal still leaves that task live. - The strip channel remembers "no children".
StructuredAgentSessionBackgroundTaskChannel.publishnow stores thenullfingerprint too, so a chat with no children sends its "none" roster once rather than on every change. The entry is still dropped when the conversation closes, and a new subscriber still gets the openingnullfromsubscribe's own state read. - The stop-target module is renamed.
agent-child-work-stop.ts→agent-child-work-stop-targets.ts, saying what it answers; the four importers are updated and the old file is gone.
I read the commit end to end and the affected production files, confirmed ClaudeControlRequestTimeoutError extends Error rather than ClaudeControlRequestError (so the new catch is what distinguishes a wedged CLI from a per-task refusal), and ran the three changed suites (22/22) plus pnpm tc:node (exit 0), green. The new timeout test drives the real runClaudeControl deadline wrapper and fails on the pre-delta loop; the new channel test fails on the pre-delta delete-on-null.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…bmissions, and e2e tests use the child-work reader CI on dbd2439 was red in three places: - first-work-branch-rename and the agentSession.subscribeStatus RPC test feed the status feed a journal whose snapshot lists items only. The projection reads the user's newest accepted send from `snapshot.submissions`; it now tolerates their absence, as the status projection beside it already did. - the cross-version downgrade test still passed `backgroundTasks` to the teardown's working marker, which now takes `childWork`. - an e2e unit test still gave the status feed the removed `readBackgroundTasks` dependency (harmless at run time, a type error in the tests/ project).
There was a problem hiding this comment.
ℹ️ No new findings in this delta — a CI-green follow-up to the prior commit. Approval is withheld only because an earlier doc-comment typo thread on this PR is still open, not because of anything in these changes.
Reviewed changes
This run re-reviewed the single PR-authored commit that landed since the prior pullfrog review (dbd2439 → bc7bc6e): the follow-up that turned the red CI on dbd2439 green.
- The status feed tolerates a journal snapshot with no
submissions.StructuredAgentSessionJournalProjections.readpassessnapshot?.submissions ?? []tonewestAcceptedSend, matching thesnapshot?.items ?? []beside it. The realrenderJournalStatealways setssubmissions, so only the hand-built test journals whose snapshots list items alone change behavior — they previously crashednewestAcceptedSend'sfindLastonundefined, which is what leftfirst-work-branch-renameand theagentSession.subscribeStatusRPC suite red. - Two e2e tests use the child-work read.
agent-session-resume-marker-downgrade.unit.test.tspasseschildWork: () => undefinedtostructuredAgentSessionWorkingAtStop(was the removedbackgroundTasks), andcodex-child-approval-activity-row.unit.test.tsdrops the removedreadBackgroundTasksstatus-feed dependency.
I read the commit end to end and the affected production file, and ran first-work-branch-rename (38/38), codex-child-approval-activity-row (1/1), the agentSession.subscribeStatus RPC suite (55/55), pnpm tc:node (exit 0) and oxlint on the three files (0 findings), all green. The cross-version downgrade test cannot execute in this shallow checkout (its harness needs the v1.4.211 tag), but its change is a type alignment that now compiles.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Review status: ready for your review at
|
…sidebar's rule, and hides when none runs
A finished subagent's result is already in the transcript ("Ran N subagents ·
completed"), so the strip is for work that runs. It now lists exactly what the
sidebar lists, by one predicate (a running child, or a finished one whose own
shell still runs, which reads monitoring), and the host sends no roster once none
runs, so the strip hides.
Gone with it: the 100-row budget and the running-then-newest-finished
selection, the re-homing of a child whose owner the budget cut, and the RPC
gate's rule for a roster of finished rows only (no such roster exists now).
Older clients still get their derived task list, running work only.
Finished records still stay in the host's store until the user's next accepted
message: they refuse a late frame of their run, let a task's own ending replace
an acknowledged Stop's, and keep a running shell's owner. Dating that retention
by when the user wrote the message only kept finished rows visible longer, so it
is removed.
There was a problem hiding this comment.
ℹ️ No critical issues in the delta — one description note in the body.
Reviewed changes
This run re-reviewed the single PR-authored commit since the prior pullfrog review (bc7bc6e → b9e1ef8), which sits atop a clean merge of origin/main (e769c0978e, bringing #22619 and unrelated main content). It deliberately reverses the strip's listing model.
- The chat strip lists running children only, by the sidebar's rule, and hides when none runs.
structuredStripChildWork/structuredSidebarChildWork/worktreeSidebarListsChild/STRUCTURED_STRIP_CHILD_WORK_LIMITare replaced by one predicate (agentChildWorkIsRunning) and one selection (structuredRunningChildWork), shared by the status summary, the strip channel and the renderer'sbuildSubagentChildRows. - Retention keys on the accepted send alone.
newestAcceptedSend({ epoch, clientMessageId, actedAt }) is reverted tonewestAcceptedSendKey; theturn-startedevidence losesactedAtandremovableSettleddrops the settle-time filter. A finished record still lives until the user's next accepted send (or a rewind), but no surface lists it — its stated job is now only to absorb a late frame, preserve an acknowledged Stop's replaceable ending, and keep a live shell's owner. - The old-reader RPC gate simplifies.
withoutChildViewsalways returns the derived legacy roster; the branch that withheld a finished-only roster is gone because no roster is finished-only now. - Tests updated/deleted to match: the
newestAcceptedSendsuite is removed, and the selection, parity, sidebar-running-children, feed-children, background-task view/channel, e2e switch, reconciliation and RPC-capability suites assert the running-only model.
I read the commit and the incremental diff end to end, checked the dangling-reference surface (newestAcceptedSend, structuredStripChildWork, the deleted structured-agent-session-status-child-work.test.ts — all gone), traced withoutChildViews against state() (every roster now lists running work, so the old reader's "any roster is live work" reading holds), and ran the 10 changed suites green (97 tests: 50 host, 47 renderer). The two prior open threads — duplicate reviews of a garbled actedAt doc comment — are addressed by that comment's deletion and were replied to and resolved.
ℹ️ The PR description still describes the finished-rows-stay design this commit removes
The commit's whole point is that a finished child is no longer listed on either surface, but the description's "What this changes for you" table, ELI5, "Strip selection" bullet and "Older readers" note still say the strip keeps finished rows up to 100 (and that old Codex clients see a finished agent as a settledTasks "done" row). A reviewer reading the description first is led to expect the opposite of the shipped behavior.
Technical details
# Stale PR description after the running-only strip reversal
## Affected sites
- PR body → "What this changes for you" table: "A background agent or shell finishes after your turn … It stays in the strip with how it ended … until your next message"
- PR body → "Which rows the strip shows": "Every running child, then finished ones, up to 100 rows"
- PR body → ELI5: "A finished helper stays on the chat's list, with its result, until you send your next message"
- PR body → "Older readers": "New for them: finished Codex agents appear as 'done' rows in `settledTasks`"
## Required outcome
- The description should say both surfaces list running children only and the strip hides when none runs; the finished record is retained internally (no surface lists it) until the user's next accepted send.
## Open questions for the human
- Is the transcript's "Ran N subagents · completed" line intended to be the only user-visible outcome for a finished child, or is a follow-up surface planned?DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| if (!session || stored === undefined) { | ||
| return undefined | ||
| } | ||
| const views = structuredRunningChildWork(stored) |
There was a problem hiding this comment.
Finished children vanish from strip
When the last background child finishes, structuredRunningChildWork removes it from the chat strip and the channel sends no roster. The strip hides before the user sends another message, so a child that finishes after the parent turn—especially one that fails—loses its visible outcome. This reverses the strip retention behavior introduced by this PR.
Knowledge Base Used:
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| return owned | ||
| .filter((record) => record.membership === 'settled' && !owners.has(record.childWorkId)) | ||
| .map((record) => record.childWorkId) |
There was a problem hiding this comment.
Delayed sends retire recent children
When a user writes a steer or queues a message while a child is running, the child may finish before the provider accepts that send. The new turn-started path then removes the settled record without checking when the user acted. Although the user has sent nothing since the child finished, its result and the record needed to reconcile late evidence are discarded.
Knowledge Base Used: Agent workspaces and sessions
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
…d hides after a released session's last child - A new app paired with an older host no longer shows that host's finished task rows: the strip lists running work only, whatever host sent it, and hides when an older host's roster has only finished rows left. - A test for the path that hides the strip when a session's last running child settles after the provider let go of the session (Claude's release path): the channel sends `null` though no provider answers for the session any more. - A test comment still described the strip keeping finished children.
| isMonitoring: turnId === null && liveWork, | ||
| tasks: backgroundTasks?.tasks ?? NO_TASKS, | ||
| // Running work only, from any host: an older host's finished rows are not shown either. | ||
| settledTasks: NO_TASKS, |
There was a problem hiding this comment.
Older hosts lose finished rows
When a newer client connects to an older Claude host, the host can report a finished task alongside another task that is still running. This line discards the finished task, so its outcome disappears from the chat strip even while the strip remains open.
| settledTasks: NO_TASKS, | |
| settledTasks: children ? NO_TASKS : (backgroundTasks?.settledTasks ?? NO_TASKS), |
Knowledge Base Used: Agent workspaces and sessions
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run re-reviewed the single commit that landed since the prior pullfrog review (b9e1ef8 → 4430535): a follow-up that extends the running-children-only strip rule to older hosts and pins the hide after a released session.
-
The strip hides an older host's finished-only roster.
structuredSessionBackgroundTasksViewnow computesonlyFinished(!children && no tasks && some settledTasks) and setsshow = monitoring && !onlyFinished, so a host that publishes no child records but lists only finished tasks no longer leaves the strip on screen. -
Finished legacy rows are never rendered.
settledTasksis now always the shared empty list (was the host'ssettledTasks ?? NO_TASKS), so an older host's finished rows are dropped on the client too, matching the new host's running-only roster.tasksstill pass through untouched for a live provider. -
Monitoring follows the new visibility. On the no-
childrenpath,liveWorkis nowshow, so a finished-only roster no longer reads as monitoring. -
Tests. A new view case asserts an older host's running tasks render while a finished-only roster shows nothing (and a state-only host still shows);
worktree-sidebar-running-children.test.tsnow derives the strip rows through the production view, and a channel case pins the strip hiding when the last child settles after the adapter released the session.
I read the commit and its single production file end to end, checked every production consumer of StructuredSessionBackgroundTasksView.settledTasks (only the strip's buildBackgroundTaskGroups reads it), and confirmed the new view test fails against the pre-delta code. Ran the four changed suites (22/22) and pnpm tc (exit 0) — all green. The open review threads on the PR are all from greptile/coderabbit; no pullfrog thread was left to retire. The prior review's informational note about the PR description still describing the finished-rows-stay design is unchanged but is not re-raised here.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
…child-records # Conflicts: # src/main/codex/codex-structured-session-teardown.ts # src/main/native-chat/agent-session-wire/structured-agent-session-adapter.ts # src/main/native-chat/agent-session-wire/structured-agent-session-rest-test-rig.ts
| @@ -1,3 +1,4 @@ | |||
| import { AGENT_SESSION_BACKGROUND_TASK_CHILD_VIEWS_CAPABILITY } from './agent-session-background-task-child-views-capability' | |||
There was a problem hiding this comment.
Stacked PR loses capability export
This moves AGENT_SESSION_BACKGROUND_TASK_CHILD_VIEWS_CAPABILITY out of protocol-version.ts without re-exporting it. PR #22634 still imports it from that module in its desktop capability code and CLI transport test, so the combined stack fails TypeScript compilation.
| import { AGENT_SESSION_BACKGROUND_TASK_CHILD_VIEWS_CAPABILITY } from './agent-session-background-task-child-views-capability' | |
| import { AGENT_SESSION_BACKGROUND_TASK_CHILD_VIEWS_CAPABILITY } from './agent-session-background-task-child-views-capability' | |
| export { AGENT_SESSION_BACKGROUND_TASK_CHILD_VIEWS_CAPABILITY } from './agent-session-background-task-child-views-capability' |
Review status update: strip shows running children only, ready at
|

The problem
In a chat (structured) session, a subagent or background command shows up in two places: as an indented row under the session in the worktree sidebar, and as a row in the chat's background-task strip above the composer. The two did not agree about what was running.
Scope. Chat sessions with Claude or Codex, on every host the app talks to (local, WSL, SSH, remote). Terminal (CLI) agents are not affected: their finished subagents already leave the sidebar the moment they stop. This PR changes what the strip and the sidebar list for chat sessions (running children only, on both), what blocks
/clear,/compactand rewind, what a background Stop reaches, when the idle sweep may stop a chat's provider, and what the resume offer after a quit lists.What this changes for you
/clear,/compact, rewind while background work runsELI5
A chat's helpers (subagents and background commands) used to be tracked in three notebooks that did not agree, and the one the chat used threw finished helpers away as soon as nothing else was running. Now the host keeps one notebook with one page per helper: what it is doing, how it ended, and when. The sidebar and the chat both read that notebook, and both list only the helpers still running. A finished helper leaves both at once (its result is in the conversation), and the chat's list hides when nothing runs. The Stop button, and the check that stops you clearing a chat while work is still running, read the same notebook, so they can never disagree with what you see.
What Changed
This PR is the switch step of the child-work records plan. #22521 added the record, #22536 and #22553 made Claude and Codex write their children into the host's store, and #22565 built one row model for both surfaces; all four are merged. This PR makes both surfaces read the records and removes the old task feed. #22634 (a Claude subagent waiting on a permission prompt reads as waiting) is stacked on this PR, and #22619 (Codex default-mode helpers as subagents) merges independently in either order.
Delivery: the host publishes its child records (new optional fields only)
agentSession.subscribeStatus, read by every session list, including remote ones): gainschildren?, the session's running children read from the host's canonical store (live records, plus a finished one whose own shell still runs, which reads as monitoring). It is read through the status sink the session's row landed in (readChildWork→AgentHookServer.getStructuredChildWorkViews), wired at both host entry points, the desktop main process andorcad.agentSession.subscribe/history,backgroundTasks): gainschildren?, the same running children as the session list. When none runs it sends no roster (null), and the strip hides. The channel reads the records and republishes when a child changed; an unchanged roster sends nothing.src/shared/agent-child-work-listing.ts,agentChildWorkIsRunning/structuredRunningChildWork): a child is listed while it runs, where a finished child whose own work still runs counts (it reads monitoring). The session list, the strip channel and the sidebar's row builder all use it, in store (start) order, with no row cap. "A finished child still owns live work" is one function at any depth of ownership, shared with the record retention below.Finished records: kept in the host's store until the user's next message (not shown)
/compact, or a queued draft once handed over), keyed on the newest accepted submission in the journal plus the journal epoch. A rewind clears them; a turn the provider starts on its own (Claude waking the agent when a background task ends) and a subagent's turn do not.Stop, admission, idle sweep, quit snapshot: one reader
src/shared/agent-child-work-stop-targets.ts). The adapter stops exactly those ids. It no longer checks its own task list, which had made a Stop do nothing once that list dropped a task the records still showed./clear,/compactand rewind are refused on the records, with the same liveness rule as the strip's monitoring indicator; a finished child blocks nothing. They ask for a stop only when the strip shows one. This covers all four places that decide it: the command RPC, rewind, and main's newer queued/compactpath, both where the command is accepted and where it is handed to the provider.backgroundTaskStateandonBackgroundTasksChangedare gone, andhost.publishBackgroundTaskStatewith them. No production code reads the provider tracker's task list any more. The Claude tracker is still fed, only for tests that compare it with the records; deleting it is a follow-up. New adapter methodbackgroundTaskStops(sessionId)supplies which stops the provider supports (Claude: targeted; Codex: none).Renderer
summary.childrenonto the session's status row. The renderer's own conversion of the old task list remains only for an older host that publishes no children.childrenonce, where the frame arrives. A row shaped by a newer host is dropped instead of throwing, and an unchanged roster keeps its identity, so the strip does not regroup its rows on every streamed frame.settledTasks) are dropped, and a roster of only finished rows shows no strip.childRowContext), so a lost or stale parent reads the same on both surfaces.Wire and older readers
decodeAgentChildWorkViewsis the permissive client reader. Unknown keys are ignored. An unknown kind, state, outcome or basis degrades to a safe value. A Stop is offered only whenstoppableis exactlytrue. Only a row with no id, clocks or fence is dropped. The strict record codec stays on the host.agent-session.background-task-child-views.v1, advertised by the desktop, remote and web clients. A reader that does not advertise it never receiveschildren. Every roster the host sends lists running work, so an older reader's reading of any roster as live work holds.tasks/settledTasks/backgroundTasks/subagentsshapes, derived from the same records, so they cannot disagree with them. A Codex agent keeps its oldcodex-agent:<thread>id. A running Codex agent's shells are hidden behind its row, and once it finishes they read " — ", as before. New for them: a finished Codex agent whose shell still runs appears as a "done" row insettledTasksbeside it.settledTasksnow only ever holds such owners of running work.structured-agent-session-child-work-legacy.ts: once the minimum compatible client protocol goes above the version in force when this capability shipped (3), every accepted client readschildren. At that point the derivation, the id remap and the gate's old-reader branch go together.Session-list churn (measured at an earlier head of this PR,
c01de9752d; the equality rule has not changed since)The session-list summary goes to every session list, remote ones included. So it compares children with token usage removed, and it tolerates a child's evidence clock moving by less than 60 s, which is the precision of the "No update in Nm" reading. The strip channel still carries every tick. Measured with a throwaway harness (the real Claude adapter over
agentSession.*, the real hook server as the sink), with 5 background children and 20 rounds oftask_progresseach (100 frames):3422ccaf4c)A tick that changes only usage, or a clock inside 60 s, republishes nothing; the 5 heartbeat-only republishes are one per child when its clock crossed 60 s. What does republish is a child's current tool changing, which is the fact the sidebar row now shows.
Why
One record per child, read by every surface, removes the class of bug where two copies of a child follow different rules. Each earlier copy dropped facts: monitoring collapsed to working, failed became blocked, and the running tool was discarded. One listing rule for the sidebar and the strip means the two can no longer list different children. This PR does the switch and the removal of the old writer at once, so there is never a window where the two surfaces read different sources.
Alternatives considered:
childreninside the roster. Rejected: more frame surface for the same effect, and the RPC-boundary projection already hands older readers their old roster.Linked Issue
None. Part of the structured chat status and orchestration program.
Visual Proof
Earlier strip rule. These fixture screenshots and the earlier live run below were captured before the strip changed to list running children only, so they show finished rows in the strip. They stay for the sidebar rows, the monitoring row and lost-contact wording, which are unchanged. Captured with the
$electronskill: a dev instance of this branch at an earlier head (c01de9752d), launched withORCA_BACKGROUND_LAUNCH=1on a throwaway profile, driven by Playwright over CDP, with CDP screenshots of the hidden window. No window was shown and no OS input was used. This is a renderer-seeded fixture, not a live provider session. The session's status row was written through the realsetAgentStatuspath with the payload the bridge writes, and the realNativeChatStructuredSessionStatuswas mounted over a roster built by the real strip view. Children: one working withBash: npm test -- parser; one finished while itsnpm run devshell runs; one finished; one failed.Fixture screenshots (sidebar card and strip, before and after losing contact with the host):
02-live-sidebar-card.png,03-live-strip.png: sidebar and strip agree row for row:Summarize the grammar - Grammar has 42 productions(finished, green);Monitoring background tasks - Start the dev server(yellow monitoring icon; the strip nestsnpm run devunder it);Fuzz the tokenizer - Exit code 1: fuzz target crashed(failed);Run the parser tests - Bash: npm test -- parser(working);05/06-lost-transport-*.png: the same session after the status feed reports the host unverifiable. Both surfaces showStart the dev server - No update in 3mandRun the parser tests - No update in 0m, with settled outcomes unchanged. In this fixture both surfaces read the same clock; in a live session the sidebar's minute can read one higher.Live run with real providers (earlier head
c01de9752d)A design-check pass ran an earlier head against real provider CLIs:
$electronwith Playwright over CDP, a hidden dev instance (ORCA_BACKGROUND_LAUNCH=1, throwaway profile, no OS input), three sessions. It predates the retention, Stop and decoding fixes above; the live QA for this head is below.1 agent — workingwith the child's own current tool:Run sleep and echo · Bash: sleep 40; echo CHILD_DONE. The subagent moved itssleepto the background, and that shell appeared as a command owned by the agent. When the subagent returned, the agent settledsucceededand its killed background shell settledcancelled(shown with the interrupted dot, by design). The sidebar showed an indentedRun sleep and echo - general-purposechild row with the same name and state. Both stayed listed with their outcomes after the turn ended, and on the next user message both surfaces cleared.sleep_childreadworking · Agent, with its shell nested under it on its own clock, then settled as1 agent — done / sleep_child · CHILD_REPLY … ended 0s ago. The sidebar showed the same child row.1 shell command — 18s, then— done, retained.Live QA (strip rule at
b9e1ef8eb09)Run with
$electronon a separate Mac (not the development machine): a hidden dev build ofb9e1ef8eb09(ORCA_BACKGROUND_LAUNCH=1, throwaway profile and home, status hooks off, Playwright over CDP, no OS input), a structured Claude chat on Claude Code 2.1.286. A 250 ms in-page sampler timed every change of the strip and the sidebar. The commits afterb9e1ef8eb09add a test, apply the same rule to an older host's roster, and merge main; they do not touch these flows./compactwas then accepted.Earlier live run at
bacc1babb3a, under the earlier strip rule (finished rows kept until the next message); supersededEarlier run (
bacc1babb3a, earlier strip rule). Run with$electronon a separate Mac (not the development machine): a hidden dev build ofbacc1babb3a(ORCA_BACKGROUND_LAUNCH=1, throwaway profile and home, status hooks off, Playwright over CDP, no OS input), a structured Claude chat on Claude Code 2.1.285. The last commits afterbacc1babb3a(a stop-all timeout, a file rename, "no children" sent once, two test fixes) do not touch these flows./compactis then accepted.Testing
All run on macOS with
env -u ORCA_STRUCTURED_SESSION, explicit test files, and an isolatedHOME.tc:nodeandtc:webpass at4430535e2dc(andtc:cliatb9e1ef8eb09; nothing CLI-facing changed since), merged with main95e8725b40d(which brought in feat(native-chat): register Codex default-mode helpers as subagents #22619).b9e1ef8eb09: 541 files and 6,792 tests; 6,759 passed, 29 skipped, 4 failed under machine load (load average 25–49). All 4 pass when rerun alone: two 30 s timeouts in the browser-process startup tests, the 90 s refusal-retry oracle, one chat-coordinator mail test, and the cross-version agent-session suite, which timed out extracting an old build and passed alone 17/17. The run covered every test file this PR adds or changes, every test file main changed in the merged areas, and every test that builds the status feed, the strip channel, the strip view or the host with fakes (grep-selected, including thetests/e2eunit tests that touch them), which is what CI caught on an earlier head.9313ec25548(final head; merges main3ab3c9239fb): green, all 38 checks. The merge resolved 3 conflicts by keeping this PR's removal of the provider task-list read and taking main's additions. Two files stayed under the line limit by moving a type and the child-views capability constant into their own modules. tc:node, tc:web and tc:cli: 0; 367 files, 4,034 passed, 0 failed.b9e1ef8eb09(the strip change): green (PR Checks, Mobile Checks, Computer-use e2e, Bun profile persistence all completed success). The follow-up4430535e2dcchanges the strip view and tests only: 32 renderer/shared/host test files touching the roster, 407 tests, all pass.oxlint, the anti-slop lint andcheck:code-quality:changedreport 0 new findings. No new docs.pnpm-lock.yamlis identical to main.New tests:
src/main/runtime/structured-child-records-switch.test.ts: end to end on a host with no renderer, using the production runtime, a Codex session, and a realAgentHookServeras the status sink. At each step the summary and the strip carry the same running children, with literal expectations (never compared with the tracker's list); once the child finishes the strip gets no roster and the summary no children, while the record stays in the store. The parent row reads working, then working/monitoring, then done. A turn Codex opens with no send keeps the finished record, and the user's real send, echoed by Codex, removes it. A child still live when the provider exits settlesunknown. Closing the tab drops every record.src/renderer/src/components/native-chat/structured-child-records-switch.test.tsx: wired renderer parity, using the real bridge, store, strip and sidebar rows. One child reads the same on both surfaces live, after the status stream drops, and when the parent row is stale. When nothing runs, the strip is gone and the sidebar has no child rows, on the new path and on an older host's task list.src/main/claude/claude-background-wake-retention.test.ts: captured Claude frame orders through the real adapter, a real hook server and the production status feed.src/main/claude/claude-background-stop-records.test.ts: a backgrounded agent the CLI's list dropped with no ending of its own./clear.src/main/claude/claude-stop-ack-race.test.ts: the real SDK and Orca's stream-json connection against the scripted CLI. The completion is written just ahead of the stop answer, with 0, 1, 5 and 50 streamed frames in front of it. The task endssucceededwith its summary every time. With 5 or 50 frames, the SDK delivers the acknowledgement first.src/main/runtime/claude-structured-session-integration.test.ts: now wired to a real hook server. A targeted Stop reaches and settles only its task; an unknown id sends nothing.src/main/native-chat/agent-session-wire/structured-conversation-command-child-work.test.ts: admission follows the strip's records, not a tracker list that claims work throughout. That covers main's queued/compact, including a refusal at hand-off when work starts after acceptance.structured-agent-session-child-work-selection.test.ts: one running selection for both surfaces; the host's strip history and session-list snapshot carry the same running children, and no strip once none runs.agent-status-child-work-reconciliation.test.ts:structured-agent-session-child-work-legacy.test.ts: an older client's Codex rows (the child's shell hidden while its agent runs, labelled once it finishes).structured-agent-session-reducer.test.ts: a malformed row is dropped without throwing, and an unchanged roster keeps its identity.Ablations (one mechanism deleted or neutered at a time, confirmed red, restored). Earlier head (rows for mechanisms removed by the strip change are dropped):
turn-startedreducer armchildRowContext)Added in review:
/compacthand-offAdded with the strip change:
Not run here:
Cross-version suites. Not run at this head: they timed out extracting old builds under machine load. At an earlier head they passed, but they never send a background-task roster, so they do not cover this PR's version skew. The capability-gate unit tests cover it. A real mixed-version test is a follow-up.
Mobile tests. Not run: Expo is not installed here. Mobile reads no child rows or task roster; it only advertises the capability through the shared remote list.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Not verified:
How this compares with the approaches this design was checked against (each difference labelled):
Follow-ups (recorded, not in this PR):
/clear,/compactand rewind say "Wait for background tasks to finish" until the tab closes. It needs its own way to re-derive the child.Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
children. It reads the derivedbackgroundTasks/tasks/settledTasks/subagents: running children only, in the session list and on the strip, and no strip once none runs. For Codex, a finished agent whose shell still runs appears as a "done" row beside it.childrenanywhere, so the client converts the old task list as before, but the strip shows only its running tasks (the old host's finished rows are dropped) and hides when none are left.agent-status-store.md: the structured row folds the store's child records).Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)