DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

fix(desktop): OpenCode Go mimo vision + Windows DPI repaint / 会话切模型读图与 Windows 缩放修复

Open SivanCola opened this issue 3 months ago • 0 comments

Summary

Addresses two high-signal items from the 48h bug triage:

  1. #7798 — mid-session switch to mimo-v2.5 did not attach vision image payloads when the model is selected under OpenCode Go.
  2. #7794 / #7799 — Windows UI scale/blur after minimise-restore (and related restart scale oddities).

Vision (#7798)

  • opencode-go listed mimo-v2.5 as a chat model but not in VisionModels (only kimi-k3).
  • Mid-session switch stayed on opencode-go/mimo-v2.5 → imageInputEnabled false → path text only.
  • New sessions with bare mimo-v2.5 default often hit the official MiMo provider (vision OK), which made the gap look session-scoped.

Fix: add mimo-v2.5 to the OpenCode Go vision catalog; migrate stock vision_models = ["kimi-k3"] lists on load (preserve explicit empty/custom lists).

Windows DPI (#7794 / #7799)

  • Monitor-scale detection was already enabled (#6472).
  • Still force a one-frame compositor repaint on visibilitychange → visible for Windows to clear stale scale layers after minimise/restore.

Test plan

  • [x] go test ./internal/config/ ./internal/control/
  • [x] tsx desktop/frontend/src/__tests__/dpi-repaint.test.tsx
  • [ ] Manual: default opencode-go/deepseek-v4-flash, switch to opencode-go/mimo-v2.5, paste image → model describes image
  • [ ] Manual (Windows): minimise → restore; UI scale and text sharpness match system DPI

Related

  • #7798, #7794, #7799
  • Stacks with updater self-heal PR #7820 (separate branch)

中文摘要

修复 OpenCode Go 下会话内切到 mimo-v2.5 读图失效,并在 Windows 最小化恢复时强制重绘以缓解缩放/模糊。

SivanCola avatar Aug 07 '26 03:08 SivanCola