🤖 Goal continuations fall back to exec when the selected agent no longer resolves
Maintainers usually reply within 1 day
@ThomasK33 is already working on this.
Since Oct 1, 2026.
Assessment
This issue has not been assessed yet.
Description
Problem
When a workspace's selected agent no longer resolves (its definition was deleted, or the agent was disabled), automatic goal turns fall back to exec. This covers the kickoff, restart recovery and the budget wrap-up. getGoalContinuationKickoffSendOptions() returns the selected agent ID without strictAgentResolution, and resolveAgentForStream() then falls back to exec (agentResolution.ts, non-strict path).
For a goal created under a read-only agent, this means the automatic continuation can gain editing tools.
Scope
This already happens on main for user-created goals: /goal with a read-only custom agent selected, then delete or disable that agent. #5383 (stack #5394) lets read-only agents set goals themselves, which makes the case more common. Found by Codex on #5383 (thread PRRT_kwDOPxxmWM6n90Z7).
Possible fix
Automatic goal turns should fail closed when the selected agent cannot be resolved, instead of falling back to exec. One caveat: strict top-level resolution also rejects hidden agents (explore can be the saved selection). The fix therefore needs an internal automatic-goal-turn path that skips only the selectability check, not the public strictAgentResolution flag.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $57.88
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 140
- Avg merge
- 3h 48m
- Merged PRs (30d)
- 902
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/xum
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug investigation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
approved backlog
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
yjh051108/dsh-routing-suite#216 ·
-
kind/bug priority/needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryPossibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 Half a day Newbie friendliness 66/100
apache/fineract-consumer-facing#175 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 Under an hour Newbie friendliness 82/100
awslabs/visual-asset-management-system#413 ·
Maintainers usually reply within 1 day