Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: avoid re-using AuthInstanceID for sub agents (#22196)#22211

Merged
f0ssel merged 1 commit intorelease/2.30from
danielle/cherry-2.30/gh-22196
Feb 23, 2026
Merged

fix: avoid re-using AuthInstanceID for sub agents (#22196)#22211
f0ssel merged 1 commit intorelease/2.30from
danielle/cherry-2.30/gh-22196

Conversation

@DanielleMaywood
Copy link
Contributor

Parent agents were re-using AuthInstanceID when spawning child agents. This caused GetWorkspaceAgentByInstanceID to return the most recently created sub agent instead of the parent when the parent tried to refetch its own manifest.

Fix by not reusing AuthInstanceID for sub agents, and updating GetWorkspaceAgentByInstanceID to filter them out entirely.


Cherry picked from 911d734

@DanielleMaywood DanielleMaywood added the cherry-pick/v2.30 Needs to be cherry-picked to the 2.30 release branch label Feb 20, 2026
Parent agents were re-using AuthInstanceID when spawning child agents.
This caused GetWorkspaceAgentByInstanceID to return the most recently
created sub agent instead of the parent when the parent tried to refetch
its own manifest.

Fix by not reusing AuthInstanceID for sub agents, and updating
GetWorkspaceAgentByInstanceID to filter them out entirely.
@DanielleMaywood DanielleMaywood force-pushed the danielle/cherry-2.30/gh-22196 branch from 345d97a to 74b5cfb Compare February 20, 2026 12:54
@DanielleMaywood DanielleMaywood marked this pull request as ready for review February 20, 2026 13:21
@coder-tasks
Copy link
Contributor

coder-tasks bot commented Feb 20, 2026

Documentation Check

No Changes Needed

This PR is a pure internal bug fix that corrects AuthInstanceID inheritance when spawning sub-agents. All changes are confined to internal database queries, agent API logic, and tests — no user-facing behavior, CLI flags, API endpoints, or configuration options are affected.


Automated review via Coder Tasks

@f0ssel f0ssel merged commit fa284dc into release/2.30 Feb 23, 2026
27 checks passed
@f0ssel f0ssel deleted the danielle/cherry-2.30/gh-22196 branch February 23, 2026 22:17
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cherry-pick/v2.30 Needs to be cherry-picked to the 2.30 release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants