You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(acp): reset reply digest when a subagent restarts - #40496
Allow a restarted helper to publish its result again, and restore main's typecheck.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
1
$\color{#1a7f37}{\Huge{\mathbf{+}}}$1
$\color{#cf222e}{\Huge{\mathbf{−}}}$1
0
What Changed
Clear replyDigest when an ended ACP subagent restarts. The old reply field was renamed during #40171, leaving restart with a nonexistent property and a retained digest that could suppress an identical result from the new run.
Why
Current main fails typechecking at this stale field reference. Reset the same digest used by reply deduplication.
Linked Issue
Internal maintainer repair discovered while validating test cleanup; no separate issue.
Visual Proof
N/A — internal provider bookkeeping; no UI or interaction change.
Testing
Linux: ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=b7ac7e5178ffaaf9896f73fb063ac4018887f30a --maxWorkers=2. All 23 checks passed, including applicable typechecks and the affected unit tests (343 seconds). Normal hooks and the immediate pre-push gate also passed. Existing ACP tests selected by the gate; no new tests for this field-rename repair. CI covers applicable broader checks; no local macOS/Windows/native app execution.
Local automated checks; manual provider run is outside this repair.
Existing automated coverage used; no tests added.
Added-test requirement is N/A.
Risk
Level: Low. Changes only restart deduplication state. A restarted child may now republish the same result text, as intended for a new run. Revert restores the stale field reference and type error. No protocol, saved-data or remote-version change.
AI Disclosure
Review
Self-reviewed against KnownSubagent and the reply deduplication implementation.
Agent skill upstream boundary
Not applicable; no upstream skill-installer material copied.
Notes
Platform-independent TypeScript. Local/remote, mobile and folder-workspace behavior share this provider state; no boundary formats changed.
Checklist
Small, focused repair.
Behavior and cause explained.
Risk and revert described.
Visual proof N/A with reason.
Self-reviewed for correctness, security and performance.
Cross-platform and SSH/remote impact considered.
Applicable local checks run before publication; CI covers broader builds.
No actionable comments were generated in the recent review.
Walkthrough
When an ended run restarts, AcpSubagents.translate now clears the stored replyDigest instead of the stored reply text.
Merge Risk: Minimal · up to 18712
The change is intended to allow identical replies after a subagent restart. No concrete merge-blocking risk is identified.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: resetting the reply digest when an ACP subagent restarts.
Description check
The description covers the change, cause, risk, testing, visual-proof status, and applicable checklist items. It also explains why no linked issue is provided as an internal maintainer repair.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: d44a4069-98c5-43d1-ba3b-f570863ce5e9
Commits
Reviewing files that changed from the base of the PR and between b7ac7e5 and 187126b.
Files selected for processing: 1
src/main/acp/timeline/acp-subagents.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.
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
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.
ELI5
Allow a restarted helper to publish its result again, and restore main's typecheck.
What Changed
Clear
replyDigestwhen an ended ACP subagent restarts. The oldreplyfield was renamed during #40171, leaving restart with a nonexistent property and a retained digest that could suppress an identical result from the new run.Why
Current main fails typechecking at this stale field reference. Reset the same digest used by reply deduplication.
Linked Issue
Internal maintainer repair discovered while validating test cleanup; no separate issue.
Visual Proof
N/A — internal provider bookkeeping; no UI or interaction change.
Testing
Linux:
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --base=b7ac7e5178ffaaf9896f73fb063ac4018887f30a --maxWorkers=2. All 23 checks passed, including applicable typechecks and the affected unit tests (343 seconds). Normal hooks and the immediate pre-push gate also passed. Existing ACP tests selected by the gate; no new tests for this field-rename repair. CI covers applicable broader checks; no local macOS/Windows/native app execution.Risk
Level: Low. Changes only restart deduplication state. A restarted child may now republish the same result text, as intended for a new run. Revert restores the stale field reference and type error. No protocol, saved-data or remote-version change.
AI Disclosure
Review
Self-reviewed against
KnownSubagentand the reply deduplication implementation.Agent skill upstream boundary
Notes
Platform-independent TypeScript. Local/remote, mobile and folder-workspace behavior share this provider state; no boundary formats changed.
Checklist