feat(cli): apply cloud-recommended default thinking effort - #3616
Conversation
🦋 Changeset detectedLatest commit: ea0ccfb The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f22ab012b3
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
f22ab01 to
ea0ccfb
Compare
commit: |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ea0ccfbd7e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Related Issue
No linked issue; the problem is described below.
Problem
Once
thinking.effortis persisted inconfig.toml, the local value outranks the model catalog's default effort forever. Raising the server-side default therefore never reaches users who already have an effort written locally, and there is no client-side path to move them onto the recommended level while preserving their final say.What changed
recommended_effortnamed client config (POST /client_configs, 24h cache, any failure degrades to a skip) that maps model ids to{ version, recommended_default_effort }.support_efforts, thinking is not explicitly disabled, and the entry's version is newer than the locally applied one, the level is materialized into[thinking].effortthrough the comment-preserving config write channel, and the applied version is recorded per model in<data dir>/recommended-effort-state.json. An already-equal effort only records the marker; every application emits arecommended_effort_appliedtelemetry event. A higher version may apply again later; levels the user sets in between are respected until then.isManagedKimiCodeBaseUrlnow matches both official endpoints (.com and .ai) whenKIMI_CODE_BASE_URLis unset, so global-region providers join managed model auto-refresh and usage queries.maxback tohighon the next startup.Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.