Skip to main content

Module chrome

Module chrome 

Source
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§

ContainerEntry
ConversationPickerEntry
Entry in the conversation picker.
GenerationDefaults
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.
ImageEntry
One row in the Images tab of the Worker Manager.
InputDialog
Input dialog for text entry (pull image, create sandbox, create container).
InputField
One field in an InputDialog.
ModelEntry
PaneSummary
Lightweight pane descriptor.
PreChatSettingsState
State for the pre-chat settings modal.
ServiceEntry
One row in the Service Manager modal.
ShellChrome
Toast
WindowSummary
Lightweight window descriptor from TuiService.
WorkerEntry
One sandbox row in the Worker Manager modal.

Enums§

ChromeOutput
Output from ShellChrome::handle_key.
CloneScreen
Clone flow screens for the model dialog.
ConversationKind
What kind of conversation picker entry this is.
PreChatType
Whether the new conversation is private or server-side.
RpcRequest
Pure typed enum — no ZMQ types, no capnp types, WASM-safe.
ServiceMode
ShellMode
ToastLevel
WorkerTab
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