Commit 8f7ccb8
feat(vscode): watchdog status bar, post-mortem viewer, session browser, live stream (v0.2.0)
#117 — WatchdogStatusBar in statusBar.ts
- Polls meta.json for watchdog_timeout_seconds / watchdog_budget_dollars
- Shows elapsed/budget in status bar while session is active
- Switches to red error state when watchdog-postmortem.json appears
- Configurable poll interval via agentTrace.watchdogPollIntervalSeconds
- Disposed cleanly on session end and extension deactivation
#118 — PostMortemManager in postMortem.ts
- Watches all session directories for new watchdog-postmortem.json files
- Auto-opens a formatted webview panel when a post-mortem appears
- Shows reason, cost at death, wall time, last tool call, last LLM response
- 'Copy recovery context' button copies to clipboard for follow-up sessions
- openForSession() command for manual access from command palette
#119 — SessionTreeProvider in sessionTree.ts
- TreeDataProvider showing all sessions grouped by date (Today/Yesterday/date)
- Each session shows: short ID, cost, status icon, task name
- Status: completed ✓, watchdog ⚠, error ✗, in_progress ⟳
- Auto-refreshes via fs.watch + configurable polling interval
- Context menu: 'View Post-Mortem' for watchdog-terminated sessions
- Registered as agentTrace.sessionBrowser in Explorer sidebar
#120 — LiveStreamPanel in liveStream.ts
- Webview connecting to agent-strace server via SSE (EventSource API)
- Real-time event feed with type-coloured rows, timestamp, session link
- Filter by event type, pause/resume, clear, max 500 events in DOM
- Exponential backoff reconnection (1s → 2s → 4s … capped at 30s)
- 'Jump to session' link posts message to reveal in session browser
- Shows configuration prompt when agentTrace.collectorEndpoint is unset
package.json: version 0.1.2 → 0.2.0, new commands, views, menus, settings
Co-authored-by: Ona <no-reply@ona.com>1 parent a160e87 commit 8f7ccb8
6 files changed
Lines changed: 1130 additions & 7 deletions
File tree
- vscode-extension
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
24 | 43 | | |
25 | 44 | | |
26 | 45 | | |
| |||
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
50 | 95 | | |
51 | 96 | | |
52 | 97 | | |
| |||
67 | 112 | | |
68 | 113 | | |
69 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
70 | 130 | | |
71 | 131 | | |
72 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| 77 | + | |
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
| |||
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
144 | 187 | | |
145 | | - | |
| 188 | + | |
| 189 | + | |
146 | 190 | | |
147 | 191 | | |
148 | 192 | | |
| |||
0 commit comments