Commit 10d1359
committed
fix(off-grid-ai#510): carry imageMode through the queue so a queued force-image send draws
A force-image send that queued behind an in-flight generation lost its force
flag: QueuedMessage carried no imageMode, so on drain handleQueuedSend →
dispatchGenerationFn re-decided modality at imageMode='auto' → resolveTurnKind
classified the (non-draw) text as TEXT. A message the user explicitly forced to
image generated as a text reply.
Carry imageMode end-to-end: add it to QueuedMessage, set it when handleSendFn
enqueues, preserve it in the processNextInQueue merge (any coalesced force wins),
and pass it through handleQueuedSend to dispatchGenerationFn. A queued force-image
send now dispatches as image (trace: [ROUTE-SM] dispatch imageMode=force → IMAGE
pipeline), not re-classified at 'auto'.1 parent 2e567df commit 10d1359
3 files changed
Lines changed: 14 additions & 3 deletions
File tree
- src
- screens/ChatScreen
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
| 497 | + | |
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
513 | | - | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
514 | 516 | | |
515 | 517 | | |
516 | 518 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | | - | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
349 | 356 | | |
350 | 357 | | |
351 | 358 | | |
| |||
0 commit comments