Commit f91fa30
committed
🤖 fix: surface pre-stream errors and persist model on workspace creation
Two issues fixed:
1. Pre-stream error surfacing:
- When sendMessage fails before streaming starts (e.g., API key not
configured), the error was silently ignored
- Modified StreamingMessageAggregator.handleStreamError to create a
synthetic error message when no active stream exists
- Added logging in workspaceService.completeWorkspaceCreation
2. Model persistence on workspace creation:
- Model selected for creation was persisted at project scope but not
synced to workspace scope
- On restart, getSendOptionsFromStorage would fall back to default model
- Added model sync in syncCreationPreferences alongside mode/thinking
_Generated with mux_1 parent 2b16543 commit f91fa30
File tree
3 files changed
+35
-0
lines changed- src
- browser
- components/ChatInput
- utils/messages
- node/services
3 files changed
+35
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
567 | 589 | | |
568 | 590 | | |
569 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
613 | 618 | | |
614 | 619 | | |
615 | 620 | | |
| |||
0 commit comments