Skip to content

fix(acp): reset reply digest when a subagent restarts - #40496

Merged
OrcaWin merged 1 commit into
mainfrom
fix/acp-subagent-restart-reply-digest
Nov 9, 2026
Merged

OrcaWin merged 1 commit into
mainfrom
fix/acp-subagent-restart-reply-digest

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

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.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 5

Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: resetting the reply digest when an ACP subagent restarts.
Description check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • 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.

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.

1 participant