fix(tui): make mutating slash paths native and lifecycle-safe
Route /browser, /reload-mcp, /rollback, /stop, /fast, and /busy through direct TUI RPC handlers so state changes hit the live gateway session instead of slash-worker fallback. Add TUI session finalize/reset parity hooks (memory commit + plugin boundaries) and parity matrix tests to keep mutating commands off fallback.
This commit is contained in:
@@ -288,7 +288,42 @@ export interface ModelOptionsResponse {
|
||||
// ── MCP ──────────────────────────────────────────────────────────────
|
||||
|
||||
export interface ReloadMcpResponse {
|
||||
ok?: boolean
|
||||
status?: string
|
||||
}
|
||||
|
||||
export interface ProcessStopResponse {
|
||||
killed?: number
|
||||
}
|
||||
|
||||
export interface BrowserManageResponse {
|
||||
connected?: boolean
|
||||
url?: string
|
||||
}
|
||||
|
||||
export interface RollbackCheckpoint {
|
||||
hash: string
|
||||
message?: string
|
||||
timestamp?: string
|
||||
}
|
||||
|
||||
export interface RollbackListResponse {
|
||||
checkpoints?: RollbackCheckpoint[]
|
||||
enabled?: boolean
|
||||
}
|
||||
|
||||
export interface RollbackDiffResponse {
|
||||
diff?: string
|
||||
rendered?: string
|
||||
stat?: string
|
||||
}
|
||||
|
||||
export interface RollbackRestoreResponse {
|
||||
error?: string
|
||||
history_removed?: number
|
||||
message?: string
|
||||
reason?: string
|
||||
restored_to?: string
|
||||
success?: boolean
|
||||
}
|
||||
|
||||
// ── Subagent events ──────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user