Commit 03a93e3
committed
fix(miot-chat): handle new harness event types in transcript projector
Task 2's event-type parity fix widened HarnessEvent["type"] with six
literals (approval.auto, decision.requested, decision.resolved,
steering.mode_denied, steering.injected, run.interrupted). applyHarnessEvent
is an exhaustive switch with no default, so the unhandled cases let it fall
through -> TS2366 'Function lacks ending return statement' in check-types.
Add explicit cases: run.interrupted joins the terminal run.completed/
run.failed group; the run-control/steering events are explicit no-ops
(the legacy approval.requested row still renders; the decision/steering
TUI migration is out of scope). Kept default-less so future event types
keep tripping the type-checker until handled.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RtLa5MJ6nUHwBMC3FX6of61 parent 7d3232b commit 03a93e3
1 file changed
Lines changed: 19 additions & 1 deletion
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
40 | 58 | | |
41 | 59 | | |
42 | 60 | | |
| |||
0 commit comments