Repository navigation
revert: defer subagent attribution until linkage refactor - #22058
Conversation
…gent tha…" This reverts commit 33ba1ff.
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (23)
💤 Files with no reviewable changes (6)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change removes Priority: ➖ Normal 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the revert and its purpose, but it omits most required template sections, including ELI5, What Changed, Why, the required Linked Issue format, Visual Proof, Testing, AI Disclosure, Review, boundary confirmation, Notes, and Checklist items. Resolution Complete the required template sections. Add the ELI5 summary, detailed before-and-after change description, rationale, a valid linked issue using the required format, Visual Proof with N/A and a reason if applicable, testing steps and platform coverage, AI disclosure when applicable, review and boundary sections, notes on compatibility and performance, and the checklist confirmations.
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This is a single-commit, mechanical revert of #21398 (33ba1ff3df), verified against the repo rather than taken on trust:
- Removed the
producedBySubagentmarker end to end — the persisted row field and render-item type/schema, the append-options plumbing through the event sink, journal appender, row builders, reducer, and provider fallback, plus theisRootAgentJournalItemhelper file (src/shared/agent-session-journal-producer.ts) it introduced. - Restored the pre-fix readers —
isStructuredAgentSessionThinkingandactiveStructuredAgentSessionToolCall, the status-summary and assistant/prompt projection scans, and the Claude streamed-block/checkpoint producer plumbing now read every row in the journal again. - Dropped the tests that pinned the marker behavior — the added producer-attribution suites in the Claude translation, reducer, schema, event-sink, live-turn, and projection tests.
Revert fidelity. The changed file set and line counts are the exact inverse of the original commit (23 files, +80/−685), git diff 2968fbe609 33ba1ff3df^ over the touched paths is empty, and no commit between 33ba1ff3df and the base (7da9788c83) touched any of those paths, so the revert undoes nothing unrelated. A repo-wide search for producedBySubagent, isRootAgentJournalItem, and agent-session-journal-producer returns no residual references, and the deleted file has no dangling importers.
Rows written during the fix's window remain readable. Because #21398 deliberately did not bump AGENT_SESSION_JOURNAL_SCHEMA_VERSION, a journal can already contain rows carrying the removed key. After this revert they still parse: isJournalRow (journal-row-schema.ts:178) validates required fields and ignores unknown keys, and the wire-facing AgentJournalRenderItemSchema (agent-session-journal-schemas.ts:240) is a non-strict zod object that strips unknowns. So the revert does not latch any host read-only and needs no migration — the premise behind "rebuild around linkage instead of migrating an interim boolean" holds.
Intentional consequence, noted for the record. The user-visible fix is given up: a subagent's newer prose / running tool call will once more be reported as the parent's own in the status line and sidebar summary until the linkage refactor lands. The PR body says this explicitly, so it reads as a deliberate scope decision rather than a defect.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Revert #21398 so the subagent attribution fix can be rebuilt around explicit parent/child linkage instead of landing an interim persisted boolean that would immediately require migration. The larger refactor will restore the user-visible fix as part of the durable model.