Commit Graph

20 Commits

Author SHA1 Message Date
Jarrod Watts
fd9a25e35f release v0.0.10: refresh changelog and dist 2026-03-23 13:36:34 +11:00
github-actions[bot]
db7ea25186 build: compile dist/ [auto] 2026-03-20 00:42:28 +00:00
Pan Hu
e952a399f1 fix: stop terminal scrolling to top on tool execution (#248)
* fix: detect terminal width via stderr when stdout is piped

When Claude Code runs the statusLine as a subprocess, stdout is captured
(piped), so process.stdout.columns is undefined. With no terminal width,
long lines aren't wrapped by the HUD — the terminal wraps them silently
instead. Claude Code counts \n characters to determine how many lines to
erase on the next render, so the physical line count diverges from what
Claude Code expects. Over successive renders the cursor drifts upward into
the scrollback buffer, causing the terminal to jump to the top on every
tool execution (https://github.com/jarrodwatts/claude-hud/issues/209).

Fix: fall back to process.stderr.columns before the COLUMNS env var.
When the statusLine subprocess is spawned, only stdout is redirected;
stderr remains connected to the real TTY and returns the correct width.
With accurate width, lines are properly wrapped in the HUD output and
Claude Code's line count stays consistent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: drop dist artifacts and cover stderr width

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
2026-03-20 11:41:51 +11:00
github-actions[bot]
51e6e18ca4 build: compile dist/ [auto] 2026-03-14 00:26:03 +00:00
github-actions[bot]
e71f578033 build: compile dist/ [auto] 2026-03-14 00:19:57 +00:00
github-actions[bot]
202707459f build: compile dist/ [auto] 2026-03-14 00:12:00 +00:00
github-actions[bot]
98cde23e48 build: compile dist/ [auto] 2026-03-14 00:06:32 +00:00
github-actions[bot]
c02787bf0e build: compile dist/ [auto] 2026-03-09 04:13:43 +00:00
github-actions[bot]
b873caab2d build: compile dist/ [auto] 2026-03-09 03:58:10 +00:00
github-actions[bot]
6afe1da971 build: compile dist/ [auto] 2026-03-09 01:15:13 +00:00
github-actions[bot]
d0e294c2ba build: compile dist/ [auto] 2026-03-06 07:05:40 +00:00
github-actions[bot]
1e54b40ca3 build: compile dist/ [auto] 2026-03-05 23:55:35 +00:00
github-actions[bot]
cf1dbdef64 build: compile dist/ [auto] 2026-03-05 12:14:40 +00:00
github-actions[bot]
229636f4d9 build: compile dist/ [auto] 2026-03-05 07:33:05 +00:00
github-actions[bot]
d373661ef7 build: compile dist/ [auto] 2026-03-03 05:47:32 +00:00
Jarrod Watts
0ac11a1f36 fix(usage): show api failure reason (#109) 2026-02-03 12:33:07 +11:00
github-actions[bot]
22f4f250a2 build: compile dist/ [auto] 2026-01-14 00:26:32 +00:00
github-actions[bot]
a256670906 build: compile dist/ [auto] 2026-01-07 21:47:57 +00:00
github-actions[bot]
037b1a4c5c build: compile dist/ [auto] 2026-01-07 09:55:00 +00:00
github-actions[bot]
e372132a02 build: compile dist/ [auto] 2026-01-07 05:00:50 +00:00