feat(v2): add sidecar crash detection, restart UI, and auto-scroll lock
Phase 3 polish: dispatcher listens for sidecar-exited events and marks running sessions as error. AgentPane shows "Restart Sidecar" button on error. Auto-scroll disables when user scrolls >50px from bottom with "Scroll to bottom" button. Added agent_restart Tauri command.
This commit is contained in:
parent
da6d7272ee
commit
5ca035d438
4 changed files with 104 additions and 11 deletions
|
|
@ -25,6 +25,10 @@ export async function isAgentReady(): Promise<boolean> {
|
|||
return invoke<boolean>('agent_ready');
|
||||
}
|
||||
|
||||
export async function restartAgent(): Promise<void> {
|
||||
return invoke('agent_restart');
|
||||
}
|
||||
|
||||
export interface SidecarMessage {
|
||||
type: string;
|
||||
sessionId?: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue