[BUG] awsAuthRefresh is not working properly after upgrade to claude code 2.0
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?
awsAuthRefresh used to run only when the credentials have become stale in earlier version, right now it is running everytime a new session is started in the terminal.
In the case of the new VSCode extension, it is straight up broken and throws an error.
What Should Happen?
Claude code TUI app should try to authenticate only once with the command provided in the config.
Claude code VSCode extension should be able to execute awsauthrefresh command
Error Messages/Logs
Error found in vscode extension: SyntaxError: Unexpected token 'A', "Attempting"... is not valid JSON
No errors in TUI but it runs the command everytime a new session is opened
Steps to Reproduce
Configure awsAuthRefresh variable in your settings.json with a command like "aws sso login"
and try opening claude code either in terminal or the new vscode plugin
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
1.x
Claude Code Version
2.0.1
Platform
AWS Bedrock
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 9 comments on GitHub. Read the full discussion on GitHub ↗