[PR #12575] fix: cli logo output #14278

Closed
opened 2026-02-16 18:19:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12575

State: closed
Merged: No


What does this PR do?

  • Fixed logo output for opencode --help
  • Updated UI.logo() to handle indentation differently based on render context:
    • Help path uses explicit cursor-based indentation so yargs whitespace trimming does not move the ascender.
    • Direct-print path keeps native spacing and applies a matching first-row offset adjustment.
  • Kept the existing logo style and only adjusted glyph placement data so the d ascender lands in the correct column consistently across opencode --help, upgrade, web, and uninstall.

How did you verify your code works?

  • cd packages/opencode
  • bun run --conditions=browser ./src/index.ts --help to not use to installed binary

Issue

Screenshots/Videos

Before:
opencode-cli-logo-issue

After:
opencode-cli-logo-fixed

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12575 **State:** closed **Merged:** No --- ### What does this PR do? - Fixed logo output for `opencode --help` - Updated UI.logo() to handle indentation differently based on render context: - Help path uses explicit cursor-based indentation so yargs whitespace trimming does not move the ascender. - Direct-print path keeps native spacing and applies a matching first-row offset adjustment. - Kept the existing logo style and only adjusted glyph placement data so the d ascender lands in the correct column consistently across opencode --help, upgrade, web, and uninstall. ### How did you verify your code works? - cd packages/opencode - `bun run --conditions=browser ./src/index.ts --help` to not use to installed binary ### Issue - Closes #12574 ### Screenshots/Videos Before: <img width="337" height="72" alt="opencode-cli-logo-issue" src="https://github.com/user-attachments/assets/2ec15191-4600-49ac-bb99-7932f3c118a2" /> After: <img width="316" height="64" alt="opencode-cli-logo-fixed" src="https://github.com/user-attachments/assets/4208ee00-b156-491b-980b-72a9eceea897" />
yindo added the pull-request label 2026-02-16 18:19:05 -05:00
yindo closed this issue 2026-02-16 18:19:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14278