Description
When running opencode auth list after successfully authenticating with a provider (e.g. Anthropic or OpenAI), the output shows undefined in place of the provider name or model identifier. This makes it impossible to identify which auth sessions are currently active, especially when multiple providers are configured.
Actual output:
undefined - active
undefined
Expected output:
anthropic - active
openai
This appears to be a rendering/parsing issue w0.3.x (latest)here the provider name field is not being correctly accessed from the session object before display.
Plugins
No response
OpenCode version
0.3.x (latest dev branch)
Steps to reproduce
- Install opencode via npm:
npm install -g opencode-ai
- Authenticate with any provider:
opencode auth login anthropic
- Run
opencode auth list
- Observe the output — provider name shows as
undefined
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Description
When running
opencode auth listafter successfully authenticating with a provider (e.g. Anthropic or OpenAI), the output showsundefinedin place of the provider name or model identifier. This makes it impossible to identify which auth sessions are currently active, especially when multiple providers are configured.Actual output:
Expected output:
This appears to be a rendering/parsing issue w0.3.x (latest)here the provider name field is not being correctly accessed from the session object before display.
Plugins
No response
OpenCode version
0.3.x (latest dev branch)
Steps to reproduce
npm install -g opencode-aiopencode auth login anthropicopencode auth listundefinedScreenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal