Repository navigation
Apply Kimi effort per run without editing the user's config, and stop OpenCode turns stalling on questions - #1671
Conversation
Kimi: drop the config.toml flip. Effort now rides KIMI_MODEL_THINKING_EFFORT on the child env (kimi 0.39), merged before resolveSpawn so ssh/WSL runs get it too. The env bypasses kimi's support_efforts, so it is only set when honouredEfforts(entry, model) lists the level. OpenCode: thread and workflow turns set OPENCODE_CLIENT=solenta, which also drops the question tool that headless `opencode run` cannot answer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88c0dcf411
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| const effortEnv = kimiParse.kimiEffortEnv( | ||
| thread.reasoningEffort, | ||
| honouredEfforts(providerEntry, thread.model || null), |
There was a problem hiding this comment.
Require a known Kimi model before exporting effort
When the thread uses Default or a custom Kimi alias, honouredEfforts() deliberately falls back to the provider-wide K3 list rather than the effective model's capabilities. If the user's default/custom alias is one of the coding models without support_efforts, this therefore exports KIMI_MODEL_THINKING_EFFORT even though the new environment override bypasses Kimi's capability check, allowing an unsupported level to reach the API. The mirrored workflow call has the same issue; only export the variable for an explicitly recognized model with a matching per-model effort list, or resolve the effective model first.
Useful? React with 👍 / 👎.
Kimi thread effort no longer works by rewriting the user's
config.tomlaround each spawn. It now travels asKIMI_MODEL_THINKING_EFFORTon the child's environment, which kimi 0.39 reads per process. As a side effect, ssh/WSL kimi runs now get effort too; the old flip only ever edited the local config. OpenCode turns now identify asOPENCODE_CLIENT=solenta. Part of #451.Changes
flipKimiEffort, its backup sidecar and the first-output restore hooks are gone. The env is merged beforeresolveSpawn, so remote spawns get it throughwrapCommand.support_effortscheck, so it's only set whenhonouredEfforts(entry, model)lists the level. A leftover effort after a model switch (e.g.maxon kimi-for-coding) never reaches the API.OPENCODE_CLIENT=solenta. opencode 1.17 only registers itsquestiontool for app/cli/desktop clients, so headless runs also lose a tool nobody can answer. The ask and commit-message one-shots are unchanged.Verification
question-tool gate exist.OPENCODE_CLIENT=solenta.npm run test:electronwith inheritedCODER_*vars stripped, after rebasing on main: 4870 pass, 0 fail, 0 cancelled.Notes for reviewers
.coder-effort-backupnext to the user's real kimi config, it is no longer auto-restored.OPENCODE_DISABLE_CLAUDE_CODE: it also drops the project'sCLAUDE.mdinstructions.KIMI_MODEL_NAME: it needs a raw API key.opencode servemigration: offered as a separate thread.🤖 Generated with Claude Code