Skip to content

fix(kimi): explain native session prompt limitations - #172

Merged
xxchan merged 1 commit into
mainfrom
fix/kimi-session-option-diagnostics
Oct 7, 2026
Merged

xxchan merged 1 commit into
mainfrom
fix/kimi-session-option-diagnostics

Conversation

@xxchan

@xxchan xxchan commented Oct 7, 2026

Copy link
Copy Markdown
Member

Kimi Code 2.1.1 accepts --agent-file and --agent on its top-level CLI, but its ACP launcher forwards neither to the server. Explain that native entrypoint limitation when refusing session prompt options, and document each existing session option's channel with release-pinned first-party sources.

extraAgentDirs has no environment binding, and redirecting KIMI_CODE_HOME also redirects credentials and session history. This change preserves the refusals and updates their reasons; it does not change session behavior or write user configuration.

Validation: pnpm run check passed. Audited the installed 2.1.1 CLI help and the corresponding upstream source.

Part of #171.

@xxchan
xxchan merged commit 9731059 into main Oct 7, 2026
13 checks passed
@xxchan
xxchan deleted the fix/kimi-session-option-diagnostics branch October 7, 2026 05:15
@xxchan xxchan mentioned this pull request Oct 7, 2026
xxchan added a commit that referenced this pull request Oct 7, 2026
Release OAR and CLI 0.30.0. This PR changes only the two package version
fields.

**Changed**
- Token totals count from when this oar Session opened, on every runtime
(#174, closes #169). `TokenTotals`, `UsageReport.tokens` and `usage()`
now say so. Only codex changes:
- codex 0.151.0 and later: after a resume, codex re-reports the thread's
earlier total once before the Session's first turn; OAR subtracts it
(with `cacheRead` / `cacheWrite`), so a resumed Session reports its own
spend instead of the thread's whole life.
- codex releases that send no such re-report before the first turn
(0.118.0 to 0.150.1): a resumed Session reports no `tokens`
(`usage().total` is null); `context` is unchanged. New sessions are
unaffected.
- Clearer refusals: kimi (#172) and antigravity (#173) still refuse
`systemPrompt` / `appendSystemPrompt`, now naming the native reason
(kimi's `acp` launcher does not forward `--agent-file` / `--agent`;
antigravity's server has no prompt input in its protocol, launcher or
configuration), with each session option's native channel documented.

- grok prompts (#175): `systemPrompt` with `appendSystemPrompt` are sent
as one override (the first, a blank line, the second) on new and resumed
sessions, since grok 1.0.46 uses only the override when both are given.
Resuming with only `appendSystemPrompt` is refused
(`UnsupportedOptionError`): grok does not reapply rules on resume. A
resumed `systemPrompt` keeps working. Pinned by
`experiments/grok-prompt-options.ts`, which captures the request grok
sends to a local provider.

Validation: all 13 checks passed on the final heads of #172, #173, #174
and #175 (`8c60b6d`; evidence across 20 codex releases in
`experiments/codex-resume-usage.ts`). After this PR passes CI and
merges, tag its exact squash commit as `v0.30.0` to trigger npm trusted
publishing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: exe.dev user <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants