Commit bc431ff
committed
fix(copilot): re-honor ?chatId= on revisits, tolerate null jsonb
Track the consumed URL chatId per value (not once per session) so
returning to a workflow with a fresh `?chatId=` re-applies it instead
of being shadowed by the once-per-workflow auto-select guard. Same
treatment for the copilot-tab activation effect.
Make `type` and `resources` on the chat list contract `.nullable()` to
tolerate null jsonb reads from older rows even though the columns are
declared NOT NULL with defaults — avoids a Zod parse failure silently
emptying the chat list on the client.1 parent e8a692e commit bc431ff
2 files changed
Lines changed: 24 additions & 11 deletions
File tree
- apps/sim
- app/workspace/[workspaceId]/w/[workflowId]/components/panel
- lib/api/contracts
Lines changed: 22 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
289 | 291 | | |
| 292 | + | |
290 | 293 | | |
291 | 294 | | |
292 | 295 | | |
| |||
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
298 | 312 | | |
299 | 313 | | |
300 | 314 | | |
301 | 315 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 316 | + | |
307 | 317 | | |
308 | 318 | | |
309 | 319 | | |
| |||
490 | 500 | | |
491 | 501 | | |
492 | 502 | | |
| 503 | + | |
| 504 | + | |
493 | 505 | | |
494 | | - | |
| 506 | + | |
495 | 507 | | |
496 | | - | |
497 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
498 | 511 | | |
499 | 512 | | |
500 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
| 310 | + | |
| 311 | + | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| |||
0 commit comments