Return useful error if TS auth token has expired#162
Conversation
Rifdhan
commented
Jun 10, 2026
- Prompt the agent or user to reauthenticate to generate a new TS auth token in such cases
- Add test coverage
- Prompt the agent or user to reauthenticate to generate a new TS auth token in such cases - Add test coverage
There was a problem hiding this comment.
Code Review
This pull request introduces error handling for expired authentication when creating an agent conversation. Specifically, in mcp-server.ts, a try-catch block is added around createAgentConversation to catch 401 status errors and return a user-friendly error response prompting the user to reauthenticate. A corresponding unit test has been added in mcp-server.spec.ts to verify this behavior. No review comments were provided, so there is no additional feedback to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.