Skip to content

Add new default environments on upgrade and list every environment's login - #11

Merged
alercunha merged 1 commit into
mod-audio:masterfrom
alercunha:multi-env-tokens
Nov 13, 2026
Merged

alercunha merged 1 commit into
mod-audio:masterfrom
alercunha:multi-env-tokens

Conversation

@alercunha

Copy link
Copy Markdown
Collaborator

Summary

  • On startup, default environments missing from context.json (e.g. prod after 3.0.1) are added. Existing environments, their tokens and the active environment are kept, so upgrading no longer needs config clear-context.
  • config list keeps its current output and adds every environment with its user and token expiry (or not logged in / expired), marking the active one with *:
    Active environment: dev
    Authenticated in [dev]: Yes
    Registered environments: ['dev', 'prod']
    
    * dev   me@example.com (expires 2033-05-17 20:33)
      prod  not logged in
    

Tokens were already stored per environment in context.json. The access_token file, context.json and every command and flag work as before.

🤖 Generated with Claude Code

…login

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alercunha
alercunha merged commit cc39314 into mod-audio:master Nov 13, 2026
17 checks passed
@alercunha
alercunha deleted the multi-env-tokens branch November 13, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant