Skip to content

feat(cli): badge the --mini splashes with the CoDev mark - #111

Merged
quickbeard merged 4 commits into
mainfrom
min-logo
Jul 21, 2026
Merged

quickbeard merged 4 commits into
mainfrom
min-logo

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

The codev --mini entry and exit splash banners badged with the o of the go mark inherited from upstream. They now use the c of the CoDev wordmark.

Change

packages/tui/src/logo.ts gains a badge export — the "c" of the wordmark, sliced from logo.left so it can't drift from the wordmark it's taken from. packages/opencode/src/cli/cmd/run/splash.ts points both the entry and exit branches at badge instead of go.right.slice(1).

go itself is untouched, deliberately: packages/tui/src/component/bg-pulse-render.ts still draws the full "go" wordmark from it, so editing go.right in place would have silently altered that background animation too.

Verification

Ran codev --mini and captured both splashes:

█▀▀▀  CoDev Code                      █▀▀▀  Session  One-word greeting
█     /private/tmp/…/verify-proj      █     Continue codev --mini -s ses_080c555…
▀▀▀▀                                  ▀▀▀▀

(The exit splash only renders once a session exists, so it needs a real turn before /exit — an immediate exit skips it.)

  • bun typecheck clean in packages/opencode and packages/tui.
  • test/cli/run/ + test/cli/help/: 196 pass / 0 fail (35 snapshots, none covering the badge).

CHANGELOG.md has an Unreleased Branding entry; DIVERGENCES.md gets a new row for splash.ts and an amendment to the logo.ts row for the badge export.

🤖 Generated with Claude Code

The `codev --mini` entry and exit splashes badged with the "o" of the `go`
mark inherited from upstream. Add a `badge` export to the logo module — the
"c" of the CoDev wordmark, derived from `logo.left` so it tracks the
wordmark — and point both splash branches at it.

`go` is left untouched: the background pulse (bg-pulse-render.ts) still
draws the full "go" wordmark from it, so editing `go.right` in place would
have altered that animation too.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
quickbeard and others added 3 commits July 21, 2026 08:36
The badge glyph on the `codev --mini` splashes drew in the muted `left`
color shared with the detail and session/continue labels, so the brand
mark read as chrome. Draw it in the brand secondary instead — teal in
dark, purple in light — matching the home-screen wordmark.

RunSplashTheme gains mark/markShadow: splashTheme() derives them from
theme.secondary (quantized to the terminal palette like the rest of the
splash), and the fallback seeds them from brand teal #0891B2. splash.ts
points the badge fg/shadow at them; the labels keep the muted left.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The previous commit coloured the badge from the run theme's own `secondary`,
quantized to the terminal palette. But the run theme derives `secondary`
from the terminal palette (magenta), and quantizing snapped it to a dull,
off-brand cell — not the banner teal.

Colour the badge from the fixed brand constant instead (#0891b2 dark /
#7b5bb6 light, the codev theme's darkSecondary/lightSecondary), as truecolor
rather than a nearest-palette cell, so it renders as the exact home-screen
banner teal. markShadow follows the banner's tint(background, brand, 0.25)
formula. splashTheme takes the resolved dark/light pick; the fallback path
seeds the same truecolor teal. Verified in a running --mini: the badge glyph
emits 38;2;8;145;178 with a 48;2;2;36;45 interior fill.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The badge's `c` glyph carried an interior shadow fill (the `_` cells in
its middle row rendered as spaces with markShadow as background). Strip
those marks to spaces so the badge is a flat brand-teal outline.

markShadow is now unused, so remove it: from RunSplashTheme, splashTheme,
the fallback, and the test. draw()'s `shadow` param becomes optional and
the badge calls omit it. Verified in a running --mini: the badge glyph
emits 38;2;8;145;178 with no background cell on any row.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 133cd1b into main Jul 21, 2026
1 of 5 checks passed
@quickbeard
quickbeard deleted the min-logo branch July 21, 2026 01:55
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