Commit 3266185
committed
fix(interfaces): unbreak the build and guard the chat attachment read
- data-table.tsx kept a './document-table.css' import after being moved into
its own directory; the CSS sits one level up, where both siblings correctly
reference it as '../'. tsc does not resolve CSS imports and vitest stubs
them, so this only surfaced in a real Next build — CI was red. Swept every
relative asset import repo-wide; this was the only broken one.
- The chat module read attachments outside its try. toChatFilePayloads rejects
when FileReader errors (a file deleted or moved between selection and send),
and by that point the turn is committed: runningRef is set and a streaming
bubble is on screen. An escaping rejection left the bubble spinning and the
guard stuck true, so every later send returned early and the module stayed
dead until remount. The existing finally already tears this down correctly;
the read just needed to be inside it.1 parent b1b96d3 commit 3266185
2 files changed
Lines changed: 15 additions & 7 deletions
File tree
- apps/sim/components/resources
- file-view/components/data-table
- interface-view/components/module-renderer/components/chat-module/hooks
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
369 | 377 | | |
370 | 378 | | |
371 | 379 | | |
| |||
0 commit comments