Skip to content

Fix blank run terminal and invisible dark-theme hover - #66

Merged
ilovecrayons merged 1 commit into
mainfrom
fix/terminal-onData-and-theme
Sep 4, 2026
Merged

Fix blank run terminal and invisible dark-theme hover#66
ilovecrayons merged 1 commit into
mainfrom
fix/terminal-onData-and-theme

Conversation

@ilovecrayons

Copy link
Copy Markdown
Contributor

Blank agent TUI on the run Terminal tab

The terminal-core refactor (#42) moved xterm setup into useXterm, but the run terminal view lost its onData handler in the move: the attach socket delivered the scrollback replay and live PTY frames, and the view dropped every one of them. The pane stayed blank while the header said "Attached".

Verified end to end against the live server on moss: the socket carried a 43 KB replay while the pane showed 36 empty rows. With the fix the agent TUI renders on open.

  • web/src/routes/terminal/index.tsx: wire onData back to terminal.write.
  • web/src/routes/terminal/terminal.test.tsx: regression test that a binary frame lands in xterm; fails on main, passes here.

The run-shell dock, board dock, and master terminal already routed their own onData and were unaffected.

Dark theme: invisible hover, glaring teal

The theme refresh (#46) set dark --accent to #0b1120 - the same color as the sidebar, secondary, and muted surfaces - so every hover:bg-accent state painted the background with itself. It also promoted the landing page's mint #6ee7d6 straight to --primary, which glares on the near-black surfaces.

  • --accent#242e40: a raised steel surface, visibly above the bars it hovers on.
  • --primary/--ring#5cb7aa: same hue, dialed down from L 0.85/C 0.11 to L 0.72/C 0.09. Still 8:1 contrast against the dark text on filled buttons.
  • docs/styles.md updated to match.

Checks

  • bun run typecheck, bun run test (554 pass)
  • make fmt-check vet lint public-audit clean
  • make test: two pre-existing environment-sensitive failures (selfupdate under umask 0002, localgw with a locally installed desktop app) fail identically on unmodified main; not touched by this change.

The terminal-core refactor (#42) moved xterm setup into useXterm but
dropped the attach's onData handler in the run terminal view: output
frames arrived on the socket and were discarded, so the agent TUI pane
stayed blank forever. Wire PTY output back into xterm and pin the
contract with a regression test.

The theme refresh (#46) set the dark --accent to #0b1120, the same
color as the sidebar and secondary surfaces, so every hover:bg-accent
state became invisible. Raise it to #242e40 so hover reads again.
It also used the landing mint #6ee7d6 as --primary, which glares on
the dark surfaces; dim interactive fills to #5cb7aa (same hue, lower
lightness and chroma) and keep the landing page's brighter mint for
itself.
@ilovecrayons
ilovecrayons merged commit 6a0e6d8 into main Sep 4, 2026
6 checks passed
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