Repository navigation
feat: drop the runtime default model; rules choose models - #282
Merged
Merged
Conversation
Owner pick A (tn-cos #6541/#6548): a runtime stores no model of its own. Reverts the model pick of #281, keeping the provider -> key flow and rows. - remove the ready-card model pick (rtmodel/rtmpage buttons; old ones now answer with the retired toast), POST /api/runtimes/<name>/model, Axe::runtime_model, the node's runtime_model job, Registry::set_model, state.json `models` (an old file still loads; the field is dropped) and the provider model-list call (list_models, parse_models, choices) - a rule naming no model runs the provider row's default_model; the ready card says the runtime is ready with its provider and to ask the bot for another model; Other... has no default, so its card asks for one - before a run whose rule names a model, the runtime's OpenCode/Pi config declares it under its provider (Runtime::write_config_for): OpenCode refuses an undeclared model its catalog lacks, and Other's models are known only from the rule - runtime report: providers[] back to id and state - docs/user: runtimes concept and Telegram guide Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Task 2447. Owner pick A (tn-cos #6541, button #6548): models come only from routing rules; a runtime stores no default model. Revises #281 (task 2438).
Changes
rtmodel:/rtmpage:; presses on old cards get the retired toast),POST /api/runtimes/<name>/model,Axe::runtime_model, the noderuntime_modeljob,Registry::set_model,Health::models(state.json; an old file still loads and the field is dropped on save), and the provider model-list call (list_models,parse_models,choices, rowmodels/list). Provider rows and the provider -> key flow stay.default_model(as before feat: runtime setup is a provider, key, model pick #281). The ready card: "OpenCode 1 is ready with DeepSeek (deepseek-flash). For another model, tell me which (e.g. "run research tasks on OpenCode 1 with model X")." Other… has no default: "It has no default model: tell me which model to run on it …".Runtime::write_config_for): OpenCode 2.4.3 refuses an undeclared model its catalog lacks, and Other's models are known only from the rule. Failover onto Other reuses the failed rule's model.GET /api/runtimesproviders[]back to{id, state}.opencode-2 missing from
axe runtimes listNot a bug: task 2438's live check removed it (node log 23:51:10Z
runtime opencode-2 removed, viaDELETE /api/runtimes/opencode-2; 2438's note lists "Cleanup: ... opencode-2 removed"). The Telegram ready card from 23:47 was a one-off outcome card and stayed. The list shows every registry runtime, including one awaiting its first login (asserted inopencode_sets_up_from_telegram_with_a_provider_key, "opencode-1 reported" before login).Tests
opencode_runs_the_rules_model_else_the_providers_default(runtime_pick): no-mand the row default without a rule model;-m openrouter/openai/gpt-6.2-solwith one, declared in opencode.json; nothing stored.modelsloads.cargo test --locked, ts_bindings, doc links,--no-default-featuresclippy+test, web build + embed-ui clippy/build/test: all pass.🤖 Generated with Claude Code