fix(subagents): coalesce child refreshes without losing observations - #809
Open
Juliusolsson05 wants to merge 2 commits into
Open
fix(subagents): coalesce child refreshes without losing observations#809Juliusolsson05 wants to merge 2 commits into
Juliusolsson05 wants to merge 2 commits into
Conversation
This was referenced Sep 5, 2026
Give each tracker one byte-offset owner across parent bursts and timer ticks. Coalesce pending triggers without dropping late appends or completion, and prevent in-flight reads from reviving stopped trackers. Refs #802
Juliusolsson05
force-pushed
the
fix/subagent-refresh-coalescing
branch
from
September 6, 2026 00:21
689b110 to
51f47af
Compare
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.
Parent JSONL bursts and periodic polls could read the same child byte range concurrently, duplicating turns/tool calls and emissions (#802). Each Claude/Codex tracker now has one refresh owner and coalesces requests received during I/O into a trailing pass. Late appends and parent completion still drain; stopped trackers cannot repopulate offsets/accumulators or emit after a pending read completes. Transient poll errors remain retryable without unhandled background rejections.
Validation:
npm run typecheck,npm run test:contract, andgit diff --checkpass.Plan committed before implementation:
docs/superpowers/plans/2026-09-05-subagent-refresh-coalescing.md. No settings/protocol migration. Missing-rollout discovery remains separate (#803); follow-up #811 explicitly depends on this branch. No running agents or user working-tree files were changed.Fixes #802
Current validation: rebased onto main
f7507980(toolkit #812 and MCP repair #818), head51f47af4. Source changes from the earlier implementation are preserved; both required CI gates pass on this head (CI run). No merge is authorized.