Commit c972ba6
authored
Fix onboarding text splitting, button timing, and transition crash (#5366)
## Summary
- Fix AI chat text being split into multiple bubbles (e.g.
"encrypted!Should") by using `message.text` directly instead of
reassembling from content blocks
- Only show Continue button after `complete_onboarding` AND no pending
questions/permissions remain
- Defer `hasCompletedOnboarding` state change to prevent SwiftUI crash
during view transition
- Pre-load hero logo as static property to avoid NSImage crash during
body evaluation
## Test plan
- [ ] Onboarding chat shows AI text as single continuous bubble, no
broken words
- [ ] Continue button only appears after all questions and permissions
are handled
- [ ] Clicking "Take me to my tasks" transitions without crash
- [ ] App loads main view without hero logo crash
🤖 Generated with [Claude Code](https://claude.com/claude-code)File tree
3 files changed
+22
-18
lines changed- desktop/Desktop/Sources
- MainWindow
3 files changed
+22
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
| |||
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
43 | | - | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| |||
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
229 | | - | |
230 | | - | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
914 | 913 | | |
915 | 914 | | |
916 | 915 | | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
925 | 919 | | |
926 | 920 | | |
927 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | 222 | | |
225 | 223 | | |
226 | 224 | | |
| |||
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| |||
0 commit comments