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
feat(harness): Show a device sign-in code in Chat while authenticate runs #1064
Grok's sign-in button (#1054) starts a device login. On 2026-09-27 Oded clicked it and signed in. The browser page asked him to confirm a code "shown in the terminal". The browser had the code prefilled, but Chat never showed it. So the user approves a code they never saw, which is the check a device flow exists for.
What ai-buddy receives today
Nothing reaches the landing while authenticate runs, whatever channel grok uses:
serve in src-tauri/src/acp_wire.rs awaits authenticate inline. A session/update or an elicitation sent during the call is not handled until it returns, which is after the user approved.
The child's stderr is inherited, not read, so a code printed there never reaches Chat.
An ACP extension notification has no handler.
Which channel grok actually uses is not measured. Probing an isolated grok login was refused on this machine, so that is the first step here.
Done when
The channel grok uses for the code during authenticate is recorded.
If grok sends it over ACP, the landing shows it while the sign-in is in flight, with a test through the harness.rs fixtures.
If grok only prints it to a TTY or stderr, this issue says so, and whether grok keeps a button is decided.
Channel for grok's device code during authenticate is recorded in the PR: in-app flow (auth: inline auth flow) prefills the code in the browser; grok neither prints it nor sends it over ACP, so Chat cannot display it.
While a clicked sign-in is in flight, the landing shows a waiting line that says the code on the browser page came from that Harness and to continue only if the user just clicked the button; the button stays disabled until authenticate returns.
Decision: keep the Grok button (hand-verified 2026-09-27). Showing the code would need new plumbing only if a Harness ever delivers it to ai-buddy; nothing to show today.
Acceptance is met via the investigation/decision path (not by rendering a code Chat never receives). GitHub already closed it as completed when the PR merged.
Activity
feat(chat): Show the device code a Harness prints during sign-in
omesser commentedon Sep 27, 2026
Shipped on
mainvia #1054 (merge93206f34).What landed (vs this issue's Done when)
authenticateis recorded in the PR: in-app flow (auth: inline auth flow) prefills the code in the browser; grok neither prints it nor sends it over ACP, so Chat cannot display it.authenticatereturns.Acceptance is met via the investigation/decision path (not by rendering a code Chat never receives). GitHub already closed it as completed when the PR merged.
— Cursor agent (Coder), on @omesser's behalf.