Skip to content

Status messages time out, errors wait for you, and Messages lists what you missed - #599

Merged
jamescrosswell merged 1 commit into
mainfrom
milestone-592-status-messages
Oct 23, 2026
Merged

jamescrosswell merged 1 commit into
mainfrom
milestone-592-status-messages

Conversation

@a-team-app

@a-team-app a-team-app Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

The status bar now follows the style guide's Status messages rule, on MentalDesk.Tui's own AppStatusBar (bumped to 0.4.0).

  • Replies like Saved: …, Copied 3 lines, Renamed: … and Opened folder: … go after 5 seconds or at your next key. With nothing to say, the bar shows the active file's path, or TuiCode with no tab open.
  • News, like a file reloaded because it changed on disk, stays 5 seconds. A failed review refresh and a stopped language server come off once a refresh works or the server restarts.
  • Errors show in the error colours and don't time out. An error that happened by itself survives typing, goes at your first key after 5 seconds, and counts in ⚠ n.
  • ⚠ n sits just left of the grammar. It counts those errors and log warnings, and clicking it opens Messages. So do Help › Show messages, the palette and sm. Messages lists this session's messages newest first, and opening it clears the count. Show log (sl) still opens the log, and no longer has a count of its own.
  • The grammar, Column select, Wrap, the diff status and Ln, Col sit together at the right end, so a long message no longer pushes them off.

Closes #592

Notes:

  • The bar still ends with Press F1 for help, as it does today. With no file open the left side says TuiCode, and the help hint stays at the right end, so the task's TuiCode • F1 help reads the same as now.
  • Show messages uses e as its Help menu letter (Show m_essages): m already belongs to Show mnemonics.
  • Language-server trouble shows once per server: the install hint when it's missing (Info), or … language server stopped: … (an error).
  • Messages shows times as HH:mm, the library's format, not the pitch mockup's HH:mm:ss.
  • The settings-file error at startup is now error news, so it counts in ⚠ n and appears in Messages too.

a-team try tuicode 599

StatusBarPart now hosts the library's AppStatusBar (MentalDesk.Tui 0.4.0):
the active tab's path is its resting text, and the grammar, modes, wrap,
diff status and position sit together at its right end before the help
hint. Every SetMessage/SetError call is sorted into a reply (ShowMessage),
news (ShowNews) or an error (Severity.Error). News is withdrawn when it
stops being true: a failed review refresh when one works, language-server
trouble when the server restarts, the cut message when the cut clears.

The host calls KeyPressed after handling each key, skipping chord keys and
keys whose command said something. Show messages (sm, Help menu, palette,
or clicking ⚠ n) opens the library's MessagesDialog. LogFile hands its
warnings to the bar each iteration through TakeWarnings, so they count in
⚠ n and list in Messages without showing; Show log no longer clears a count.
The copy message's own timer is gone.

Closes #592

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@a-team-app
a-team-app Bot marked this pull request as ready for review October 23, 2026 12:07
@jamescrosswell
jamescrosswell merged commit fba3e5b into main Oct 23, 2026
30 checks passed
@jamescrosswell
jamescrosswell deleted the milestone-592-status-messages branch October 23, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Status messages time out, errors wait for you, and Messages lists what you missed

1 participant