tao5010 on Discord: Droid's /model offered no thinking level for any
magpie model. magpie wrote customModels with neither reasoningEffort nor
baseModelId, and droid 1.3.0 (its customModel schema and picker read
from the 1.3.0 bundle) gives a custom model it can't match to a built-in
the levels ["none"], and sends no reasoning field whatever is picked.
With reasoningEffort it offers off, low, medium and high plus that
value, which is the default. With baseModelId it uses that built-in's
own list.
What magpie writes now:
- A model that reasons (Reasoning, or levels known) gets reasoningEffort:
its default effort if droid's enum takes it, else medium, else the
nearest level it has (high, low, xhigh, max, minimal). It is never none,
off, dynamic or a value outside the enum.
- A model whose own id is one of droid 1.3.0's built-in ids exactly
(codex/gpt-5.4 is gpt-5.4) also gets baseModelId.
- A routing group gets reasoningEffort only when its members share
levels, and never a baseModelId.
- A model that doesn't reason gets neither.
- Both fields are droidKept, so a value the user set, or a field they
took out, stays as they left it.
Run (on mote):
- TestDroidReasoningEffort was red on the old droid.go, with every
expected value <nil>.
- Broken by hand, each part goes red: without the two droidKept names
(the user's value is overwritten), without the group check in
droidEffort (a group with no shared levels gets medium), and without
the group check on baseModelId (group/gpt-5.4 gets baseModelId
gpt-5.4).
- gofmt, go vet, plus Linux (nogui) and Windows vet of internal/agent.
- go test -timeout 45m ./internal/agent/...: ok (633.6s)
- Real droid 1.3.0 in a sandbox HOME on mote, with the settings.json
this code writes, and droid exec against a fake gateway that logs
each request:
- oa/gpt-5.4 (baseModelId) sent reasoning effort low for -r low.
- deepseek/flash sent reasoning_effort low.
- group/gpt-5.4 sent low and xhigh.
- resp/grok-5 sent xhigh.
- A reasonless model and a group whose members share no levels sent
no reasoning field.
- The file parsed with no error. Earlier runs showed that an unknown
baseModelId is ignored without breaking the entry.
Not tried:
- The TUI's /model picker itself, which needs a Factory sign-in.
- A real upstream model behind the fake gateway.
- An older droid than 1.3.0.