Commit 9d673c1
fix(gateway): skip workspace media fallback when explicit refs found
When splitMediaFromReply already extracted images from the agent's
markdown refs, skip the time-based appendRecentWorkspaceMedia scan.
The fallback was picking up stale files from previous turns whose
mtime got refreshed by sandbox mount/restart, causing all workspace
images to be sent to IM channels instead of just the referenced one.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 267fcd4 commit 9d673c1
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
474 | 480 | | |
475 | 481 | | |
476 | 482 | | |
| |||
0 commit comments