fix: preserve original event type, use source field for wrapper

This commit is contained in:
Jesse Vincent
2026-01-17 13:11:53 -08:00
parent 15d0f2a8f6
commit fccb5b4b8f
3 changed files with 4 additions and 4 deletions

View File

@@ -19,8 +19,8 @@ Write HTML to `/tmp/brainstorm/screen.html`. The server watches this file and au
Check the background task output for JSON events:
```json
{"text":"Option A","choice":"optionA","timestamp":1234567890,"type":"user-event"}
{"data":{"notes":"My feedback"},"timestamp":1234567891,"type":"user-event"}
{"source":"user-event","type":"click","text":"Option A","choice":"optionA","timestamp":1234567890}
{"source":"user-event","type":"submit","data":{"notes":"My feedback"},"timestamp":1234567891}
```
Event types: