Skip to content

fix(pi-as-claude): pass max thinking level through to pi - #433

Merged
umputun merged 1 commit into
umputun:masterfrom
asalimonov:pi-max-thinking
Aug 19, 2026
Merged

fix(pi-as-claude): pass max thinking level through to pi#433
umputun merged 1 commit into
umputun:masterfrom
asalimonov:pi-max-thinking

Conversation

@asalimonov

Copy link
Copy Markdown
Contributor

pi added a native max thinking level (earendil-works/pi#6097 (comment)), but the pi-as-claude wrapper still downgraded ralphex's max effort to xhigh with a stderr note. this removes the special case: all effort levels pass through to pi's --thinking verbatim and pi validates them. docs and mock-pi tests updated accordingly.

verified with ralphex 1.6.0 and pi 0.84.1: --task-model="k3:max" reaches pi as --thinking max; wrapper tests 70/70, shellcheck clean.

pi added a native max thinking level (off|minimal|low|medium|high|xhigh|max),
so the wrapper's max->xhigh downgrade with a stderr note is obsolete. all
effort levels now pass through to --thinking verbatim; pi validates them.
docs and mock-pi tests updated accordingly.

verified with ralphex 1.6.0 and pi 0.84.1.
@asalimonov
asalimonov requested a review from umputun as a code owner August 18, 2026 18:53

@umputun umputun left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@umputun
umputun merged commit fadb6db into umputun:master Aug 19, 2026
umputun added a commit that referenced this pull request Aug 19, 2026
Two separable problems found reviewing PR #433. pi drops an unknown --thinking
value with only a warning and runs at its default, which is a one-field upstream
bug. Separately, nothing in the wrapper can observe the level a run actually
used, because pi clamps to model capability on every version and print-mode JSON
never publishes the effective level.
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