[BUG] VS Code extension v2 doesn't show messages from awsAuthRefresh

Status Fixed / completed
Maintainer reply ✓ Yes — blois
Activity 8 comments · opened Oct 29, 2025 · closed Oct 31, 2025
💡 Likely answer: A maintainer (blois, collaborator) responded on this thread — see the highlighted reply below.

Preflight Checklist

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

What's Wrong?

I'm using Claude Code with Bedrock, and I configured awsAuthRefresh for re-authenticating. While Claude Code on terminal successfully shows stdout output from awsAuthRefresh, Claude Code extension v2 (without terminal) doesn't show it. Due to this, I cannot notice when the extension pauses for authentication.

What Should Happen?

The extension shows messages from awsAuthRefresh.

Error Messages/Logs

N/A

Steps to Reproduce

  1. Create ~/.claude/settings.json with awsAuthRefresh
  2. Configure VS Code extension
  3. Open the extension on VS Code, and wait for the current session's expiration
  4. The extension does run a command specified by awsAuthRefresh, but it doesn't show any messages from the command. In fact, the internal log file of the extension ("Claude VSCode.log") has the messages.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.0.28 (Claude Code)

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Other

Additional Information

  • VS Code extension anthropic.claude-code 2.0.28
  • The log file can be seen by, Command + Shift + P -> "Developer: Open Extension Logs Folder" -> "Anthropic.claude-code/Claude VSCode.log"

View original on GitHub ↗

8 Comments

github-actions[bot] · 11 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/9471
  2. https://github.com/anthropics/claude-code/issues/10506

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

nekketsuuu · 11 months ago

https://github.com/anthropics/claude-code/issues/9471 is a similar issue to this, but it appears that the issue doesn't use awsAuthRefresh.

blois collaborator · 11 months ago

This should now be fixed in version 2.0.30.

nekketsuuu · 11 months ago

@blois Thanks for looking into this issue! However, the extension still doesn't show any messages from the awsAuthRefresh command even after upgrading the extension to 2.0.30 and restarting VS Code on my environment. I've confirmed that the messages were shown in the extension logs (Claude VSCode.log).

Please let me know if there are any other logs you need to fix this.

blois collaborator · 11 months ago

Interesting- can you say more about what messages appeared in the extension logs?

And is your awsAuthRefresh pretty much just aws sso login?

nekketsuuu · 11 months ago

Sure!

And is your awsAuthRefresh pretty much just aws sso login?

No, but a similar tool. I'm using https://github.com/sorah/mairu for authentication with AWS Identity Center (formerly, AWS SSO), and my awsAuthRefresh is like mairu login my-server. It will show an login URL like below, and after clicking the URL, the login will be completed.

:: mairu :: Login to my-server (https://my-server.awsapps.com/start) ::::::::
:: mairu ::
:: mairu ::
:: mairu :: Open the following URL to continue
:: mairu :: https://oidc.us-west-2.amazonaws.com/authorize?[OMITTED]
:: mairu ::
:: mairu ::

So my expectation was that these message lines are shown in the extension pane.

can you say more about what messages appeared in the extension logs?

Like the following:

2025-10-31 14:43:14.816 [info] Received message from webview: {"type":"request","requestId":"j65edxva4k","request":{"type":"rename_tab","title":"hi"}}
2025-10-31 14:43:14.824 [info] Received message from webview: {"type":"io_message","channelId":"yod7nm8rtg","message":{"type":"user","session_id":"","parent_tool_use_id":null,"message":{"role":"user","content":[{"type":"text","text":"<ide_opened_file>The user opened the file [OMITTED] in the IDE. This may or may not be related to the current task.</ide_opened_file>"},{"type":"text","text":"hi"}]}},"done":false}
2025-10-31 14:43:15.175 [info] From claude: :: mairu :: Login to my-server (https://my-server.awsapps.com/start) ::::::::
:: mairu ::
:: mairu ::
:: mairu :: Open the following URL to continue
:: mairu :: https://oidc.us-west-2.amazonaws.com/authorize?[OMITTED]
:: mairu ::
:: mairu ::

2025-10-31 14:43:15.176 [info] From claude: :: mairu :: Login to my-server (https://my-server.awsapps.com/start) ::::::::
:: mairu ::
:: mairu ::
:: mairu :: Open the following URL to continue
:: mairu :: https://oidc.us-west-2.amazonaws.com/authorize?[OMITTED]
:: mairu ::
:: mairu ::

2025-10-31 14:43:38.171 [info] Received message from webview: {"type":"interrupt_claude","channelId":"yod7nm8rtg"}

// Please note that I replace my own server name to "my-server" for hiding the name.

blois collaborator · 11 months ago

Ok, I see a race condition that can result in this under some configurations. A fix will be arriving soon, thanks for your patience!

github-actions[bot] · 11 months ago

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.