Commit 4356854
committed
fix(inspector): kill demo emitter — show real data only or "(no events)"
User asked twice to kill the demo mock data and I left a fallback in
place that kept silently activating because of subtle is_terminal()
discrepancies between default_command (stdin-tty check) and app::run
(separate stdin-tty check). The cockpit displayed synthetic
hydra.veto.fired / sylph.destructive.veto / shell.exec events that
literally do not exist in the real JSONL hook stream — they were
coming from src/demo.rs's synthetic emitter, masking real-data
issues.
Fix: remove the demo-mode branch from app::run entirely. If
Source::Stdin is reached with no piped data, the cockpit shows
"(no events)" honestly. No more silent fallback to synthetic
animation.
Also: lib.rs gains an eprintln! at startup naming the resolved
hook-jsonl path + tail-vs-no-hooks decision so users can confirm
which mode the cockpit picked without grepping the tracing log.
src/demo.rs stays in the codebase as legacy code (unused) — could
be revived for tests / fixtures but is no longer wired into the
default user-facing flow.1 parent 55ef0d8 commit 4356854
2 files changed
Lines changed: 33 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
67 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
197 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
198 | 208 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
0 commit comments