t3code icon indicating copy to clipboard operation
t3code copied to clipboard

Pi: thinking control missing for every model except pi's active one (no default level, empty trigger)

Open tjcravey opened this issue 1 month ago • 3 comments

What happened

In the composer, the reasoning/effort control is missing for most Pi models, even though pi reports thinking levels for them. Examples: zai/glm-5.3-flash, zai/glm-5.3-highspeed, kimi-coding/kimi-for-coding (Kimi K2.8 Preview), deepseek/deepseek-flash (DeepSeek V4.1 Flash), qwen-token-plan-individual/deepseek-v4.1-flash and the other qwen-token-plan-individual models. The only Pi model that shows the control is pi's current default model (zai/glm-5.3 here), even though zai/glm-5.3-flash exposes the same levels.

Diagnosis

The server sends the levels correctly. The control disappears because only one Pi model gets a default level, and the composer renders nothing when a select has neither a current value nor a default.

  1. Server: only the active pi model gets isDefault. parseDiscoveredModels (packages/provider-pi/src/server/status.ts:120-125) passes state.thinkingLevel to thinkingCapabilitiesForPiModel only when the model matches pi's active provider and id. Every other model gets undefined, so clampPiThinkingLevel returns undefined and none of the thinking options is marked isDefault (thinkingCapabilities.ts:30-40). The levels are correct; the server's Pi model list shows, for example:

    • zai/glm-5.3: thinking = low, high, max, default high
    • zai/glm-5.3-flash: thinking = low, high, max, no default
    • kimi-coding/kimi-for-coding: low, high, max, no default
    • deepseek/deepseek-flash: off, low, high, max, no default
    • qwen-token-plan-individual/qwen3.7-max: off … high, no default
  2. Web: an empty trigger label renders an invisible control. In TraitsPicker.tsx, with no selection and no default, getDescriptorStringValue returns undefined, so resolveEffortGlyph(descriptor, null) returns null (EffortGlyph.tsx:24), and buildTraitsTriggerDisplay returns label: "". Then effortWord = isComposerOwned ? triggerLabel : null evaluates to "", not null (TraitsPicker.tsx:620-624). So the trigger renders <span data-composer-control-label>{""}</span> plus an invisible GaugeIcon: an empty button with -ms-1 ps-0, which takes no visible space. hasAnyControls is true, so the bar keeps the slot but nothing shows in it.

Possible fixes, either of which would help:

  • Server: pass pi's session thinkingLevel for every discovered model, not just the active one. clampPiThinkingLevel already maps it to the nearest supported level, which matches what pi does to the session level when you switch models.
  • Web: when a reasoning select has no value and no default, fall back to a visible placeholder (gauge icon or "Thinking") instead of an empty string, so the control can still be opened.

main (checked 2026-10-30) has the same code in all four files, so this is not yet fixed.

Steps to reproduce

  1. Configure pi (≥ 1.0) with any provider whose catalog has several reasoning models, e.g. zai (GLM Coding), and leave pi's defaultModel as one of them (glm-5.3).
  2. In T3 Code, start a new thread, choose Pi, and select a different reasoning model from the same provider, e.g. zai/glm-5.3-flash.
  3. The effort/thinking control next to the model name is blank/missing. Clicking the exact empty spot between the model name and the send button still opens the picker, so the control is there but invisible. Select zai/glm-5.3 and it appears with "High".

Version

0.1.5 (headless t3 serve server)

Environment

Server: Linux x64, Node v26.12.1, pi 1.4.0. Reproduced in the macOS desktop app and in the web app (app.t3.codes). macOS servers on 0.1.5 with pi 1.4.0 send the same model list without defaults.

Evidence

# pi RPC get_available_models (pi 1.4.0): levels present for the affected models
zai/glm-5.3-flash      reasoning=true thinkingLevelMap={off:null,minimal:null,low:"low",medium:null,high:"high",xhigh:null,max:"max"}
kimi-coding/kimi-for-coding  reasoning=true thinkingLevelMap={off:null,minimal:null,low:"low",medium:null,high:"high",xhigh:null,max:"max"}
deepseek/deepseek-flash      reasoning=true thinkingLevelMap={minimal:null,low:"low",medium:null,high:"high",max:"max"}

# T3 provider snapshot for Pi: only the active model has a default
{"id":"zai/glm-5.3","options":[{"id":"thinking","values":["low","high","max"],"default":"high"}]}
{"id":"zai/glm-5.3-flash","options":[{"id":"thinking","values":["low","high","max"]}]}

# server.trace.ndjson: discovery healthy
PiProviderStatus.discoverPiViaRpc  Success (17/17)
PiRpc.request                      Success (49/49)

Related issues

None found. Searched for pi thinking/reasoning level, effort picker missing, and thinking default. #402 added the Pi provider; #4192 is about custom Claude models, not Pi.

Fix applied or workaround

None applied. The only workaround is to make the model you want pi's defaultModel, which fixes one model at a time.

Filed by

claude (claude-opus-5-5) via the t3 triage playbook

tjcravey avatar Oct 30 '26 04:10 tjcravey

Confirmed on the Linux desktop app with nightly 0.1.6-nightly.20261030.3917, using the Pi provider.

In the composer, 6.1 Sol displays its reasoning level (“High”) and lets me change it. 6 Luna and the other models I tried show no reasoning level or visible selector.

Clicking the blank space between the model name and the send button opens the reasoning picker, confirming that the control is present but invisible.

Image Image

Prepared with Codex.

olukowski avatar Oct 30 '26 15:10 olukowski

Confirmed on macOS arm64, desktop app with local server 0.1.6-nightly.20261030.3940, model displayed as “6.1 Terra”.

When the thinking level is unset, its button is invisible and very narrow. Clicking the blank area still opens the selector.

Image Image

gianpispi avatar Oct 30 '26 21:10 gianpispi

Confirmed on macOS arm64, desktop app with local server 0.1.5, pi 1.4.0.

  • openai/gpt-6-astra and openai-codex/gpt-6-astra show no thinking level and no visible selector.
  • pi's default model, openai/gpt-6.1-sol, shows "High".
  • The server's Pi model list has thinking options for both Astra models, but neither has isDefault.
  • Workaround: click the narrow gap between the model name and the send button. Choosing a level shows it, for example "6 Astra Medium".

Filed by claude (claude-opus-5-5) via the t3 triage playbook.

giovanecesar avatar Oct 31 '26 03:10 giovanecesar