MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

Bug: Read tool returns stale/wrong images — off-by-one attachment skew; new-size+new-filename bypass works

Open NMDX0721 opened this issue 2 months ago • 1 comments

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

  1. Request Read of a new image file (e.g. 2025_作品联系表.png).
  2. The attachment returned is a previously seen image (e.g. an earlier contact-sheet/拼图板 from an older request).
  3. Re-reading the same file repeatedly replays the first content.
  4. 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 resize the target image to a new pixel size (e.g. width 1100px) and save under a new filename (sheet_small.png, sunrise_view.jpg), then Read that.
  • 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

  1. Attachment layer: validate with a content fingerprint in addition to (path, mtime).
  2. Investigate delivery-order skew in the attachment queue (off-by-one).

Labels

bug, desktop, tools

NMDX0721 avatar Sep 29 '26 07:09 NMDX0721

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).

NMDX0721 avatar Sep 29 '26 07:09 NMDX0721