Skip to content

fix(agent-runtime): dedupe tool calls in subagents - #782

Merged
vastsa merged 1 commit into
mainfrom
fix/duplicate-tool-call-ids-subagents
Sep 21, 2026
Merged

vastsa merged 1 commit into
mainfrom
fix/duplicate-tool-call-ids-subagents

Conversation

@vastsa

@vastsa vastsa commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Follow-up to #780.

Fix

The parent runtime now shares its request-boundary tool-call dedupe with Task subagents, including resumed delegate history. Empty assistant snapshots created by removing a duplicate are not sent. Empty-string ids are deduped as well.

Validation

  • agent-runtime: 49 test files, 733 tests passed
  • agent-runtime TypeScript typecheck passed
  • git diff --check passed
  • Desktop E2E not run: this is a runtime-only change and no real provider credentials were used.

Use one shared request-boundary filter for the parent runtime and Task subagents. This keeps resumed delegate history valid when append-only snapshots repeat a tool-call id, while preserving the existing no-duplicate fast path and diagnostic log.
Copilot AI lite review requested due to automatic review settings September 21, 2026 06:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit dab5e07 into main Sep 21, 2026
4 checks passed
@vastsa
vastsa deleted the fix/duplicate-tool-call-ids-subagents branch September 21, 2026 11:16

This branch was previously deployed

1 inactive deployment
Preview — 3de2a656 Deployed Sep 21, 2026 by vercel[bot]
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.

2 participants