Repository navigation
fix(kimi): explain native session prompt limitations - #172
Merged
Merged
Conversation
Merged
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kimi Code 2.1.1 accepts
--agent-fileand--agenton 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.extraAgentDirshas no environment binding, and redirectingKIMI_CODE_HOMEalso 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 checkpassed. Audited the installed 2.1.1 CLI help and the corresponding upstream source.Part of #171.