文件历史

提交图

60 次代码提交

作者 SHA1 备注 提交日期
github-actions[bot] 3139961220 build: compile dist/ [auto] 2026-04-20 08:46:22 +00:00
github-actions[bot] e7c0cb9ef3 build: compile dist/ [auto] 2026-04-20 08:45:13 +00:00
github-actions[bot] 0b87e4ad18 build: compile dist/ [auto] 2026-04-20 08:24:03 +00:00
Jarrod Watts 029cca67dd fix: export width override and prefer COLUMNS for HUD layout 2026-04-20 18:23:39 +10:00
墨泪 e74af045ef fix(render): skip width-dependent layout when terminal width is unknown
When running as a CC statusLine subprocess, stdout/stderr are piped and
COLUMNS may not be set. getTerminalWidth() falls back to
UNKNOWN_TERMINAL_WIDTH (40), which is not a real measurement.

Previously, this fallback value was treated as real terminal width in two
places:
- canCombine in renderExpanded(): context + usage lines were always split
  because combined width exceeded 40 columns
- wrapLineToWidth in render(): all output lines were forcefully wrapped
  at 40 characters, breaking the layout

Fix: introduce a widthIsReal guard that checks whether the resolved width
is the UNKNOWN_TERMINAL_WIDTH sentinel. When width is unknown:
- canCombine defaults to true (combine lines optimistically)
- wrapLineToWidth is skipped (wrapWidth=0 → no-op)

The host process (Claude Code) handles final display layout, so wrapping
at an arbitrary fallback value is harmful rather than helpful.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-20 18:23:39 +10:00
github-actions[bot] bfde7cfd96 build: compile dist/ [auto] 2026-04-05 01:01:58 +00:00
github-actions[bot] 99b5c2d1c0 build: compile dist/ [auto] 2026-04-05 01:01:30 +00:00
github-actions[bot] ede1147a4d build: compile dist/ [auto] 2026-04-04 06:38:52 +00:00
github-actions[bot] 6662b4d686 build: compile dist/ [auto] 2026-04-04 06:26:09 +00:00
github-actions[bot] 93c041b64b build: compile dist/ [auto] 2026-04-04 03:55:31 +00:00
github-actions[bot] 5e72fe9ba1 build: compile dist/ [auto] 2026-04-04 03:53:54 +00:00
github-actions[bot] d0ef6272f9 build: compile dist/ [auto] 2026-04-04 03:39:09 +00:00
github-actions[bot] addcb3658c build: compile dist/ [auto] 2026-04-04 03:20:51 +00:00
github-actions[bot] e7d94b4307 build: compile dist/ [auto] 2026-04-04 03:00:35 +00:00
github-actions[bot] d9b1a3daae build: compile dist/ [auto] 2026-04-04 02:52:13 +00:00
github-actions[bot] 98a2358e3e build: compile dist/ [auto] 2026-04-04 02:28:54 +00:00
github-actions[bot] 16ce438825 build: compile dist/ [auto] 2026-04-04 02:24:24 +00:00
github-actions[bot] 30e1dfe46a build: compile dist/ [auto] 2026-03-23 04:05:49 +00:00
github-actions[bot] 891cc9baee build: compile dist/ [auto] 2026-03-23 03:47:56 +00:00
Jarrod Watts fd9a25e35f release v0.0.10: refresh changelog and dist 2026-03-23 13:36:34 +11:00
github-actions[bot] 26e38decd7 build: compile dist/ [auto] 2026-03-20 00:53:22 +00:00
github-actions[bot] 61a3769993 build: compile dist/ [auto] 2026-03-20 00:52:54 +00:00
github-actions[bot] 15771700ea build: compile dist/ [auto] 2026-03-20 00:46:27 +00:00
github-actions[bot] 68f8909322 build: compile dist/ [auto] 2026-03-20 00:44:16 +00: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] 768346fb34 build: compile dist/ [auto] 2026-03-14 00:20:44 +00:00
github-actions[bot] b7306dae0d build: compile dist/ [auto] 2026-03-14 00:15:20 +00:00
github-actions[bot] 202707459f build: compile dist/ [auto] 2026-03-14 00:12:00 +00:00
github-actions[bot] daab333f3e build: compile dist/ [auto] 2026-03-05 23:56:08 +00:00
myaiexp 5467f29e50 feat(config): add showSessionName toggle (default off) (#170)
* feat(config): add showSessionName toggle (default off)

Session name display from #155 is now opt-in via display.showSessionName
config. This addresses user feedback requesting the ability to hide the
session name. Added to setup onboarding and configure command flows.

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

* test(docs): cover session-name default behavior

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Jarrod Watts <jarrod@cubelabs.xyz>
2026-03-06 10:44:05 +11:00
github-actions[bot] b8d6fd3f70 build: compile dist/ [auto] 2026-03-05 07:36:22 +00:00
github-actions[bot] d9c48050f8 build: compile dist/ [auto] 2026-03-03 06:00:48 +00:00
github-actions[bot] c1d0583bea build: compile dist/ [auto] 2026-03-03 04:27:11 +00:00
github-actions[bot] b3dd713660 build: compile dist/ [auto] 2026-03-03 03:19:36 +00:00
github-actions[bot] a4657530ba build: compile dist/ [auto] 2026-03-03 03:19:18 +00:00
github-actions[bot] df61de50b4 build: compile dist/ [auto] 2026-03-03 03:08:33 +00:00
github-actions[bot] 30c3a642b1 build: compile dist/ [auto] 2026-03-03 02:54:17 +00:00
Jarrod Watts 10193cc94a Bump marketplace version to 0.0.7 (#117)
* feat: show API billing indicator in model badge

When ANTHROPIC_API_KEY is present in the environment, display
[Opus | API] in red instead of [Opus | Max]. This helps users
who manage both Max plan and API key access (e.g., work vs personal)
immediately see when they're running on API billing.

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

* Bump marketplace version to 0.0.7

---------

Co-authored-by: Fielding Johnston <fielding@justfielding.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 13:53:01 +11:00
Jarrod Watts ffef15fc33 feat: redesign default layout to clean 2-line display (#112)
New default: model+project on line 1, context+usage bars combined on line 2.
All optional features (tools, agents, todos) hidden by default with
setup onboarding step to enable them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 13:17:23 +11:00
Jarrod Watts 9fc2858619 feat: detect bedrock provider (#111) 2026-02-03 12:47:13 +11:00
Jarrod Watts dec6efa509 feat(render): add output speed display (#110) 2026-02-03 12:36:19 +11:00
Jarrod Watts 0ac11a1f36 fix(usage): show api failure reason (#109) 2026-02-03 12:33:07 +11:00
Jarrod Watts eafe12d876 feat(render): allow token context display (#108) 2026-02-03 12:20:00 +11:00
Jarrod Watts f25627d7f8 feat(config): add seven-day usage threshold (#107) 2026-02-03 12:15:13 +11:00
Jarrod Watts c4582e9831 fix(render): keep hud to one line (#105) 2026-02-03 12:13:32 +11:00
github-actions[bot] 59c1203a84 build: compile dist/ [auto] 2026-01-19 04:24:44 +00:00
github-actions[bot] e8e55cd33b build: compile dist/ [auto] 2026-01-19 04:03:29 +00:00
github-actions[bot] f2a5447b49 build: compile dist/ [auto] 2026-01-14 01:17:51 +00:00