fix(provider): keep Claude prefill requests user-final#26477
fix(provider): keep Claude prefill requests user-final#26477codeg-dev wants to merge 1 commit intoanomalyco:devfrom
Conversation
Refs: ISS-4118
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found 2 potentially related PRs (excluding the current PR #26477):
These PRs appear to be related to similar Claude provider prefill/transform logic, though they may address different edge cases or versions. You may want to review them to ensure there's no overlapping work. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Issue for this PR
Closes #13768
Type of change
What does this PR do?
This fixes two ways a request can resolve to the wrong provider-facing shape:
Atlas - Plan Executor.Agent.get()now also matches a normalized short alias, so--agent atlasresolves the displayed Atlas agent instead of falling back to the default agent.The changes are in the provider transform and agent lookup choke points, so callers do not need to handle these cases separately.
How did you verify your code works?
bun test test/agent/agent.test.ts --timeout 30000 --test-name-pattern 'Agent.get resolves display-name agents by short alias|Agent.get returns undefined for non-existent agent'bun test test/provider/transform.test.ts --timeout 30000bun run typecheckbun run buildScreenshots / recordings
Not applicable; this is provider/agent resolution behavior.
Checklist
Authorship disclosure: prepared with AI assistance.