Bug: Read tool returns stale/wrong images — off-by-one attachment skew; new-size+new-filename bypass works
Summary
In a MiMo Desktop session, the Read tool’s image attachment returns stale/wrong images instead of the requested file. Disk is verified correct (Pillow size + mtime OK) → the failure is in the attachment return layer, not the file system.
Environment
- App: MiMo Desktop (Windows)
- Date: 2026-09-29 session
- Related: #2544 (cross-wired Read images, global graded), #2535 (multi-modal 400)
Reproduction
- Request
Readof a new image file (e.g.2025_作品联系表.png). - The attachment returned is a previously seen image (e.g. an earlier contact-sheet/拼图板 from an older request).
- Re-reading the same file repeatedly replays the first content.
- Requesting image A returns last round’s image B — skew pattern like “delayed by one”, suggesting the attachment queue/cache delivers results off-by-one (request-order mis-delivery / cache index off-by-one).
Evidence
| Check | Result |
|---|---|
| Disk file (Pillow size, mtime) | correct → not a disk/file issue |
| Same-path re-reads | replay first content |
| Cross-request | A → previous B (off-by-one skew) |
Workaround (verified, ~100% success)
Bypass the cache by changing the request signature:
- Use PIL to
resizethe target image to a new pixel size (e.g. width 1100px) and save under a new filename (sheet_small.png,sunrise_view.jpg), thenReadthat. - Add a marker color block (red corner badge) to verify identity.
Important: renaming the file without changing pixel size still cross-wires. The new size + new filename combination is what breaks the cache hit.
Fix suggestions
- Attachment layer: validate with a content fingerprint in addition to (path, mtime).
- Investigate delivery-order skew in the attachment queue (off-by-one).
Labels
bug, desktop, tools
Related: #2544 (cross-wired Read images, graded severity). This report adds the off-by-one skew signature and the verified new-size + new-filename bypass (renaming alone does NOT break the cache; new pixel size + new name does).