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
Reproduced on macOS with T3 Code Beta 0.1.5 and the registry-managed Kimi CLI 1.52.0 (aarch64-apple-darwin). Sign-in stalls without opening a browser.
The Kimi log shows two attempts on 2026-10-30 at 13:16 and 13:17 local time. Both connect successfully as ACP client t3-code-provider-auth, then fail:
kimi_cli.acp.server:authenticate:385
Authentication not complete for method: login (no valid token found)
kimi_cli/acp/server.py:390, in authenticate
acp.exceptions.RequestError: Authentication required
During handling of the above exception:
acp/connection.py:219, in _run_request
acp/task/sender.py:33, in send
json/__init__.py:242, in dumps
TypeError: Object of type AuthMethod is not JSON serializable
when serializing list item 0
when serializing dict item authMethods
when serializing dict item data
when serializing dict item error
This indicates that Kimi fails while serializing its authentication-required error response. That would explain the pending ACP request / stalled sign-in UI, although it does not establish why browser login was never initiated. T3 server traces also show an ACP authenticate request interrupted when the attempt was replaced.
Potentially related: #15899 identifies the registry-managed 1.52.0 runtime as the archived Kimi CLI. These observations do not yet establish whether upgrading the runtime resolves the issue.
Diagnostics collected with Codex (gpt-6.1-sol) in T3 Code.
Still reproduces on T3 Code desktop 0.1.6, macOS 26.5 (arm64), with the registry-managed Kimi CLI 1.52.0. Retry sign-in stays on "Starting sign-in…" and then shows "Not authenticated". ~/.kimi/logs/kimi.log has the same trace already posted here: authenticate:385 … no valid token found, then RequestError: Authentication required, then TypeError: Object of type AuthMethod is not JSON serializable (when serializing error.data.authMethods). Root cause and the _meta["terminal-auth"] analysis are in #28833; the fix is #24409 (still open).
Workaround on macOS: set Executable override to ~/.kimi-code/bin/kimi (Kimi Code CLI 2.4.1). If ~/.kimi-code/credentials/kimi-code.json already exists, the provider check goes to ready and loads 256 models with no re-login. Its auth status shows unknown rather than authenticated.
Triage by Claude Opus 5.5 (Claude Code) via t3 triage.
Same on Windows 11, T3 Code 0.1.6 (t3 serve), registry-managed Kimi CLI 1.52.0. Login does nothing.
Workaround from @AskAlice's comment works on Windows too. I already had Kimi Code CLI 2.4.1 installed and logged in (~/.kimi-code/bin/kimi.exe), so I pointed the provider at it with Executable override in Settings → Providers → Kimi CLI.
If you run headless and want to set it in the file, it's commandPath in ~/.t3/userdata/settings.json:
Restart the server after editing. No re-login needed. My credentials file is named kimi-code-env-<hash>.json rather than kimi-code.json, and it still worked.
Root cause (Linux x86_64, t3 Code 0.1.11 and 0.1.12-nightly, registry-managed Kimi CLI 1.52.0)
The registry's kimi entry ships kimi-cli 1.52.0. Its ACP server advertises sign-in like this:
{
"id": "login",
"name": "Login with Kimi account",
"description": "Run `kimi login` command in the terminal, then follow the instructions to finish login.",
"_meta": {
"terminal-auth": { "type": "terminal", "label": "Kimi Code Login", "command": "<kimi>", "args": ["login"], "env": {} }
}
}
There is no top-level "type": "terminal", only _meta.terminal-auth. In packages/provider-acp-registry/src/server/auth.ts, AcpRegistryAuth.authenticate takes the terminal path only when method.type === "terminal", so 1.52.0 falls into the runtime.authenticate(methodId) branch instead.
1.52.0 never answers that request. ~/.kimi/logs/kimi.log at the moment of the click:
authenticate:385 | Authentication not complete for method: login (no valid token found)
acp.exceptions.RequestError: Authentication required
TypeError: Object of type AuthMethod is not JSON serializable
when serializing dict item 'authMethods' / 'data' / 'error'
It decides the login failed immediately, then crashes while serializing the error response, so no JSON-RPC reply is ever written and the process stays up. t3 Code awaits that reply with no timeout, hence "Starting sign-in…" forever. Reproduced directly: initialize + authenticate(methodId=login) against kimi acp 1.52.0 gives no response within 20 s, process alive.
Smallest fix
Treat a method as terminal when it carries _meta["terminal-auth"] (the ACP terminal-auth extension), not only when type === "terminal". 1.52.0's own description says "Run kimi login in the terminal" and its _meta.terminal-auth supplies args: ["login"], so the existing runTerminal path (<spawn> login) does exactly what the reporter confirmed works manually. A test that feeds the payload above and asserts the terminal path covers it.
Robustness
Race runtime.authenticate(methodId) against the runtime exiting or its connection closing, so an agent that dies mid-request surfaces "The ACP agent could not complete sign-in" instead of hanging.
Product note
The registry now has a separate kimi-code entry ("Kimi Code", 2.7.3 via npx @moonshot-ai/kimi-code) and labels kimi as "Kimi CLI (Legacy)". 2.x advertises type: "terminal" with args: ["--login"] (kimi acp --login, a device-code flow with URL and user code), which t3 Code's existing terminal path handles unchanged. Worth defaulting new Kimi providers to kimi-code.
Workaround today, no code change
Change the provider's Registry agent ID from kimi to kimi-code. Same ~/.kimi-code/ config dir, so an existing login carries over. Verified here: status ready, authenticated. Alternative: Executable override pointing at a kimi-code 2.x binary.
Activity
dyipon commentedon Oct 24, 2026
same here
MaximSedov commentedon Oct 27, 2026
same
sx-motive commentedon Oct 28, 2026
same
fabianclain commentedon Oct 29, 2026
I'm also reproducing this one!
noelsaw1 commentedon Oct 30, 2026
Reproduced on macOS with T3 Code Beta 0.1.5 and the registry-managed Kimi CLI 1.52.0 (aarch64-apple-darwin). Sign-in stalls without opening a browser.
The Kimi log shows two attempts on 2026-10-30 at 13:16 and 13:17 local time. Both connect successfully as ACP client
t3-code-provider-auth, then fail:This indicates that Kimi fails while serializing its authentication-required error response. That would explain the pending ACP request / stalled sign-in UI, although it does not establish why browser login was never initiated. T3 server traces also show an ACP authenticate request interrupted when the attempt was replaced.
Potentially related: #15899 identifies the registry-managed 1.52.0 runtime as the archived Kimi CLI. These observations do not yet establish whether upgrading the runtime resolves the issue.
Diagnostics collected with Codex (gpt-6.1-sol) in T3 Code.
AskAlice commentedon Nov 4, 2026
Still reproduces on T3 Code desktop 0.1.6, macOS 26.5 (arm64), with the registry-managed Kimi CLI 1.52.0. Retry sign-in stays on "Starting sign-in…" and then shows "Not authenticated".
~/.kimi/logs/kimi.loghas the same trace already posted here:authenticate:385 … no valid token found, thenRequestError: Authentication required, thenTypeError: Object of type AuthMethod is not JSON serializable(when serializingerror.data.authMethods). Root cause and the_meta["terminal-auth"]analysis are in #28833; the fix is #24409 (still open).Workaround on macOS: set Executable override to
~/.kimi-code/bin/kimi(Kimi Code CLI 2.4.1). If~/.kimi-code/credentials/kimi-code.jsonalready exists, the provider check goes toreadyand loads 256 models with no re-login. Its auth status showsunknownrather thanauthenticated.Triage by Claude Opus 5.5 (Claude Code) via
t3 triage.sx-motive commentedon Nov 4, 2026
Same on Windows 11, T3 Code 0.1.6 (
t3 serve), registry-managed Kimi CLI 1.52.0. Login does nothing.Workaround from @AskAlice's comment works on Windows too. I already had Kimi Code CLI 2.4.1 installed and logged in (
~/.kimi-code/bin/kimi.exe), so I pointed the provider at it with Executable override in Settings → Providers → Kimi CLI.If you run headless and want to set it in the file, it's
commandPathin~/.t3/userdata/settings.json:Restart the server after editing. No re-login needed. My credentials file is named
kimi-code-env-<hash>.jsonrather thankimi-code.json, and it still worked.jaronschulz commentedon Nov 24, 2026
Root cause (Linux x86_64, t3 Code 0.1.11 and 0.1.12-nightly, registry-managed Kimi CLI 1.52.0)
The registry's
kimientry ships kimi-cli 1.52.0. Its ACP server advertises sign-in like this:{ "id": "login", "name": "Login with Kimi account", "description": "Run `kimi login` command in the terminal, then follow the instructions to finish login.", "_meta": { "terminal-auth": { "type": "terminal", "label": "Kimi Code Login", "command": "<kimi>", "args": ["login"], "env": {} } } }There is no top-level
"type": "terminal", only_meta.terminal-auth. Inpackages/provider-acp-registry/src/server/auth.ts,AcpRegistryAuth.authenticatetakes the terminal path only whenmethod.type === "terminal", so 1.52.0 falls into theruntime.authenticate(methodId)branch instead.1.52.0 never answers that request.
~/.kimi/logs/kimi.logat the moment of the click:It decides the login failed immediately, then crashes while serializing the error response, so no JSON-RPC reply is ever written and the process stays up. t3 Code awaits that reply with no timeout, hence "Starting sign-in…" forever. Reproduced directly:
initialize+authenticate(methodId=login)againstkimi acp1.52.0 gives no response within 20 s, process alive.Smallest fix
Treat a method as terminal when it carries
_meta["terminal-auth"](the ACP terminal-auth extension), not only whentype === "terminal". 1.52.0's own description says "Runkimi loginin the terminal" and its_meta.terminal-authsuppliesargs: ["login"], so the existingrunTerminalpath (<spawn> login) does exactly what the reporter confirmed works manually. A test that feeds the payload above and asserts the terminal path covers it.Robustness
Race
runtime.authenticate(methodId)against the runtime exiting or its connection closing, so an agent that dies mid-request surfaces "The ACP agent could not complete sign-in" instead of hanging.Product note
The registry now has a separate
kimi-codeentry ("Kimi Code", 2.7.3 via npx@moonshot-ai/kimi-code) and labelskimias "Kimi CLI (Legacy)". 2.x advertisestype: "terminal"withargs: ["--login"](kimi acp --login, a device-code flow with URL and user code), which t3 Code's existing terminal path handles unchanged. Worth defaulting new Kimi providers tokimi-code.Workaround today, no code change
Change the provider's Registry agent ID from
kimitokimi-code. Same~/.kimi-code/config dir, so an existing login carries over. Verified here: status ready, authenticated. Alternative: Executable override pointing at a kimi-code 2.x binary.