Skip to content

feat(terminal): configurable fonts with built-in Nerd Font icons - #166180

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/terminal-fonts-nerd-default
Oct 7, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/terminal-fonts-nerd-default

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes missing prompt icons and Powerline separators when a Zsh or other shell prompt uses Nerd Font characters, and lets users choose their terminal font.

User Impact

Users can choose an installed monospace font in Settings → Appearance → Typography → Terminal font, or reset to the bundled JetBrains Mono + Nerd Font symbols default. Changes update open terminals without restarting their shells.

The setting is browser-local for the selected Gateway; custom fonts must be installed on the browser's computer, not the remote shell host. Missing fonts fall back to the bundled default. Programming ligatures remain unsupported by the current terminal renderer. No Gateway configuration or migration is required.

Why This Change Was Made

Keep the existing text font and add the upstream symbols-only Nerd Font as a lazy, same-origin fallback rather than requiring a local font installation or a third-party CDN. A single terminal font resolver covers docked, full-page, and focused terminals, including late font loads and recovery replacements.

The bundled Symbols Nerd Font Mono 3.4.0 is 1,178,136 bytes in WOFF2 format. Its MIT license and source/conversion provenance are included; all 10,410 mapped code points are retained.

Evidence

Actual terminal-renderer captures using the same representative Zsh-style prompt:

Before After
Before: Nerd Font prompt icons rendered as missing glyphs After: bundled Nerd Font icons and Powerline separators
Terminal font setting

Terminal font configuration with a local font and Use default control

  • Five Chromium E2E checks passed: delayed font loading/repaint, changing fonts without restarting the shell, cross-window persistence/reload/reset, invalid input and absent local fonts, HiDPI geometry, failed font downloads, and terminal lifecycle behavior. These use the real UI/renderer with deterministic mock-Gateway shell output, not a live personal shell.
  • Focused terminal/font, settings-persistence, and settings-view tests passed. A deferred-recovery regression first failed on the stale font, then passed after reconciling the latest preference at adoption.
  • Final Control UI build and bundle budgets, affected UI/test typechecks, typed lint for all 25 changed TypeScript files, styles, i18n, and whitespace checks passed. Built font bytes match the source asset.
  • Independent native source review and follow-up found no remaining P0–P2 findings after the recovery fix. The repository autoreview helper rejected WOFF2 input before running a reviewer; that limitation was not bypassed or reported as a helper pass.
  • The full local changed-check on the implementation candidate was not globally green: its final dead-export scan flagged the pre-existing, untouched CallBrief re-export in extensions/voice-call/src/types.ts:4. No change to that unrelated file is included. After the PR was marked ready, hosted CI passed for the unchanged head e972c106b523c5ef63c4ab4451b65d2178634fab; both required openclaw/ci-gate checks passed before merge.
Local test cost and scope

The repository test wrapper equivalent to pnpm test ui/src/app/terminal-font.test.ts ui/src/components/terminal/terminal-controller-lifecycle.test.ts ui/src/components/terminal/terminal-panel-fonts.test.ts --maxWorkers=1 passed 24 tests in 2.31 seconds wall time (Vitest 1.16 seconds). The two font E2E cases took 9.651 and 1.940 seconds locally; the five-check E2E run, including the existing runtime suite and build setup, took 27.24 seconds. These are local measurements, not isolated CI timings. Existing passing proof was reused for unchanged inputs; no CI reruns or broad unrelated fixes were requested.

Worked on by

Work sessions


View the OpenClaw team session

Worked on by:
- @jacobtomlinson

Co-authored-by: jacobtomlinson <[email protected]>
OpenClaw-Publication: 107cf8ee-892a-4bf1-9fca-3bcaaa7734e7
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 12:45 PM ET / 16:45 UTC (Revision 3).

ClawSweeper review

What this changes

Adds a browser-local terminal font setting, bundles Nerd Font symbols, and updates open terminals when fonts or preferences change.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main and the latest release lack its bundled symbols and terminal font preference. No blocking correctness or security defect was found, and the inspected visual evidence supports the rendering improvement.

Priority: P2
Reviewed head: e972c106b523c5ef63c4ab4451b65d2178634fab

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with convincing visual proof and useful lifecycle coverage; no blocking defect was identified.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium captures exercise the actual terminal renderer with deterministic mock-Gateway output and visibly show repaired prompt symbols, plus the font setting. Reported browser checks supplement this with delayed loading, live changes, persistence, and failure recovery. Source inspection verifies the optional persisted field preserves existing settings without migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Chromium captures exercise the actual terminal renderer with deterministic mock-Gateway output and visibly show repaired prompt symbols, plus the font setting. Reported browser checks supplement this with delayed loading, live changes, persistence, and failure recovery. Source inspection verifies the optional persisted field preserves existing settings without migration.
Evidence reviewed 10 items Introduced patch and merge ownership: Reviewed the pinned merge-base-to-head changes. The raw test-merge commit records the specified base followed by the exact PR head; its changed paths match the introduced feature rather than unrelated base-branch work.
Current main still needs the feature: Fetched main retains the fixed installed-font fallback stack. It does not supply this PR's browser-local preference or bundled Symbols Nerd Font.
Latest release comparison: The same installed-font fallback exists in v2026.9.8. The merged predecessor #100128 adopted the shared runtime and local font fallbacks; it does not supersede this configurable, self-hosted font feature.
Findings None None.
Security None None.

How this fits together

The Control UI terminal renders shell output received from the Gateway. Browser-local font preferences and bundled fonts determine how that output appears without restarting the shell.

flowchart LR
  A[Appearance settings] --> B[Browser-local preferences]
  B --> C[Terminal font selection]
  D[Bundled fonts] --> C
  E[Gateway shell output] --> F[Terminal renderer]
  C --> F
  F --> G[Visible prompt and symbols]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +191, Tests +386, Docs +45. Total +622 across 29 files.

View PR surface stats
Area Files Added Removed Net
Source 17 216 25 +191
Tests 10 387 1 +386
Docs 2 45 0 +45
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 29 648 26 +622

Review metrics

Metric Value Why it matters
Local configuration 1 optional browser-local setting The preference adds no Gateway configuration or server migration.
Font payload 1,178,136 bytes, loaded when a terminal opens The symbols asset has a documented payload cost and does not gate shell startup.
Production versus test growth production net +170 lines; tests and test support net +386 lines Production growth serves the stated preference and font lifecycle, with separate browser and recovery coverage.

Technical review

Best possible solution:

Use one browser-local font preference and the existing terminal renderer, with bundled symbols, graceful font fallback, and lifecycle-owned repainting.

Do we have a high-confidence way to reproduce the issue?

Yes: rendering Nerd Font prompt characters in a browser without compatible installed fonts exposes the missing glyphs shown in the inspected before capture. Current-main source retains that installed-font dependency; I did not execute it.

Is this the best way to solve the issue?

Yes: the patch extends the existing settings and renderer owners, keeps fonts same-origin, and applies preferences without creating another terminal implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 817706084620.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded terminal readability and customization improvement with no demonstrated urgent runtime regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected Chromium captures exercise the actual terminal renderer with deterministic mock-Gateway output and visibly show repaired prompt symbols, plus the font setting. Reported browser checks supplement this with delayed loading, live changes, persistence, and failure recovery. Source inspection verifies the optional persisted field preserves existing settings without migration.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Chromium captures exercise the actual terminal renderer with deterministic mock-Gateway output and visibly show repaired prompt symbols, plus the font setting. Reported browser checks supplement this with delayed loading, live changes, persistence, and failure recovery. Source inspection verifies the optional persisted field preserves existing settings without migration.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Chromium captures exercise the actual terminal renderer with deterministic mock-Gateway output and visibly show repaired prompt symbols, plus the font setting. Reported browser checks supplement this with delayed loading, live changes, persistence, and failure recovery. Source inspection verifies the optional persisted field preserves existing settings without migration.

Evidence

What I checked:

  • Introduced patch and merge ownership: Reviewed the pinned merge-base-to-head changes. The raw test-merge commit records the specified base followed by the exact PR head; its changed paths match the introduced feature rather than unrelated base-branch work. (c4629088727c)
  • Current main still needs the feature: Fetched main retains the fixed installed-font fallback stack. It does not supply this PR's browser-local preference or bundled Symbols Nerd Font. (ui/src/components/terminal/terminal-panel-session-types.ts, 817706084620)
  • Latest release comparison: The same installed-font fallback exists in v2026.9.8. The merged predecessor feat(ui): adopt shared libterminal runtime #100128 adopted the shared runtime and local font fallbacks; it does not supersede this configurable, self-hosted font feature. (ui/src/components/terminal/terminal-panel-session-types.ts, fc23bc864e45)
  • Inspected visual proof: Inspected all three prepared images from the supplied body: before shows missing prompt glyphs, after shows symbols and Powerline separators, and the settings image shows a local font and reset control. The body identifies these as actual Chromium terminal-renderer captures with deterministic mock-Gateway output. They directly support visible rendering, without claiming live personal-shell execution. (e972c106b523)
  • Existing-state compatibility: The persisted terminalFontFamily field is optional, normalized through the existing settings owner, and absent on older settings. Existing keys remain intact; reset omits the new key. Browser coverage checks persistence without changing interface or chat fonts, while the reported renderer flow exercises reload and cross-window reset. (ui/src/app/settings.ts:506, e972c106b523)
  • Font lifecycle and dependency signal: The production adapter directly uses @openclaw/libterminal/browser and ghostty-web. Font completion remeasures and repaints live controllers, disposal removes observers, and recovery reconciles the latest preference after asynchronous replacement. This establishes a renderer dependency boundary, with no affirmative Codex dependency signal. (ui/src/components/terminal/terminal-runtime.ts:1, e972c106b523)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-06T15:57:28.222Z sha e972c10 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-06T16:05:51.696Z sha e972c10 :: needs maintainer review before merge. :: none

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 6, 2026 16:30
@roboclaw-bot
roboclaw-bot merged commit 85f0858 into main Oct 7, 2026
161 of 163 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/terminal-fonts-nerd-default branch October 7, 2026 09:59
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 7, 2026
#166180 added ui/src/e2e/terminal-fonts.e2e.test.ts, which starts its own Control UI server, without registering it in uiE2ePrivateServerTestFiles. The ownership guard in ci-workflow-guards.test.ts failed on main (run 37612626386); registering it runs the suite under the serial private-server owner.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
…nclaw#166180)

Bundle Nerd Font symbols alongside JetBrains Mono so Zsh and other prompts render Powerline and private-use icons out of the box. Add a browser-profile/Gateway-local terminal font preference with a clear reset to the bundled default.

Apply font changes to mounted terminal surfaces without restarting shells, remeasure and repaint after fonts load, and reconcile the latest preference after terminal recovery. Document local browser font requirements and the renderer’s current lack of programming ligatures.

Verified focused unit/browser tests, five real-renderer Chromium E2E checks, Control UI build and bundle budgets, typechecks, lint, styles, i18n, and sanitized before/after screenshots.

Co-authored-by: jacobtomlinson <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
openclaw#166180 added ui/src/e2e/terminal-fonts.e2e.test.ts, which starts its own Control UI server, without registering it in uiE2ePrivateServerTestFiles. The ownership guard in ci-workflow-guards.test.ts failed on main (run 37612626386); registering it runs the suite under the serial private-server owner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant