Repository navigation
Maple Work: catalog-only models with a server-suggested default - #1360
Merged
Merged
Conversation
Maple Work now reads its model list, labels and voice endpoints from /v1/models/catalog alone, cached on disk, instead of joining /v1/models ids with catalog labels in two requests. API-only models such as gpt-oss-safeguard-120b no longer appear, and the chip never shows a raw id before its label. The catalog gains an optional defaults.agent: the concrete model a new Maple Work task starts on (DeepSeek V4.1 Flash on paid plans, the free quick model otherwise). Older clients ignore it. A new task starts on the user's last pick while the catalog offers it, then the suggestion, then the built-in default (now deepseek-v4-1-flash), then the catalog's first model, so a removed model is never loaded by default. Picks are stored under their own account setting, because agent.defaults is rewritten on every runtime start and rejects unknown fields in older builds; a pick saved by an older build is adopted once. At launch the composer controls stay laid out but hidden until the model resolves, then fade in once in their final positions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning
enabled auto-merge (squash)
October 29, 2026 02:44
AnthonyRonning
disabled auto-merge
October 29, 2026 02:44
This was referenced Oct 30, 2026
feat(models): add available_in_agent to the catalog and drop GPT-OSS and Llama from Maple Work
#1386
Merged
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.
Summary
Maple Work picks its models more carefully and stops flashing the model chip at launch.
/v1/models/catalogonly, cached on disk; it no longer calls/v1/models. API-only models such asgpt-oss-safeguard-120bdrop out of the menu, and the chip never shows a raw model id before its label.defaults.agent: DeepSeek V4.1 Flash on paid plans,gpt-oss-120bon Free. Older clients ignore it. Changing the default later is a backend change only.defaults.agent, then on the built-in default (nowdeepseek-v4-1-flash), then on the catalog's first model. A removed model is never loaded by default. Tasks still lock to the model of their first message.motion::fade_in, 140 ms) in their final positions.Compatibility
agent.model_choice.agent.defaultsis rewritten on every runtime start and usesdeny_unknown_fields, so a new field there would break settings loading in older builds. The pick is still mirrored intodefaultModelfor older builds.defaultModelsaved by an older build counts as a pick, once, unless it equals the old built-inglm-5-3. Someone who deliberately choseglm-5-3moves to the new default./v1/models) is filtered to models the controller's catalog describes. Its default still follows the old logic.cache.model_catalogentry from older builds (bare ids) is treated as a miss and refetched.Free-plan gating (locks on Pro models in Free's menu) is out of scope; Maple Work is not offered to Free users.
Validation
Local mde stack (OpenSecret + billing + Continuum), real app driven with cua-driver, launches recorded and inspected frame by frame (30 fps):
gpt-oss-safeguard-120bapps/maple-agent:just clippy(all feature sets) andjust test(workspace + headless) pass. New tests cover the pick, suggestion and fallback order, cache persistence across restart, filtering of disabled, deprecated, alias and non-chat entries, and adoption of an older build's pick.services/opensecret: fmt, clippy--all-features -D warnings, and themodel_configtests pass, including a new test thatdefaults.agentnames a listed, enabled, tool-capable model the plan can use.sdk/rust: fmt, clippy, lib tests pass. TS SDK change is type-only; its test suite was not run locally (needs a backend on :3000).🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.