Skip to content

feat(cli): brand the empty-session TUI home with a maka wordmark - #1242

Merged
Astro-Han merged 1 commit into
mainfrom
feat/1098-branded-tui-home
Jul 19, 2026
Merged

Astro-Han merged 1 commit into
mainfrom
feat/1098-branded-tui-home

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

The standalone TUI's fresh empty session had little product identity or task guidance: a single maka line, a model/connection/folder orientation line that duplicated the statusline, and three tips (/help, Ctrl+O, Esc Esc).

This PR renders the welcome as the branded home from #1098:

  • A four-line lowercase ASCII maka wordmark in Maka blue (ansi.accent).
  • A short Chinese-first tagline, 陪你把事做完.
  • Command-center hints for direct input + /session + /model + /setup. Autocomplete already teaches commands as you type, so /help is no longer a home hint.
  • A terminal too narrow for the wordmark falls back to a single maka line; the tagline and hints stay. The fallback width is derived from the wordmark's literal longest line, not hardcoded.
  • The active model/connection live in the statusline, so the welcome no longer repeats them.

The change is confined to renderWelcomeBlock in packages/cli/src/pi-transcript.ts.

Two pre-existing slash-autocomplete tests grepped the whole screen for /model//session/etc. and assumed the welcome contained none; the home now legitimately shows those as hints (#1098). They now scope to the autocomplete overlay via a new autocompleteSuggestionLines test helper, gated on the menu's → cursor so polling waitFor calls don't match the home's hints.

Refs #1098 — does not close it; seams 2 (searchable /model) and 3 (/setup model curation) remain.

Verification

  • npm --workspace maka-agent run build (tsc) — passes.
  • npm --workspace maka-agent run test:dist — 604/604 pass.
  • npm run format:check — clean.
  • npm run lint — clean.
  • Live render of the empty-session home:
wide (width 100):
 _ __    __ _  _  __   __ _
| '_ \  / _` | | |/ / / _` |
| |_) | | (_| | |   <  | (_| |
|_.__/  \__,_| |_|\_\  \__,_|

陪你把事做完

  输入消息开始对话
  /session  切换或恢复会话
  /model    切换模型
  /setup    配置模型提供商

narrow (width 29, below the wordmark's 30-col width):
maka

陪你把事做完

  输入消息开始对话
  /session  切换或恢复会话
  /model    切换模型
  /setup    配置模型提供商

The wordmark's first line is wrapped in \x1b[38;2;87;163;239m (Maka blue), the same accent the uses logo blue for TUI accent chrome contract locks.

New/updated contracts (red → green): the branded home content, the narrow-terminal fallback at the wordmark-width boundary, and /new reopening the same home.

Review focus

The four-line wordmark is a creative asset. If the exact ASCII art should differ (a specific figlet font, different letterforms), that is the one thing worth a pass before merge; everything else is mechanical.

Render the fresh-session welcome as a four-line lowercase ASCII maka
wordmark in Maka blue, a short Chinese-first tagline, and command-center
hints for direct input, /session, /model, and /setup. A terminal too
narrow for the wordmark falls back to a single maka line; the tagline and
hints stay. The active model/connection live in the statusline, so the
welcome no longer duplicates them.

Three slash-autocomplete tests and one autocomplete gate now scope their
assertions to the overlay suggestion rows (new autocompleteSuggestionLines
helper, gated on the menu's -> cursor) instead of grepping the whole
screen, which would collide with the home's new /session /model /setup
hints. The overlay-placement test asserts the cursor sits above the
editor's top border so it still catches a below-editor regression.

Refs #1098
@Astro-Han
Astro-Han force-pushed the feat/1098-branded-tui-home branch from c7c62f8 to 00263f1 Compare July 19, 2026 15:25
@Astro-Han
Astro-Han merged commit 92c017a into main Jul 19, 2026
3 checks passed
@Astro-Han
Astro-Han deleted the feat/1098-branded-tui-home branch July 19, 2026 15:28
@MoonOld MoonOld mentioned this pull request Aug 24, 2026
4 of 6 tasks
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.

1 participant