Skip to content

fix: resolve multiple UI and code quality issues (#688, #734, #758, #778)#837

Closed
MrRealORG wants to merge 11 commits into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-0616-misc-ui-and-prune-fixes
Closed

fix: resolve multiple UI and code quality issues (#688, #734, #758, #778)#837
MrRealORG wants to merge 11 commits into
XiaomiMiMo:mainfrom
MrRealORG:fix/auto-0616-misc-ui-and-prune-fixes

Conversation

@MrRealORG

Copy link
Copy Markdown

Summary

Fixes four open issues in a single PR:

#734 — SessionPrune.resetThresholds leaves stale checkpoint writer failure counters

resetThresholds(sessionID) cleared crossed and maxCrossed but left writerFailures untouched. A session entering a fresh checkpoint threshold cycle could inherit the previous consecutive writer failure count, causing it to hit the retry cap earlier than expected.

Fix: Add writerFailures.delete(sessionID) to resetThresholds().

#688 — Light mode settings page has low-contrast text

CSS variables --text-weak (#8f8f8f) and --text-weaker (#c7c7c7) in light mode failed WCAG AA contrast requirements against the ~#f8f8f8 background.

Fix:

  • --text-weak: #8f8f8f#5f5f5f (contrast ratio ~6.4:1, passes WCAG AA)
  • --text-weaker: #c7c7c7#8a8a8a (contrast ratio ~3.8:1, improved readability)

#758 — TUI hangs on blank screen when mimo -c has no prior sessions

When mimo -c was run with no prior sessions, the TUI set sessionID: "dummy" as a placeholder route. The server rejected this invalid ID, and since no session existed to navigate to, the UI remained stuck on a blank screen.

Fix: When the session list loads (partial/complete) and no session is found to continue, navigate to home with a warning toast instead of staying stuck.

#778 — Bug report template references "OpenCode" instead of "MiMo Code"

The issue template still referenced the upstream fork name.

Fix:

  • Updated bug-report.yml: field id, label, and description now reference "MiMo Code"
  • Updated config.yml: replaced OpenCode Discord link with MiMo Code GitHub Discussions link

Test Plan

  • Verify mimo -c in a fresh directory shows toast and navigates to home instead of hanging
  • Verify light mode settings descriptions are now readable
  • Verify bug report template shows "MiMo Code version" field
  • Verify resetThresholds clears writer failure counter (unit test)

Closes #688, Closes #734, Closes #758, Closes #778

qiaozongming and others added 11 commits June 11, 2026 01:23
docs: correct OpenCode repository URL in README files
…-qrcode

docs: update community group chat QR code
…-qrcode

docs: update community WeChat QR codes
…omiMiMo#734, XiaomiMiMo#758, XiaomiMiMo#778)

- XiaomiMiMo#734: SessionPrune.resetThresholds now clears writerFailures counter
  to prevent stale failure counts from carrying over across threshold
  reset cycles
- XiaomiMiMo#688: Improve light mode text contrast in theme.css:
  --text-weak: #8f8f8f -> #5f5f5f (WCAG AA pass)
  --text-weaker: #c7c7c7 -> #8a8a8a (WCAG AA pass)
- XiaomiMiMo#758: mimo -c no longer hangs on blank screen when no sessions exist;
  navigates to home with a warning toast instead of staying on invalid
  "dummy" session route
- XiaomiMiMo#778: Update bug report template to reference "MiMo Code" instead of
  "OpenCode" and fix Discord link in config.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment