feat(cli): home screen echoes tb (the canonical launcher) when it's installed#261
Merged
Conversation
… installed The command menu + examples used to echo whatever name you invoked (tracebloc->tracebloc, tb->tb) plus a separate "type tb instead" tip. Since the installer always places the `tb` launcher, `tb` is the everyday command we want to teach -- so the home screen now echoes `tb` whenever a tb launcher exists beside the CLI, falling back to the invoked name only when it doesn't (e.g. a bare `go build`), so we never print a `tb` that wouldn't run. The now-redundant "type tb instead" tip is dropped -- the menu itself is in tb. Tests: TestResolveHomeModel_PrefersTB (prefers tb when the launcher exists; falls back to the invoked name otherwise; signed-out too); updated the locked-demo golden + state tests to drop the tip. make ci green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
tb (the canonical launcher) when it's installed
saadqbal
approved these changes
Jul 14, 2026
saadqbal
left a comment
Collaborator
There was a problem hiding this comment.
LGTM 👍 Nicer than the tip — echoing tb directly in the menu teaches the short command without a nag line. Confirmed tbAliasAvailable is a cheap local stat (false on error), so hoisting it above the sign-in gate is safe on the instant logged-out path, and the fallback never prints a tb that wouldn't run.
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 home screen's command menu + examples used to echo whatever name you invoked (
tracebloc→tracebloc,tb→tb) plus a separate "typetbinstead" tip. Since the installer always places thetblauncher,tbis the canonical everyday command we want to teach — so the menu echoingtraceblocjust because you typed the long name taught the wrong habit.Now the home screen echoes
tbwhenever atblauncher exists beside the CLI (the normal installed state), and falls back to the invoked name only when it genuinely doesn't (e.g. a barego build), so it never prints atbthat wouldn't run. With the menu itself intb, the redundant "typetbinstead" tip is dropped.Behavior
tblauncher presenttracebloctb …← the changetbtb …tracebloctracebloc …(fallback — never atbthat won't run)Tests
TestResolveHomeModel_PrefersTB— mutation-proven both directions (preferstbwhen the launcher exists; falls back to the invoked name otherwise) + signed-out.TestRenderHome_MatchesLockedDemo) and the state tests to drop the tip.make cigreen.Note
This changes the home screen locked in #244 (Lukas's call this session — tip → menu-in-
tb). Separate from the semseg work (#247); touches onlyhome.go+ its tests.🤖 Generated with Claude Code