Skip to content

fix(cli): switch org after console logout#36276

Merged
vimtor merged 2 commits into
devfrom
logout-org-switch
Jul 13, 2026
Merged

fix(cli): switch org after console logout#36276
vimtor merged 2 commits into
devfrom
logout-org-switch

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • select the first available org after logging out of the active console account
  • leave the current selection unchanged when logging out of an inactive account
  • cover automatic fallback with an account service regression test

Testing

  • bun test test/account/service.test.ts test/account/repo.test.ts test/cli/account.test.ts
  • bun run lint -- packages/opencode/src/account/account.ts packages/opencode/test/account/service.test.ts
  • bun typecheck (local run hit the host process/thread limit; CI remains authoritative)

@vimtor vimtor marked this pull request as ready for review July 13, 2026 10:45
@vimtor vimtor enabled auto-merge (squash) July 13, 2026 10:49
@vimtor vimtor merged commit b3a012c into dev Jul 13, 2026
9 checks passed
@vimtor vimtor deleted the logout-org-switch branch July 13, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant