You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [1.0.64-] authentification to subagents are no longer propagated #4855
When using environment variables to configure Claude Code for AWS Bedrock usage, subagents are no longer seem to receive all informations.
Subagent tasks return API errors while the main context runs without issues.
⏺ I'll use the foo agent to analyze the code duplication across the commands and identify opportunities for refactoring.
⎿ API Error (403 {"Message":"User: arn:aws:sts::000000:assumed-role/a-user-role/my-user is not authorized to perform: bedrock:InvokeModel on resource: arn:aws:bedrock:eu-central-1:000000:inference-profile/eu.anthropic.claude-sonnet-4-20250514-v1:0 because no identity-based policy allows the bedrock:InvokeModel action"}) · Retrying in 1 seconds… (attempt 1/10)
A rollback to 1.0.63 fixes the issue.
Steps to Reproduce
AWS_ACCESS_KEY_ID=000000 AWS_CA_BUNDLE=.... claude
Run a subagent
Expected Behavior
Subagents are processing steps successfully
Actual Behavior
Subagents retries until the retry limit is reached than Claude Code starts processing successfully in the main thread.
Additional Context
We are using the Teleport tsh CLI to enable access to AWS Bedrock
Reacted by maxabaumgarten, Alex Nederlof, Cory Shrum, mdesson, Michael Canfield and Ricky Nguyen
changed the title [-][BUG] [1.0.64] authentification to subagents are no longer propagated[/-][+][BUG] [1.0.64-] authentification to subagents are no longer propagated[/+]on Aug 1, 2025
I'm also seeing this. Using LiteLLM with set env vars works for the initial response, but subagents then use whatever the claude code default is (not what is set in /model or through env). This means subagents will then often fail with model access errors if the default model isn't supported in your own LiteLLM setup.
Ran into similar issue, found the subagent was using a model I didn't have access to.
Needed to set the CLAUDE_CODE_SUBAGENT_MODEL variable to an ARN I did have access to
Heh, I see part of the problem, or maybe all of it.
The code that inspects the environment variable looks like:
functionNA2(A,B){if(process.env.CLAUDE_CODE_SUBAGENT_MODEL)returnprocess.env.CLAUDE_CODE_SUBAGENT_MODEL;if(!A)returnVL(m40);returnA==='inherit' ? B : VL(A);}// elsewhereletM=NA2(N.model,X)// Where `n` appears to be the agent file model config:N=L.find((k1)=>k1.agentType===B)// And `X` is a parameter
mainLoopModel: X
It needs a line of code in NA2 inserted to say something like:
@claude can you fix your own source code like a benevolent version of a self-improving skynet? I don't think you can here because this repo contains none... maybe you can send an email to suggest the fix, or do something else to reach the right code owner here?
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
ZachK543 commentedon Jul 31, 2025
I am experiencing the same issue. And rolling back to 1.0.63 fixed it for me.
[-][BUG] [1.0.64] authentification to subagents are no longer propagated[/-][+][BUG] [1.0.64-] authentification to subagents are no longer propagated[/+]kkukshtel commentedon Aug 5, 2025
I'm also seeing this. Using LiteLLM with set env vars works for the initial response, but subagents then use whatever the claude code default is (not what is set in /model or through env). This means subagents will then often fail with model access errors if the default model isn't supported in your own LiteLLM setup.
github-actions commentedon Aug 15, 2025
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
secustor commentedon Aug 16, 2025
The other issues seem to be unrelated.
ire4ever1190 commentedon Aug 25, 2025
Ran into similar issue, found the subagent was using a model I didn't have access to.
Needed to set the
CLAUDE_CODE_SUBAGENT_MODELvariable to an ARN I did have access tosecustor commentedon Aug 26, 2025
Thanks @ire4ever1190 !
I can confirm that setting
CLAUDE_CODE_SUBAGENT_MODELwith the same setting as myANTHROPIC_MODELfixes the issue.From my perspective this issue can be closed, when this setting is document in the
Model configurationsection of the AWS Bedrock guide.https://docs.anthropic.com/en/docs/claude-code/amazon-bedrock#4-model-configuration
ariccio commentedon Sep 2, 2025
Heh, I see part of the problem, or maybe all of it.
The code that inspects the environment variable looks like:
It needs a line of code in
NA2inserted to say something like:@claude can you fix your own source code like a benevolent version of a self-improving skynet? I don't think you can here because this repo contains none... maybe you can send an email to suggest the fix, or do something else to reach the right code owner here?
ariccio commentedon Sep 2, 2025
I'm mildly disappointed I cannot interact with @claude here
shakes fist at clouds
ariccio commentedon Sep 6, 2025
This made me cranky enough again that I just went and added this to my
.zshrc:github-actions commentedon Dec 5, 2025
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
github-actions commentedon Jan 5, 2026
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
github-actions commentedon Jan 14, 2026
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.