pub enum AppRequest {
Capabilities,
ConfigGet {
key: String,
},
ConfigSet {
key: String,
value: String,
},
ConfigUnset {
key: String,
},
ConfigList,
ConfigReload,
Models,
ThreadLoadedList,
SubmitUserInput {
request_id: String,
answers: Vec<UserInputAnswerEvent>,
},
}Expand description
Application-level requests that are not tied to a specific thread.
Variants§
Capabilities
Query the server’s capabilities.
ConfigGet
Read a configuration value by key.
ConfigSet
Set a configuration key to a value.
ConfigUnset
Remove a configuration key.
ConfigList
List all configuration entries.
ConfigReload
Reload configuration from disk and apply to the live runtime.
Re-reads both config.toml and the sibling permissions.toml,
refreshing the live Runtime.config and Runtime.exec_policy
so headless clients can pick up external config-file and
permission-rule edits without restarting.
Mirrors the TUI reload_runtime_config codepath for everything
reachable from the headless Runtime. MCP server connections
are not refreshed — changing mcp_config_path or the referenced
mcp.json still requires a headless-runtime restart. The TUI’s
explicit /mcp reload operation is not part of this protocol path.
Models
List available models.
ThreadLoadedList
List threads that are currently loaded in memory.
SubmitUserInput
Submit answers to a prior EventFrame::UserInputRequest.
request_id must match a pending clarification request. Headless
clients use this to return the user’s selections back to the runtime.
Trait Implementations§
Source§impl Clone for AppRequest
impl Clone for AppRequest
Source§fn clone(&self) -> AppRequest
fn clone(&self) -> AppRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more