You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
urlbox doctor reports active_org: none on a machine where urlbox whoami and urlbox orgs list both report an active organisation. The two commands read different sources and never reconcile.
whoami calls the API's /v1/auth/get-session and reports the server's active org. When the local cache was never written, the two disagree with no indication that they are answering from different places.
Suggested fix
When profile.ActiveOrg is empty but a session token exists, doctor could consult the session and either report the org it finds or say "none stored locally; session reports <org>" — rather than a bare none, which reads as "you have no active org" when the API disagrees.
Summary
urlbox doctorreportsactive_org: noneon a machine whereurlbox whoamiandurlbox orgs listboth report an active organisation. The two commands read different sources and never reconcile.Reproduce
Reach a state where a session exists but
active_orgwas never written locally. The easiest route is the failure in login: session persisted before org resolution, so a failed login exits 1 while signed in #3:Ask the two commands the same question:
Expected
Both agree, or
doctorstates which source it is reporting on.Actual
whoaminames an org:{"ok": true, "data": {"email": "…", "org": {"id": "org_xxx", "name": "…"}, "project": null}}doctorsays there isn't one:{"message": "none (not needed for rendering)", "name": "active_org", "status": "warn"}urlbox orgs listsides withwhoami— it marks that org"active": true.Cause
doctorreads the local config only —internal/cmd/doctor.go:324:whoamicalls the API's/v1/auth/get-sessionand reports the server's active org. When the local cache was never written, the two disagree with no indication that they are answering from different places.Suggested fix
When
profile.ActiveOrgis empty but a session token exists,doctorcould consult the session and either report the org it finds or say "none stored locally; session reports<org>" — rather than a barenone, which reads as "you have no active org" when the API disagrees.Environment
urlbox 1.2.0(commit 5530665), Linux.