Expand description
Shell chrome state machine — pure, no I/O, WASM-safe.
ShellChrome holds all the TUI chrome state: mode, window list, model
list, background animation, and settings. handle_key returns
Vec<ChromeOutput> describing what the event loop should do — no ZMQ,
no tokio, no side-effects.
Structs§
- Container
Entry - Conversation
Picker Entry - Entry in the conversation picker.
- Generation
Defaults - Generation parameter defaults from the model’s generation_config.json, served via the model status RPC. All fields are Option — None means “model has no opinion, use server default.” Adjusting a None field via the settings UI promotes it to Some.
- Image
Entry - One row in the Images tab of the Worker Manager.
- Input
Dialog - Input dialog for text entry (pull image, create sandbox, create container).
- Input
Field - One field in an InputDialog.
- Model
Entry - Pane
Summary - Lightweight pane descriptor.
- PreChat
Settings State - State for the pre-chat settings modal.
- Service
Entry - One row in the Service Manager modal.
- Shell
Chrome - Toast
- Window
Summary - Lightweight window descriptor from TuiService.
- Worker
Entry - One sandbox row in the Worker Manager modal.
Enums§
- Chrome
Output - Output from
ShellChrome::handle_key. - Clone
Screen - Clone flow screens for the model dialog.
- Conversation
Kind - What kind of conversation picker entry this is.
- PreChat
Type - Whether the new conversation is private or server-side.
- RpcRequest
- Pure typed enum — no ZMQ types, no capnp types, WASM-safe.
- Service
Mode - Shell
Mode - Toast
Level - Worker
Tab - Tab within the Worker Manager modal.
Constants§
- LOCAL_
ID_ BIT - Bit-31 marks client-local IDs (windows/panes not on the server).
- MENU_
ITEMS - Menu items: (label, chord hint shown in popup).
Functions§
- build_
settings_ form - Build a SettingsForm from GenerationDefaults.
- form_
to_ generation_ defaults - Extract GenerationDefaults from a SettingsForm’s current values.
- is_
local_ id - Returns true if the ID is client-local (bit 31 set).
- keypress_
to_ bytes