GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(kimi): add Kimi Code CLI provider via ACP by ccdwyer · Pull Request #4105 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
daa8df1 to
7e08be0
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs human review 1 blocking correctness issue found. This PR introduces a substantial new provider integration (Kimi Code CLI) with ~4200 lines of new code across driver, adapter, text generation, and UI components. New features of this scope warrant human review. Additionally, two unresolved review comments identify potential bugs: a race condition in You can customize Macroscope's approvability policy. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7e08be0 to
bed537d
Compare
There was an error while loading. Please reload this page.
bed537d to
36244e5
Compare
There was an error while loading. Please reload this page.
36244e5 to
0e1f4d2
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
0e1f4d2 to
ef6fc89
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ef6fc89 to
21e95ae
Compare
There was an error while loading. Please reload this page.
21e95ae to
8156816
Compare
There was an error while loading. Please reload this page.
Add Kimi (MoonshotAI Kimi Code CLI, default model kimi-k3) as a first-party CLI provider, mirroring the in-tree Grok ACP provider: KimiAcpSupport spawns `kimi acp` (standard ACP over stdio, auth method "login"), with KimiDriver, KimiAdapter, KimiProvider snapshot/status (`kimi --version`), headless KimiTextGeneration, contracts settings and model registration, and web picker/settings UI with an Early Access badge. Unlike Grok, Kimi speaks standard ACP: no requiresNewThreadForModelChange flag (session/set_model works mid-session, covered by an adapter test asserting the RPC round-trip) and no xAI extension analog — the ask_user_question handler, prompt-completion fallback, and stop-reason patching are omitted, and respondToUserInput is an explicit always-failing stub. The ACP mock agent gains a T3_ACP_MODEL_SET switch to serve the Kimi model list additively. Reviewed by a kimi-k3 + grok-4.5 + gpt-5.6-sol panel; both applied follow-ups (dead user-input plumbing removal, mid-session set_model test) came from panel findings. Claude-Session: https://claude.ai/code/session_01PBVLpXchsU1WrZ1g5ndib6
8156816 to
eb978de
Compare
Ports three robustness gaps from the competing Kimi PR (pingdotgg#4098) into this provider, adapted to the Grok-mirroring architecture: 1. resolveKimiBinaryPath — when `kimi` is not on PATH (the Windows installer does not add it), fall back to ~/.kimi-code/bin/kimi[.exe] before giving up, so a Windows user with no explicit binaryPath no longer gets a spurious "not installed". An explicit binaryPath stays authoritative. Requires FileSystem/Path, provided at every call site (KimiAdapter, KimiDriver, KimiTextGeneration, provider status probe). 2. Version-probe timeout 4s -> 15s — Kimi is a large single binary; cold starts on Windows can far exceed the warm-path latency and were failing the probe. 3. Signed-out UX — classifyKimiSessionModels distinguishes an EMPTY ACP model list (signed out -> "run `kimi login`", auth unauthenticated) from a MISSING model option (incompatible CLI), instead of silently falling back to a built-in model that fails on first use. Reviewed by grok-4.5, kimi-k3, and gpt-5.6-sol against the three changes. Claude-Session: https://claude.ai/code/session_01QGeRY5z128NxiM6Buz7ZQV
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5b199b3. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| auth: { status: "unauthenticated" }, | ||
| message: KIMI_SIGNED_OUT_MESSAGE, | ||
| }, | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Medium Severity
The new signed-out health path only runs after ACP startup succeeds with an empty model list, but this PR’s own probe notes that missing credentials fail at authenticate. Those users hit the generic ACP startup failure with auth: unknown instead of unauthenticated and the kimi login guidance.
Reviewed by Cursor Bugbot for commit 5b199b3. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| }); | ||
|
|
||
| const stopAll: KimiAdapterShape["stopAll"] = () => | ||
| Effect.forEach(Array.from(sessions.values()), stopSessionInternal, { discard: true }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟠 High Layers/KimiAdapter.ts:1386
stopAll iterates sessions.values() directly instead of acquiring each thread's lock, so a startSession that is mid-flight (between removing the old session and inserting the new ctx) is invisible to stopAll. stopAll reports success, then startSession finishes and leaves a live Kimi process that is never stopped. Consider routing each stop in stopAll through withThreadLock, or coordinating with in-progress starts.
In file @apps/server/src/provider/Layers/KimiAdapter.ts around line 1386:
`stopAll` iterates `sessions.values()` directly instead of acquiring each thread's lock, so a `startSession` that is mid-flight (between removing the old session and inserting the new `ctx`) is invisible to `stopAll`. `stopAll` reports success, then `startSession` finishes and leaves a live Kimi process that is never stopped. Consider routing each stop in `stopAll` through `withThreadLock`, or coordinating with in-progress starts.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hey, for now we're not adding new providers now. Might revisit this after #2829 has been released |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.