feat(tui): add clock display in sidebar footer#640
Open
MrRealORG wants to merge 2 commits into
Open
Conversation
added 2 commits
June 14, 2026 20:10
The MimoAuthPlugin contained hardcoded Chinese strings that would display regardless of the user's locale setting: - label: '浏览器登录' → 'Browser Login' - instructions: '在浏览器中完成授权,或粘贴 Code 完成登录。' → 'Complete authorization in the browser, or paste the Code to finish login.' The TUI login dialog already has its own i18n-translated strings for the OAuth flow (manual_hint, waiting, placeholder, etc.) via the t() function. The plugin strings serve as API-level fallbacks and should be in English. Also updates the test assertion to match the new English label. Fixes XiaomiMiMo#565
Shows current time (HH:MM format) at the bottom of the sidebar, next to the version string. Updates every 30 seconds. Useful for users who run MiMo Code in full-screen terminals with tmux/screen splits, where the terminal title bar may not be visible. Fixes XiaomiMiMo#545
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #545 — Adds a clock display at the bottom of the sidebar, next to the version string.
Motivation
Users who run MiMo Code in full-screen terminals with tmux/screen splits often cannot see the terminal title bar or system clock. Having the time visible in the sidebar is practical for long coding sessions.
Changes
packages/opencode/src/cli/cmd/tui/feature-plugins/sidebar/footer.tsx:timesignal that updates every 30 secondstoLocaleTimeString()textMutedcolor