Skip to content

fix(source-control): drop unsupported Kimi recipe flags - #14790

Closed
bbingz wants to merge 1 commit into
stablyai:mainfrom
bbingz:fix/14771-kimi-quiet-flag
Closed

bbingz wants to merge 1 commit into
stablyai:mainfrom
bbingz:fix/14771-kimi-quiet-flag

Conversation

@bbingz

@bbingz bbingz commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Source Control AI was launching Kimi with flags current Kimi Code does not understand, so the recipe died with unknown option before reading the prompt. This keeps only the flags Kimi actually accepts.

What Changed

  • Rebased onto current main after the commit-message spec split (commit-message-agent-specs-secondary.ts).
  • Removed --quiet, --thinking, and --no-thinking from the Kimi recipe.
  • Removed Kimi thinking-level metadata so the UI cannot regenerate those flags.
  • Kept --prompt delivery and optional --model.

Why

Issue #14771: Kimi Code 0.36.1 (and locally reproduced 0.40.1) rejects --quiet. The same CLI also rejects --thinking / --no-thinking (unknown option). Those flags were reintroduced on main when the spec was split; they still crash the recipe.

Test red-line (declared): existing assertions that required --quiet and Kimi thinking argv were replaced because they encoded flags the current CLI rejects. The function under fix is not mocked.

Linked Issue

Fixes #14771

Visual Proof

N/A — subprocess argv only; no UI or interaction change besides hiding a thinking picker that generated rejected flags.

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Live CLI: kimi 0.40.1 (/Users/bing/.kimi-code/bin/kimi). kimi -p x --quiet, --thinking, and --no-thinking each print error: unknown option and do not run the prompt.

  • RED: focused spec tests failed on current main at not.toContain(--quiet) and thinkingLevels still defined.

  • GREEN: ./node_modules/.bin/vitest run --config config/vitest.config.ts src/shared/commit-message-agent-spec.test.ts src/shared/commit-message-plan.test.ts src/shared/commit-message-generation.test.ts — 3 files, 74 passed.

  • pnpm typecheck:node passed.

  • oxlint + oxfmt on the two changed files passed.

  • git diff --check clean.

  • Not run: full pnpm test, pnpm lint, pnpm build, Windows/SSH hosts. Shared argv only.

Final head: 8f1812cf0ee8573ee7706218900e30b31fd0a3b6

AI Disclosure

OpenAI Codex / Grok 4.6 used for rebase onto current main, TDD, verification, and PR body. Independent second-model review of this SHA: UNVERIFIED (not a security/auth change; one attempt may follow).

Review

  • Security: no new input, permissions, network, or trust-boundary behavior.
  • Cross-platform: shared argv construction only.
  • SSH / folder workspace / git provider: unchanged.
  • Agent compatibility: Kimi recipe only.
  • Backwards compatibility: supported --prompt / optional --model retained; rejected flags removed.
  • Performance / mobile: N/A.

Overlap

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Focused tests + typecheck:node passed locally; full matrix left to CI.

Author

  • X / Twitter: N/A

@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 20a0c381-03c1-4bc7-a326-3bd010ba55f1

📥 Commits

Reviewing files that changed from the base of the PR and between 8f1812c and 28ad4d4.

📒 Files selected for processing (2)
  • src/shared/commit-message-agent-spec.test.ts
  • src/shared/commit-message-agent-specs-secondary.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Kimi argument construction now passes the prompt through argv without --quiet, --thinking, or --no-thinking. The Kimi K2.6 model no longer defines selectable or default thinking levels. Tests verify the revised arguments and confirm that provider-qualified Kimi models expose no thinking configuration.

Priority: ➖ Normal

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing unsupported Kimi recipe flags.
Description check ✅ Passed The description covers the required sections, linked issue, user-facing change, rationale, testing, review considerations, and checklist status. It clearly states which full checks were not run and wh…
Linked Issues check ✅ Passed Issue #14771 requires the Kimi recipe to stop sending unsupported CLI flags and continue headless prompt execution. buildSecondaryCommitMessageAgentSpecs now sends --prompt and an optional non-def…
Out of Scope Changes check ✅ Passed The reviewed changes are limited to the Kimi recipe definition and its focused tests in src/shared/commit-message-agent-specs-secondary.ts and src/shared/commit-message-agent-spec.test.ts. These c…
  • Fix all pre-merge checks with AI

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5df47993-27a4-4b1e-9a68-bbcf0a7d4cde

📥 Commits

Reviewing files that changed from the base of the PR and between c0a7754 and 3330f6dc3b3be8d618b39864bed240ab936711cb.

📒 Files selected for processing (2)
  • src/shared/commit-message-agent-spec.test.ts
  • src/shared/commit-message-agent-spec.ts

@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@bbingz

bbingz commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (7106101ed2) after the commit-message spec split.

Head: 8f1812cf0ee8573ee7706218900e30b31fd0a3b6

Live Kimi Code 0.40.1 still rejects --quiet, --thinking, and --no-thinking as unknown options. Thinking metadata was removed so the picker cannot regenerate those flags. This stays scoped to the Kimi recipe; it is not a twin of #18138 (Antigravity) or the multi-issue #14838.

@bbingz

bbingz commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Fork CI for this head is green: https://github.com/bbingz/orca/actions/runs/33827553039 (pr.yml on bbingz#56). typecheck, static analysis, Node 24 test shards, Windows package, and verify succeeded. I will close the fork verification PR.

@bbingz

bbingz commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Readiness recheck on 8f1812cf0ee8573ee7706218900e30b31fd0a3b6: independent Cursor review found no actionable defect in the two-file Kimi recipe change. --prompt and optional --model remain; removed thinking metadata prevents current clients from regenerating the rejected flags.

The fork PR Checks run is successful and its head_sha matches this commit. Upstream checks remain absent; fork success is not upstream approval. The branch is mergeable against current main.

Keeping this head and the existing assignee/review request unchanged; ready for maintainer review. No workflows were approved or rerun in this recheck.

kimi-code 0.36–0.40 reject --quiet, --thinking, and --no-thinking as
unknown options, so Source Control AI fails before the prompt is read.
Keep --prompt and optional --model, and stop advertising thinking levels
that regenerate those flags.
@bbingz
bbingz force-pushed the fix/14771-kimi-quiet-flag branch from 8f1812c to 28ad4d4 Compare September 20, 2026 11:00
nwparker added a commit that referenced this pull request Oct 24, 2026
…inking) (#33285)

Kimi Code (the current `kimi`) rejects --quiet/--thinking/--no-thinking; send only --prompt [--model]. Fixes #14771. Supersedes #14790.

Co-authored-by: BingZ <[email protected]>
@nwparker

Copy link
Copy Markdown
Contributor

Thanks @bbingz! Your change landed via #33285 (your commit was cherry-picked with authorship kept, plus a Co-authored-by trailer on the squash). We also dropped --thinking/--no-thinking, which Kimi Code rejects too. Closing this one as superseded.

@nwparker nwparker closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Source Control AI: Kimi recipe fails — baked-in --quiet flag unknown to kimi-code 0.36.x

4 participants