feat: centralized PTY-scoped session state, sync engine debug panel, lifecycle states, WS monitor

- Refactor session state to use ptySessionId as primary key across all components
- Add SessionStateManager with PTY-scoped hook processing, approval tracking, notifications
- Add sync-engine debug panel (AgentStatesSection, HookTimelineSection, TerminalRegistrySection, WsMonitorSection)
- Add useLifecycleStates composable for continuous state chips (session, responding, tool, subagent, compacting)
- Add WS monitor endpoint and composable for real-time connection health
- Enhance SessionLifecycleStatus with animated state chips and badge counts
- Enhance SystemMessage with expanded content and better formatting
- Update hooks (approval-permission, approval-plan, notify) with pty_session injection
- Update approval system to derive pending lists from PTY-scoped state
- Update ChatContainer with PTY-derived agent status and lifecycle events
- Update AgentBadge with PTY-scoped status colors
- Improve PiP window, approval window, and loading window handling
This commit is contained in:
2026-02-24 20:10:31 -06:00
parent cfb58c3a9f
commit 25bca2625b
36 changed files with 2526 additions and 550 deletions

View File

@@ -102,7 +102,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -113,7 +113,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -125,7 +125,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -137,7 +137,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -149,7 +149,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -161,7 +161,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -172,7 +172,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -184,7 +184,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 5000
}
]
@@ -194,7 +194,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/approval-permission.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/approval-permission.ps1",
"timeout": 130000
}
]
@@ -205,7 +205,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/notify.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/notify.ps1",
"timeout": 10000
}
]
@@ -214,7 +214,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -NoProfile -File hooks/approval-plan.ps1",
"command": "powershell -NoProfile -File C:/Users/jodar/agent-ui/hooks/approval-plan.ps1",
"timeout": 130000
}
]