Skip to content

ui: revert mascot from pixel-art crab to simple 3-line bot#116

Merged
emal-avala merged 1 commit intomainfrom
fix/revert-to-simple-bot-mascot
Apr 15, 2026
Merged

ui: revert mascot from pixel-art crab to simple 3-line bot#116
emal-avala merged 1 commit intomainfrom
fix/revert-to-simple-bot-mascot

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

Replaces the welcome-banner mascot (pixel-art crab + shimmer animation) with the simple 3-line robot head that existed before commit aad7893.

Why

  • Theme compliance — the crab used hardcoded #A422E1 purple and ignored the user's theme. The bot now uses t.accent, so it matches whatever theme is configured.
  • Startup latency — the crab's shimmer played 3 frames at 120ms each, adding 360ms of blocking delay before the prompt appeared. The bot is instant.
  • Minimal aesthetic — the rest of the REPL (prompt , dividers, status line) is one-line and subtle. The 14-row crab was visually inconsistent.
  • Line count — removes ~245 lines of pixel-art and color plumbing.

The mascot

▐▛██▜▌   Agent Code v…
▝▜██▛▘   model · session …
  ▘▘     /path/to/cwd

Three lines of Unicode half-blocks, rendered with t.accent bold on the top row and t.accent regular on the lower rows.

Cleanup

Also deleted the following dead functions from tui.rs (the crab was the only consumer):

  • `render_crab_banner`
  • `render_crab_shimmer`
  • `render_half_block`
  • `rgb_fg`, `rgb_bg`

Test plan

  • cargo check / cargo clippy (will be verified by CI)
  • Visual check: run the REPL and confirm the bot appears in the active theme's accent color
  • Verify no theme (light/dark/custom) causes the bot to render in low-contrast colors

The welcome banner now renders a minimal 3-line robot head (▐▛██▜▌ /
▝▜██▛▘ / ▘▘) in the current theme accent color, matching the original
design from before commit aad7893 replaced it with a 14-row pixel-art
crab plus shimmer animation.

The crab used hardcoded #A422E1 purple and ignored the user's theme,
and the shimmer added 360ms of startup delay (3 x 120ms frames) plus
~220 lines of pixel/color plumbing. The simple bot follows the theme,
is instant, and matches the minimal aesthetic of the rest of the REPL.

Removed from tui.rs: render_crab_banner, render_crab_shimmer,
render_half_block, rgb_fg, rgb_bg — all crab-exclusive helpers. Net
-245 lines.
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@emal-avala emal-avala merged commit f3285d3 into main Apr 15, 2026
11 of 13 checks passed
@emal-avala emal-avala deleted the fix/revert-to-simple-bot-mascot branch April 15, 2026 07:15
emal-avala added a commit that referenced this pull request Apr 15, 2026
Two formatting issues slipped through on PR #116 and are breaking CI
on every branch off main:

- crates/cli/src/ui/repl.rs:412-416 — the last println! in the bot
  mascot block fits on one line; rustfmt collapses it.
- crates/cli/src/ui/tui.rs — sed left a double newline at EOF after
  removing the crab block. rustfmt wants a single trailing newline.

Both fixes are mechanical and match what cargo fmt would produce.
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