Commit 3ef6271
fix: menu header clipping and breadcrumb hyperlink (#221)
## Summary
- **Fix breadcrumb top border clipping**: At ~40-row terminal heights,
the full layout content exceeded the terminal height, causing Ink to
clip the `rl > Home` breadcrumb's top rounded border off the screen.
Fixed by adding `flexShrink={0}` to the Breadcrumb outer Box and raising
the full layout height threshold from 40 to 43.
- **Clickable domain hyperlink in breadcrumb**: The custom domain shown
in the breadcrumb header (`rl (domain) > Home`) is now an OSC 8
hyperlink via `ink-link`. In terminals that support the protocol (Kitty,
iTerm2, etc.), clicking the domain opens the platform URL
(`https://platform.<domain>`). Unsupported terminals show the plain text
unchanged (`fallback={false}`).
## Test plan
- [x] `npm run build` passes
- [x] All Banner/MainMenu/Breadcrumb tests pass (113 total in affected
suites)
- [x] Formatting and lint checks pass (0 new warnings)
- [x] Manual: run `rli` at terminal heights 35, 40, 43, 45 — breadcrumb
border should never clip
- [x] Manual: unset `RUNLOOP_BASE_URL` — default "RUNLOOP.ai" behavior
preserved
- [x] Manual: in a supported terminal (Kitty/iTerm2), verify the domain
in the breadcrumb is clickable and opens `https://platform.<domain>`
- [x] Manual: in an unsupported terminal, verify no URL text is appended
after the domain
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3528701 commit 3ef6271
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments