Commit Graph
3 Commits
Author SHA1 Message Date
cyxer000 69ec68383d agents: the panel's effort slider puts a level it doesn't offer in its place, and its bars light where the slider stands (#348)
* agents: the panel's effort slider puts a level it doesn't offer in its place, and auto lights no bar

Follow-ups from #339's review. A known level the agent's levels don't reach (max, the model's going to high) stood first on the tray panel's slider, its ends reading "max … high"; it now stands after high. Anything that isn't a level (unset, auto, unknown) still goes first. effortIcon and effortBars counted auto as a level, lighting one bar like minimal; auto now lights none, as the default and off do.

* agents: the panel's effort bars light where its slider stands, and none lights no bar

From #348's review. Codex at max, its model's levels going to high, lit no bar in the panel's list, as the default does, while its slider stood at the far end: effortBars and effortIcon looked the value up among the levels offered only. They now take the slider's stops (effortStops, drawn out of effortSeg), so max past high lights them all and a level between two offered as far as its stop. none means what off does and, as the author asked, lights no bar and isn't counted among the levels, which changes how many bars the other levels of an agent offering none (Cline, Grok, Hermes) light.
2026-10-01 14:15:05 +08:00
cyxer000 6a6c5aa3e2 gui: omp-roles' and panel-effort's fake APIs answer /api/plugins as the other tests' do (#363)
From #325's review: the two tests answered /api/plugins with the fallback
{}, where 27 other tests answer {plugins: []}. The pages they open ask no
bare /api/plugins today (the Plugins page asks /api/plugins/market), so
what they see is the same; a page that comes to ask it gets the shape the
server sends rather than an object without plugins.
2026-10-01 03:21:03 +08:00
cyxer000 abbffd73a4 agents: magpie omp auto sets omp's thinking to auto, and the panel's effort slider shows a level it doesn't list as it is (#339)
* agents: `magpie omp auto` sets omp's thinking to auto, and the panel's effort slider shows a level it doesn't list as it is

omp keeps defaultThinkingLevel at minimal … max or auto (omp picks a
level each turn), but magpie offered only the six levels. So
`magpie omp auto` found no field offering auto and took it for a model:
modelRoles.default became the literal "auto". auto is now offered
first, as omp's own picker has it, and kept out of ompEfforts, which a
model's thinking levels in models.yml are filtered by.

The tray panel's effort slider drew a value that isn't one of its
options (an agent with no effort set, a level magpie doesn't list) at
the first stop, named as the lowest level, and a touch there wrote that
level over it. It now gets a stop of its own, as the window's picker
gives the current value, so it reads as it is and a touch leaves it.

* agents: the note on omp's thinking picker holds for omp 16.3.5 too

omp 16.3.5 takes auto for defaultThinkingLevel as 18.4.4 does (config/settings-schema.ts there), as checked on #339.
2026-10-01 00:20:19 +08:00