Repository navigation
Pick each bot's Claude model - #18
Merged
Merged
Conversation
A bot's avatar is now just the mascot in its color, with a thin edge (dark on the light theme, light on the dark one) so light colors such as the palette's beige keep their shape. Botloft's own white mascot, in the title bar and on the daemon's messages, keeps the black square of the app icon: without it, it would vanish on the light theme.
The whole window is now drawn at 125% (the webview's zoom), so text, spacing, icons and avatars grow together; at 100% the app looked tiny on a monitor without Windows scaling. A Size menu in the title bar picks 100%, 110%, 125% or 150%, Ctrl+= and Ctrl+- step through them and Ctrl+0 goes back to the default. The choice is remembered and applied before the first paint, so the window never flashes small.
Like the account corner of a chat app: the owner's name (the Windows account's display name), their Claude plan and a menu with Usage, Settings, Language, What's new and Help. Usage shows each window of the plan the bots have used and when it resets; Settings holds the theme, size and language, and the versions. Theme, size and language leave the title bar, which keeps only the language on the setup screens that have no sidebar. The sidebar now shows from the welcome screen on. The daemon reads the owner's display name once (GetUserNameExW) and the email, plan and organization from `claude auth status`, and sends them in `system.status.account`.
Buttons, fields and menu rows get 8 px corners, cards and menus 12 px, the chat's bubbles, cards and dialogs 16 px. Menus and dialogs float on a light themed shadow. The chat is a centered column with the day as a pill, and the open conversation in the sidebar is an inset rounded block instead of a full-width bar. Menus share one popover look and one hook that closes them.
Like Claude Code's mode picker, below the chat: Auto, Manual, Accept
edits and Plan, each described by what the bot does ("Scout decides
what needs your OK"), and Bypass permissions behind a confirmation that
says the bot is then not held to its folder. A bot that asks nothing is
marked in red in the picker and its header.
The daemon stores the mode (migration 0004) and starts the bot with it.
Claude Code reads --permission-mode only at start, so a new mode
restarts the process with --resume once nothing is in progress, and
never cuts a turn short. When an approved plan moves the bot out of plan
mode, the system/init of the next turn says so and the stored mode
follows.
A bot in plan mode asks to go ahead with ExitPlanMode: the chat shows
the whole plan (kept up to 32 KB) with Approve plan and Keep planning,
which sends back what should change.
Spec: 7.4, 10.1, 11.2, 12, 13 (what bypassing means on Windows), 15.1,
15.3 and two rows in section 19 to check with the real Claude Code.
Bots ran on whatever the account's default is. The owner now picks Fable, Opus, Sonnet, Haiku or the plan's default per bot, in the chat and when creating or editing a bot. Claude Code only reads --model at start, so a new model restarts the bot with --resume once nothing is in progress, like a new permission mode (the relaunch code now serves both). system/init names the model in use; the daemon keeps it so the app can say which model the plan's default is. A model the account cannot use fails the turn with model_not_found, now told as its own notice. Plan exit now follows the mode the process started with, so a pending model change no longer hides an approved plan.
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.
The owner picks which Claude model each bot runs on. Stacked on #17.
Until now no bot passed
--model, so every bot ran on the account's default (Opus 5.5 on a Max plan) whatever the work. Claude Code does not switch models by task on its own.What changes
system/initreports the model id; the daemon keeps it inBot.modelInUse, so the picker shows "Opus 5.5" for the plan's default and "Haiku 4.5" once a chosen model is confirmed.--resume(a resumed session takes the--modelit is started with). The relaunch code now serves both, and plan exit now follows the mode the process started with, so a pending model change no longer hides an approved plan.model_not_found; it is now its own notice (model_unavailable), worded by the app in the owner's language, and the bot keeps running.bots.model,bots.model_in_use); protocol:bots.setModel,bots.create {model?},Bot.model,Bot.modelInUse.Spec: 7.4, 8.1, 8.2, 11.2, 12, 15.1 and a section 19 row.
Tested
cargo fmt,clippy -D warnings,cargo test(newbot_modelstests: no flag by default, restart idle and busy bots, the reported model, the notice; and a plan approved while a model change waits) andpnpm check(picker, the plan default named, busy note, notice, new bot on a chosen model).--model,system/initsaysclaude-opus-5-5; an unknown model starts the process and each turn ends withassistant.error: "model_not_found";/model haikuas a message switches models mid-session (not used: the daemon restarts instead, as for modes).--model sonnetand a second bot on--model haiku(see A chief for every crew, who suggests new bots #20).