Repository navigation
feat(cli): brand the empty-session TUI home with a maka wordmark - #1242
Merged
Merged
Conversation
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
force-pushed
the
feat/1098-branded-tui-home
branch
from
July 19, 2026 15:25
c7c62f8 to
00263f1
Compare
4 of 6 tasks
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
The standalone TUI's fresh empty session had little product identity or task guidance: a single
makaline, 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:
makawordmark in Maka blue (ansi.accent).陪你把事做完./session+/model+/setup. Autocomplete already teaches commands as you type, so/helpis no longer a home hint.makaline; the tagline and hints stay. The fallback width is derived from the wordmark's literal longest line, not hardcoded.The change is confined to
renderWelcomeBlockinpackages/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 newautocompleteSuggestionLinestest helper, gated on the menu's→cursor so pollingwaitForcalls don't match the home's hints.Refs #1098 — does not close it; seams 2 (searchable
/model) and 3 (/setupmodel 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.The wordmark's first line is wrapped in
\x1b[38;2;87;163;239m(Maka blue), the same accent theuses logo blue for TUI accent chromecontract locks.New/updated contracts (red → green): the branded home content, the narrow-terminal fallback at the wordmark-width boundary, and
/newreopening 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.