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
{{ message }}
Repository navigation
mocactl login: turn device_flow_disabled and a mistyped client id (GitHub's 'Not Found') into the operator's fix #405
The chain: packages/control-plane/src/identity.ts:99-102 throws CpError('unauthorized', …), writeError puts the text in message, and packages/mocactl/src/api/errors.tsclassify shows it as-is. A mistyped SH_GITHUB_CLIENT_ID surfaces the same way, as GitHub's HTTP 404 {"error":"Not Found"} from /login/device/code (login failed: github device code failed: Not Found), which says nothing about the client id. (An earlier draft of this issue and of the docs said incorrect_client_credentials; that was wrong, as the #403 review caught and a live POST with a nonexistent client id confirmed.) Both are operator-side fixes the user can't make, and neither message says so.
Proposal
Map the two codes to one sentence each, e.g. "the control plane's GitHub OAuth app has the device flow off — ask the operator to tick Enable Device Flow (deploy/vm/README.md, "The GitHub OAuth app")".
Preferably with a distinct control-plane error code (e.g. identity_provider_misconfigured), so mocactl isn't string-matching GitHub's text.
Add a test for each code.
Not on the critical path
The runbook (docs/demos/vm-two-user-acceptance.md, step 1a) and packages/mocactl/QUICKSTART.md both explain these codes. This is a first-run UX fix.
changed the title [-]mocactl login: turn device_flow_disabled / incorrect_client_credentials into the fix[/-][+]mocactl login: turn device_flow_disabled and a mistyped client id (GitHub's 'Not Found') into the operator's fix[/+]on Oct 1, 2026
Activity
[-]mocactl login: turn device_flow_disabled / incorrect_client_credentials into the fix[/-][+]mocactl login: turn device_flow_disabled and a mistyped client id (GitHub's 'Not Found') into the operator's fix[/+]fix(control-plane,mocactl): name the operator's fix for a misconfigur…
docs(demos): VM demo runbook after rossoctl#411 and rossoctl#413 landed