Skip to content

fix(acp): open legacy Kimi sign-in in the terminal - #2

Open
noelsaw1 wants to merge 1 commit into
mainfrom
fix/t3code-fork-gh1-kimi-auth-2026-10-30
Open

noelsaw1 wants to merge 1 commit into
mainfrom
fix/t3code-fork-gh1-kimi-auth-2026-10-30

Conversation

@noelsaw1

@noelsaw1 noelsaw1 commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Kimi sign-in stalls because the managed 1.52.0 runtime advertises terminal login in legacy ACP metadata. T3 treats it as agent-managed authentication and calls a credential-check endpoint that fails to serialize its error response. This change resolves legacy terminal commands through the existing PTY login and verification flow, while preserving explicit modern methods.

Closes #1. Upstream symptom report: pingdotgg#24302

The same resolver now supplies method discovery, command display and execution. Legacy commands use replacement argv and preserve the configured environment. No UI or transport contract changes. Includes the existing font alias correction to use NodeURL.fileURLToPath, required to run the verification gate from a checkout path containing spaces.

Validation:

  • Legacy regression cases failed before the fix; existing focused auth/probe tests pass afterward, including no-PTY filtering, malformed metadata, method precedence, verification and cancellation.
  • vp run check:changed: passed (21 tests across 3 files, formatting, lint, both knip passes, GraphQL check, and all 10 affected package typechecks).
  • Real old/new Kimi initialization and T3 resolver smoke reached device-login prompts for both runtimes in isolated homes.
  • After operator sign-in, maintained Kimi 2.3.1 completed real T3 AcpSessionRuntime initialize, authenticate and session/new. No prompt or paid model turn was sent. A complete legacy account login through the changed client flow remains unverified.
  • Independent Codex plan review: Approved. Final review: Approved on cf236c2 (attested XYZ Codex relay, round 1).

Verification did not open the live T3 database read-write; the primary checkout remains unchanged. After verification, the installed app was configured through its supported provider UI to use the existing authenticated maintained Kimi executable; its live provider probe succeeded and seven model entries loaded. This PR does not update the ACP Registry or deploy its code to the installed app.

The operator reported a browser Login failed page that opened automatically during smoke testing. Temporary test login processes were stopped after reaching their prompts, so leftover test authorization pages should not be used to complete sign-in. This does not invalidate the independently verified maintained credentials.

Model: gpt-6.1-sol. Harness: Codex in T3 Code; independent review through the XYZ Codex relay harness.

@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Kimi sign-in stalls during ACP authentication

1 participant