fix(opencode): expose Claude thinking levels#72778
Conversation
|
@codex review |
Greptile SummaryThis PR exposes Anthropic-specific thinking levels ( Confidence Score: 4/5Safe to merge; only a minor test symmetry gap was found. All findings are P2 (style/test coverage). The production code logic is clean and consistent with existing patterns. extensions/opencode/index.test.ts — missing negative assertion for opus-4.6 thinking levels Prompt To Fix All With AIThis is a comment left during a code review.
Path: extensions/opencode/index.test.ts
Line: 65-73
Comment:
**Missing negative assertion for `claude-opus-4.6`**
The test verifies that `claude-sonnet-4-6` does not contain `xhigh` or `max` levels (line 82–84), but the same assertion is absent for `claude-opus-4.6`. Both models are resolved through the same `ANTHROPIC_ADAPTIVE_MODEL_PREFIXES` branch, so a regression that accidentally added `xhigh`/`max` to that branch would be caught only for the sonnet model. Adding a parallel `sonnet46Profile?.levels.some(...)` check for the opus profile would close the symmetry gap.
How can I resolve this? If you propose a fix, please make it concise.Reviews (1): Last reviewed commit: "fix(opencode): expose claude thinking le..." | Re-trigger Greptile |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
2e297b4 to
57ae744
Compare
|
@codex review latest head, please |
57ae744 to
795a295
Compare
|
Addressed the Greptile test symmetry note by adding the Opus 4.6 negative assertion, rebased on latest main, and pushed the latest head. @codex review |
|
Codex Review: Didn't find any major issues. Breezy! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
137c5e5 to
b0cf46e
Compare
|
Fixed the extension test boundary failure from the new Qwen test import and pushed the rebased head. Local guard and focused provider tests pass. @codex review |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
09a5867 to
69583d2
Compare
d7b39e5 to
4a22422
Compare
4a22422 to
84e1dd9
Compare
84e1dd9 to
eb365a2
Compare
eb365a2 to
6b0fb5c
Compare
6b0fb5c to
bd7bd2b
Compare
bd7bd2b to
022a2b9
Compare
|
Rebased on latest main and added the generated config schema/docs hash sync required by the OpenCode thinking profile schema change. Focused local checks pass: config:schema:check, config:docs:check, schema.base.generated.test.ts, and extensions/opencode/index.test.ts. @codex review |
022a2b9 to
37f7933
Compare
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
37f7933 to
a9dee06
Compare
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
* fix(opencode): expose claude thinking levels * test(opencode): cover adaptive claude thinking bounds * docs(changelog): credit opencode thinking contributor --------- Co-authored-by: haishmg <4529977+haishmg@users.noreply.github.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>
Summary
Fixes #72729.
Tests