fix(tui): reserve /runtime and block local tool-loop fallback
This commit is contained in:
@@ -14,6 +14,7 @@ export type Command =
|
||||
| { type: 'verbose' }
|
||||
| { type: 'model'; name?: string; providerModel?: string }
|
||||
| { type: 'backend'; provider?: string }
|
||||
| { type: 'runtime'; input?: string }
|
||||
| { type: 'login'; provider?: string }
|
||||
| { type: 'transfer'; target: string }
|
||||
| { type: 'pair'; action?: 'generate' | 'list' | 'revoke'; args?: string }
|
||||
@@ -154,6 +155,15 @@ export function parseCommand(input: string): Command | null {
|
||||
return { type: 'backend', provider };
|
||||
}
|
||||
|
||||
// Runtime backend mode control (daemon/channel command; reserved in TUI)
|
||||
if (trimmed === '/runtime') {
|
||||
return { type: 'runtime' };
|
||||
}
|
||||
if (trimmed.startsWith('/runtime ')) {
|
||||
const input = trimmed.slice('/runtime '.length).trim();
|
||||
return { type: 'runtime', input };
|
||||
}
|
||||
|
||||
// Transfer
|
||||
if (trimmed === '/transfer') {
|
||||
return { type: 'transfer', target: '' };
|
||||
@@ -223,6 +233,7 @@ Commands:
|
||||
/model [name] Show or switch model tier (local, default, fast, complex)
|
||||
/model <tier> <p/m> Change tier's provider/model (e.g. /model default anthropic/claude-sonnet-4)
|
||||
/backend [provider] Show or switch local backend (ollama, llamacpp)
|
||||
/runtime [args] Runtime backend mode control (daemon/channel sessions)
|
||||
/research <task> Delegate a task to the configured research agent
|
||||
/council <task> Run the councils pipeline for a task
|
||||
/council preflight Check council tier routing, endpoint/auth mode, and probe latency
|
||||
@@ -261,6 +272,7 @@ export const SLASH_COMMANDS = [
|
||||
'/tools',
|
||||
'/model',
|
||||
'/backend',
|
||||
'/runtime',
|
||||
'/research',
|
||||
'/council',
|
||||
'/reset',
|
||||
@@ -293,6 +305,7 @@ export const COMMAND_TOOLTIPS: Record<string, string> = {
|
||||
'/tools': 'Show authoritative runtime tool list for this session',
|
||||
'/model': 'Show or switch model (local, default, fast, complex)',
|
||||
'/backend': 'Show or switch local backend (ollama, llamacpp)',
|
||||
'/runtime': 'Runtime backend mode control (daemon/channel command; not local TUI backend switch)',
|
||||
'/research': 'Delegate a task to the configured research agent',
|
||||
'/council': 'Run the councils pipeline for a task; use "/council preflight" for route/auth checks',
|
||||
'/reset': 'Clear conversation history',
|
||||
|
||||
Reference in New Issue
Block a user