Repository navigation
Agent: list models in the catalog's groups - #1540
Merged
Merged
Conversation
The model chip and the separate thinking button become one control. The
chip names the model and, in a quieter grey, its effort ("Kimi K3 High"),
and pressing it opens an effort popover:
- The level in large type, tinted by how hard the model thinks, over the
model's name. The name opens the model list, and a pick there returns
to the popover on the new model's levels. Enter does the same from the
keyboard. `/model` still opens the list on its own.
- A thick stepped slider with one stop per level the selected model
offers: Low / High / Max on GLM and Kimi, Off through Max on DeepSeek,
and so on. Drag it, click a stop, or press Left and Right. The level
under the thumb previews while dragging and saves on release.
- Reset returns to the level the runtime uses when nobody picked one
(Medium, or the nearest level the model accepts). That stop is drawn
as a ring.
- A model that does not think, and levels that are loading, saving or
unavailable (with Retry), show a status line in the slider's place.
Each level has a heat on one scale shared by every model. Heat drives
the fill, its glow and the label, so High is the same colour wherever
its stop sits. The thumb springs to its stop with a small overshoot,
lifts while held, and the dots glide to new stops after a model switch.
Frames are drawn only while something moves, and reduced motion jumps
instead of animating.
A pick made while another is saving now waits for it, and only the
latest waiting pick goes out. The popover stays open after a pick.
The level makes the chip wider than the old button. Send and the
context ring no longer shrink; when the row runs out of room, the
model's name truncates first and the level stays readable.
Menus get two hooks for content that is not rows: on_adjust, which Left
and Right call, and on_confirm, which Enter and Space call with no row
highlighted.
The reset is an icon button while it can act and a plain dimmed icon at the recommended level. Both arms now return an element of one type, so the popover still builds once icon buttons carry their own hover animation (#1509).
…state Slider, as a few springs: - The thumb follows the pointer through a stiff spring, so a drag is direct but smooth. It is drawn into each stop it passes as a soft notch, and on release it settles with a jelly overshoot. It stretches along its motion and squashes across it. - The fill's edge is a softer spring chasing the thumb. When the thumb runs ahead, a neck of fill thins between them. When it runs back, the fill drains after it with a droplet at the tip. - Dots swell as the fill flows over them. A ripple spreads from each stop a drag crosses and from each level that lands, and the thumb blooms in the level's colour. - Colour flows between the stops' heats instead of stepping. - Opening the popover, the content rises in, the thumb pops and the fill pours to it. - The hand cursor opens over the thumb and closes while it is held. Text and state, after torph's TextMorph: a new MorphText element. Letters two values share glide to their new places, leaving letters fade out, arriving ones rise in, and width and colour ease between them. The popover's level name and the chip's effort use it, so "High" becomes "Extra high" by keeping its "igh". The brain gives a small pulse as a level lands, and reset spins back as it acts. Everything asks for frames only while it moves, and reduced motion jumps instead.
The fill's edge still trails a thumb that runs ahead, but it no longer passes it. A thumb running back takes the edge with it, so the draining tail and its droplet are gone. The edge's spring is now close to critical damping (stiffness 220, damping ratio 0.9), so it doesn't slosh past the thumb on the opening pour or when the thumb settles. The fill's rounded end stays under the thumb, and the thumb's squash stops at the track's height. On open the thumb now settles in from slightly large (112%) instead of popping up from small, so it covers the track from the first frame. Changes of state: - The popover's level name swaps at once while a drag crosses stops, and morphs only on a pick, a key step or reset. A morph per stop garbled a fast sweep. - Arriving letters start fading in at 10% of a morph rather than 25%, so the text is never blank between values. - Reset's spin plays once, when it acts. It no longer replays every time the popover opens.
Arriving at the selected model's top level (Max, or High on Gemma 4) by drag, click or arrow key flashes a warm disc behind the popover's brain and bursts a ring of rays from it. While the level stays at the top, the thumb keeps a warm halo, the fill glows a little more, and the chip's effort word turns from grey to the level's colour. An opening already at the top, or a model switch onto it, shows the halo without the spark; reduced motion keeps the halo and skips the spark.
Design review: Maple's users switch models more often than effort, so the chip now opens the model list with the selected model's effort slider docked under it, instead of an effort popover whose model name led to the list. A model pick closes the panel, as the plain list did, so switching models takes two clicks again; Left and Right step the effort, Up, Down and Enter pick a model. /model opens the same panel. Menu gains a footer that stays in view while the rows scroll, and loses on_confirm, which only the old popover used. ChatPopup::Effort, effort_return and the chat-effort-change-model string go with it.
Most capable, Uncensored, then Fast & cheap, as the list was grouped before, with a Popular badge on DeepSeek Uncensored. The catalog carries no group yet, so the app keeps a table of the current model ids; a model deployed after it lists under More models, and a catalog the table knows none of shows no headers at all.
The slider and the status line cross-fade when levels arrive, and the status line holds the slider's height, so the panel no longer jumps. A key step moves the thumb but plays no ripple, bloom, pulse, morph or spark. A drag ripples the stops it crosses and blooms once where it lets go, instead of a landing ripple, bloom and brain pulse at every stop. The brain pulses for a pointer pick or reset only, and never replays when the panel reopens. The halo fades out when the thumb leaves the top. Opening the panel, which happens on every model switch, settles the thumb without a bounce and with the fill already in place.
The ring that marked the level reset returns to read as a different kind of stop. Reset still dims at that level.
The brand coral on a grey pill read at under 2:1 in the light theme. The badge now sets deep coral on the soft coral container, 5.1:1 in light and 7:1 in dark, from a new accent_text token the contrast test holds to 4.5:1.
Master moved the Web switch from the composer to Settings > Tools. The chip keeps #1520's quieter detail value and loses the highlight state that only the Web chip used; the keyboard walk test lands on Attachments one step sooner, since the model chip and thinking button are one control.
Each listed model now names its `group`, and the catalog carries a top-level `groups` array giving the sections in display order with an English label. Clients translate a heading by group id and show the served label for an id they do not know, so a model joins a section, and a section is added or reordered, without a client release. DeepSeek Uncensored gains the `Popular` badge in the existing `badges` field. Both SDKs expose the new fields; older clients ignore them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The model panel kept its own table of model ids to sections, so a model deployed after a release listed under "More models" until the next one. The panel now takes its sections, their order and the Popular badge from the catalog. A heading is translated by group id; a group this build has no translation for shows the served label. Models without a served group list last, and a catalog that serves no groups lists them unsectioned. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The model panel kept its own table of model ids to sections and its own list of Popular models, so a model deployed after a release listed under More models until the next one. The catalog now serves groups and badges, and #1540 builds the sections from it; until then the panel lists the models flat, in the catalog's order. The group headings, the Popular badge, its theme tokens and their strings go with the table.
A model with no remembered level started at Medium, moved to the nearest level it accepts, and a switch carried the previous model's level over. Both now take the model's `default_effort` from the catalog, which follows the model makers' recommendations (Max for Kimi K3.1 Pro, Kimi K3 and GLM 5.3, High for DeepSeek V4.1 Flash); a model the catalog gives no default it accepts keeps the old rule. The runtime serves that level with the levels, and Reset to recommended returns to it. New Task remembers one model and level, and only what the user picks there: picking a level remembers it with the model, and picking another model starts that model at its default and forgets the level. A task's picks, and opening a task, leave it alone, so a task's model pick no longer becomes the default. A level picked for a task's next model waits in the runtime for the switch, instead of riding on the account default.
The slider was larger than the model rows above it and glowed strongly at the top level, so it pulled the eye from the model list. The track is 24 px instead of 36, the thumb 27 (30 held) instead of 40 (44), and the dots 4 instead of 5; the panel's status line keeps the slider's new height. The fill's glow, the thumb's shadows, its held glow, the bloom where a level lands, the top level's halo and the brain's spark there are all softer and smaller.
…into catalog-model-groups-app # Conflicts: # apps/maple-agent/app/src/ui/chat/composer.rs # apps/maple-agent/app/src/ui/chat/tests.rs
# Conflicts: # apps/maple-agent/app/src/ui/chat/composer.rs # apps/maple-agent/crates/maple-agent/src/agent/runtime.rs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
AnthonyRonning
added a commit
that referenced
this pull request
Nov 11, 2026
* Agent: set the model's effort on a slider in the model chip
The model chip and the separate thinking button become one control. The
chip names the model and, in a quieter grey, its effort ("Kimi K3 High"),
and pressing it opens an effort popover:
- The level in large type, tinted by how hard the model thinks, over the
model's name. The name opens the model list, and a pick there returns
to the popover on the new model's levels. Enter does the same from the
keyboard. `/model` still opens the list on its own.
- A thick stepped slider with one stop per level the selected model
offers: Low / High / Max on GLM and Kimi, Off through Max on DeepSeek,
and so on. Drag it, click a stop, or press Left and Right. The level
under the thumb previews while dragging and saves on release.
- Reset returns to the level the runtime uses when nobody picked one
(Medium, or the nearest level the model accepts). That stop is drawn
as a ring.
- A model that does not think, and levels that are loading, saving or
unavailable (with Retry), show a status line in the slider's place.
Each level has a heat on one scale shared by every model. Heat drives
the fill, its glow and the label, so High is the same colour wherever
its stop sits. The thumb springs to its stop with a small overshoot,
lifts while held, and the dots glide to new stops after a model switch.
Frames are drawn only while something moves, and reduced motion jumps
instead of animating.
A pick made while another is saving now waits for it, and only the
latest waiting pick goes out. The popover stays open after a pick.
The level makes the chip wider than the old button. Send and the
context ring no longer shrink; when the row runs out of room, the
model's name truncates first and the level stays readable.
Menus get two hooks for content that is not rows: on_adjust, which Left
and Right call, and on_confirm, which Enter and Space call with no row
highlighted.
* Agent: keep the effort reset compatible with animated icon buttons
The reset is an icon button while it can act and a plain dimmed icon at the recommended level. Both arms now return an element of one type, so the popover still builds once icon buttons carry their own hover animation (#1509).
* Agent: give the effort slider a liquid feel and morph its changes of state
Slider, as a few springs:
- The thumb follows the pointer through a stiff spring, so a drag is
direct but smooth. It is drawn into each stop it passes as a soft notch,
and on release it settles with a jelly overshoot. It stretches along
its motion and squashes across it.
- The fill's edge is a softer spring chasing the thumb. When the thumb
runs ahead, a neck of fill thins between them. When it runs back, the
fill drains after it with a droplet at the tip.
- Dots swell as the fill flows over them. A ripple spreads from each stop
a drag crosses and from each level that lands, and the thumb blooms in
the level's colour.
- Colour flows between the stops' heats instead of stepping.
- Opening the popover, the content rises in, the thumb pops and the fill
pours to it.
- The hand cursor opens over the thumb and closes while it is held.
Text and state, after torph's TextMorph: a new MorphText element. Letters
two values share glide to their new places, leaving letters fade out,
arriving ones rise in, and width and colour ease between them. The
popover's level name and the chip's effort use it, so "High" becomes
"Extra high" by keeping its "igh". The brain gives a small pulse as a
level lands, and reset spins back as it acts.
Everything asks for frames only while it moves, and reduced motion jumps
instead.
* Agent: keep the effort slider's fill behind its thumb
The fill's edge still trails a thumb that runs ahead, but it no longer
passes it. A thumb running back takes the edge with it, so the draining
tail and its droplet are gone. The edge's spring is now close to critical
damping (stiffness 220, damping ratio 0.9), so it doesn't slosh past the thumb on
the opening pour or when the thumb settles. The fill's rounded end stays
under the thumb, and the thumb's squash stops at the track's height. On
open the thumb now settles in from slightly large (112%) instead of
popping up from small, so it covers the track from the first frame.
Changes of state:
- The popover's level name swaps at once while a drag crosses stops, and
morphs only on a pick, a key step or reset. A morph per stop garbled a
fast sweep.
- Arriving letters start fading in at 10% of a morph rather than 25%, so
the text is never blank between values.
- Reset's spin plays once, when it acts. It no longer replays every time
the popover opens.
* Agent: spark the brain and keep the slider warm at a model's top level
Arriving at the selected model's top level (Max, or High on Gemma 4) by drag, click or arrow key flashes a warm disc behind the popover's brain and bursts a ring of rays from it. While the level stays at the top, the thumb keeps a warm halo, the fill glows a little more, and the chip's effort word turns from grey to the level's colour. An opening already at the top, or a model switch onto it, shows the halo without the spark; reduced motion keeps the halo and skips the spark.
* Agent: put the models first in the model chip's panel, effort under them
Design review: Maple's users switch models more often than effort, so the chip now opens the model list with the selected model's effort slider docked under it, instead of an effort popover whose model name led to the list. A model pick closes the panel, as the plain list did, so switching models takes two clicks again; Left and Right step the effort, Up, Down and Enter pick a model. /model opens the same panel. Menu gains a footer that stays in view while the rows scroll, and loses on_confirm, which only the old popover used. ChatPopup::Effort, effort_return and the chat-effort-change-model string go with it.
* Agent: group the model panel's models, with a Popular badge
Most capable, Uncensored, then Fast & cheap, as the list was grouped before, with a Popular badge on DeepSeek Uncensored. The catalog carries no group yet, so the app keeps a table of the current model ids; a model deployed after it lists under More models, and a catalog the table knows none of shows no headers at all.
* Agent: format the model panel and slider code
* Agent: tune the effort slider's motion after a motion audit
The slider and the status line cross-fade when levels arrive, and the status line holds the slider's height, so the panel no longer jumps. A key step moves the thumb but plays no ripple, bloom, pulse, morph or spark. A drag ripples the stops it crosses and blooms once where it lets go, instead of a landing ripple, bloom and brain pulse at every stop. The brain pulses for a pointer pick or reset only, and never replays when the panel reopens. The halo fades out when the thumb leaves the top. Opening the panel, which happens on every model switch, settles the thumb without a bounce and with the fill already in place.
* Agent: draw the recommended stop as a plain dot like the others
The ring that marked the level reset returns to read as a different kind of stop. Reset still dims at that level.
* Agent: give the Popular badge contrast that reads in light mode
The brand coral on a grey pill read at under 2:1 in the light theme. The badge now sets deep coral on the soft coral container, 5.1:1 in light and 7:1 in dark, from a new accent_text token the contrast test holds to 4.5:1.
* Agent: wrap the composer chips in narrow windows instead of overlapping them
* Agent: drop the slider thumb's coloured glow at Off
* Agent: keep waiting effort picks and keyboard Retry after the shipcheck review
* Agent: send a waiting effort pick even when its cached levels were dropped
* Agent: grey Popular badge on light, coral on dark
* Agent: darken the light Popular badge so it shows on a highlighted row
* Agent: list the models flat until the catalog groups them
The model panel kept its own table of model ids to sections and its own
list of Popular models, so a model deployed after a release listed under
More models until the next one. The catalog now serves groups and badges,
and #1540 builds the sections from it; until then the panel lists the
models flat, in the catalog's order. The group headings, the Popular
badge, its theme tokens and their strings go with the table.
* Agent: start each model at the catalog's default effort
A model with no remembered level started at Medium, moved to the nearest
level it accepts, and a switch carried the previous model's level over.
Both now take the model's `default_effort` from the catalog, which follows
the model makers' recommendations (Max for Kimi K3.1 Pro, Kimi K3 and GLM
5.3, High for DeepSeek V4.1 Flash); a model the catalog gives no default it
accepts keeps the old rule. The runtime serves that level with the levels,
and Reset to recommended returns to it.
New Task remembers one model and level, and only what the user picks
there: picking a level remembers it with the model, and picking another
model starts that model at its default and forgets the level. A task's
picks, and opening a task, leave it alone, so a task's model pick no
longer becomes the default. A level picked for a task's next model waits
in the runtime for the switch, instead of riding on the account default.
* Agent: tone the effort slider down
The slider was larger than the model rows above it and glowed strongly at
the top level, so it pulled the eye from the model list. The track is
24 px instead of 36, the thumb 27 (30 held) instead of 40 (44), and the
dots 4 instead of 5; the panel's status line keeps the slider's new
height. The fill's glow, the thumb's shadows, its held glow, the bloom
where a level lands, the top level's halo and the brain's spark there are
all softer and smaller.
* Agent: return early with ? when a model switch has no level to set
---------
Co-authored-by: Anthony Ronning <101225832+AnthonyRonning@users.noreply.github.com>
…s-app # Conflicts: # apps/maple-agent/app/src/ui/chat/composer.rs # apps/maple-agent/app/src/ui/chat/tests.rs # apps/maple-agent/app/translation-revisions/de.txt # apps/maple-agent/app/translation-revisions/es.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review stack
Stacked on #1520 (base
ux/effort-slider) and includes #1538, which serves the groups. Until #1538 merges, this diff also shows its server and SDK commits; the change to review here is the one commit inapps/maple-agent/app/src/ui/chat/.What changes
#1520 groups the model panel from a table of model ids kept in the app, so a model deployed after a release lists under "More models" until the next one. With #1538 the catalog serves each model's group, the groups in display order, and the Popular badge. This replaces the table with what the catalog serves:
groups.capable,uncensored,fastuse the strings Agent: set the model's effort on a slider in the model chip #1520 added). A group this build has no translation for shows the served English label, so a new section appears without a release.badgesincludePopular.MODEL_GROUPS,POPULAR_MODELSand theModelGroupenum are removed. No new strings.Behaviour to know about
model_catalogcall.Testing
just ci-lintclean;cargo test -p maple-agent-app --bin maple-agent1375 passed;cargo test -p maple-agent902 passed.models_list_in_the_catalogs_groupsreplaces the table's test: served order, model order, an untranslated group's label, an empty group, a model naming an unlisted group, ungrouped models, the Popular badge, and a catalog with no groups.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.