Skip to content

fix(account): resilient orgs fetch#16944

Merged
kitlangton merged 1 commit intodevfrom
fix/resilient-orgs-fetch
Mar 11, 2026
Merged

fix(account): resilient orgs fetch#16944
kitlangton merged 1 commit intodevfrom
fix/resilient-orgs-fetch

Conversation

@kitlangton
Copy link
Contributor

Summary

  • orgsByAccount() used Effect.forEach which fails entirely if any account's server is unreachable
  • Replaced with Effect.partition so unreachable servers are skipped and remaining accounts still return their orgs
  • Failed accounts are logged as warnings

Fixes oc orgs and oc switch crashing when you have stale accounts pointing to servers that are down.

Test plan

  • Add a stale account entry pointing to a dead server, verify oc orgs still shows orgs from working accounts
  • Verify warning is logged for the unreachable account

Use Effect.partition instead of Effect.forEach so that if any account's
server is unreachable, the remaining accounts still return their orgs
instead of failing the entire operation. Failed accounts are logged as
warnings.
@kitlangton kitlangton enabled auto-merge (squash) March 11, 2026 00:30
@kitlangton kitlangton merged commit a1b06d6 into dev Mar 11, 2026
11 checks passed
@kitlangton kitlangton deleted the fix/resilient-orgs-fetch branch March 11, 2026 00:39
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