claude-code - 💡(How to fix) Fix [BUG] Failed awsAuthRefresh output shown even after auth succeeds [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48497Fetched 2026-04-16 06:58:33
View on GitHub
Comments
2
Participants
2
Timeline
11
Reactions
0
Timeline (top)
labeled ×6subscribed ×3commented ×2

Error Message

My awsAuthRefresh command failed, causing an error message to appear. I addressed the cause of the auth error and submitted another prompt, which succeeded, indicating successful auth refresh. However, the error from the failed auth refresh is still shown, and it's sticky-positioned below the conversation. This screenshot captures the issue: The agent output is shown above the auth error message, even though the auth error was resolved. I can continue the conversation, but it continues above the no-longer-applicable auth error message. After awsAuthRefresh succeeds, the auth error message should either 1) be dismissed or 2) be positioned at the point in the conversation where auth failed, instead of being stuck to the tail of the conversation.

Error Messages/Logs

  1. Set the AWS auth command to return exit code 1, then enter another prompt, triggering the auth error.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

My awsAuthRefresh command failed, causing an error message to appear. I addressed the cause of the auth error and submitted another prompt, which succeeded, indicating successful auth refresh. However, the error from the failed auth refresh is still shown, and it's sticky-positioned below the conversation.

This screenshot captures the issue: The agent output is shown above the auth error message, even though the auth error was resolved. I can continue the conversation, but it continues above the no-longer-applicable auth error message.

<img width="1014" height="419" alt="Image" src="https://github.com/user-attachments/assets/23f2f195-10f3-479a-ab40-729d92827ff9" />

What Should Happen?

After awsAuthRefresh succeeds, the auth error message should either 1) be dismissed or 2) be positioned at the point in the conversation where auth failed, instead of being stuck to the tail of the conversation.

Error Messages/Logs

Steps to Reproduce

  1. In ~/.claude/settings.json, set awsAuthRefresh to a valid AWS auth command that lets you control its exit code. Have it return exit code 0 initially.
  2. Start a session with Claude Code and enter a prompt.
  3. Set the AWS auth command to return exit code 1, then enter another prompt, triggering the auth error.
  4. Set the AWS auth command to return exit code 0, then enter another prompt.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.107 (Claude Code)

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

The auth error message should be dismissed or repositioned after a successful awsAuthRefresh command.

Guidance

  • Review the conversation rendering logic to ensure it correctly handles auth error messages after a successful refresh.
  • Verify that the auth error message is properly cleared or updated when the awsAuthRefresh command succeeds.
  • Investigate the styling and positioning of the auth error message to determine why it remains sticky-positioned below the conversation.
  • Check the code responsible for rendering the conversation and error messages to ensure it accounts for changes in auth status.

Example

No code snippet is provided as the issue does not include specific code references.

Notes

The issue may be related to the conversation rendering logic or the styling of the auth error message. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround to clear or reposition the auth error message after a successful awsAuthRefresh command, as the root cause is unclear and may require additional debugging.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING