[Bug] CLI session token expires prematurely, causing frequent logouts

Resolved 💬 1 comment Opened May 7, 2026 by drjagan Closed Jun 5, 2026

Bug Description
I am getting logged out every few minutes from cli. Please fix Cloud Code CLI session token timeout. This is unbearable.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.132
  • Feedback ID: 3c6fc953-c84c-4cab-8f34-4dcc659c2c37

Errors

[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n    at validateHeaders (/$bunfs/root/src/entrypoints/cli.js:50:1013)\n    at buildHeaders (/$bunfs/root/src/entrypoints/cli.js:50:8086)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T14:04:18.459Z"},{"error":"Error: Failed to delete keychain entry: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n    at Vxq (/$bunfs/root/src/entrypoints/cli.js:256:288467)\n    at async E59 (/$bunfs/root/src/entrypoints/cli.js:409:898)\n    at async Aa6 (/$bunfs/root/src/entrypoints/cli.js:409:796)\n    at async m$_ (/$bunfs/root/src/entrypoints/cli.js:2627:2259)\n    at async NRH (/$bunfs/root/src/entrypoints/cli.js:2653:5965)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2678:3455)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-05-07T14:04:45.254Z"}]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗