提交

提交图

337 次代码提交

作者 SHA1 备注 提交日期
Jarrod Watts a47c952b6b docs: prefer node over bun on windows 2026-04-04 13:35:21 +11:00
github-actions[bot] 3c4a2c1976 build: compile dist/ [auto] 2026-04-04 02:26:18 +00:00
Jarrod Watts 0786f4c50b Merge pull request #357 from kagura-agent/fix/preserve-taskid-map-across-todowrite
fix: preserve taskIdToIndex map across TodoWrite operations (#345)
2026-04-04 13:25:59 +11:00
Jarrod Watts a30a7afd63 chore: drop generated dist artifacts 2026-04-04 13:25:45 +11:00
github-actions[bot] 16ce438825 build: compile dist/ [auto] 2026-04-04 02:24:24 +00:00
Jarrod Watts 2d8561a84f Merge pull request #354 from zelinewang/feat/compact-model-display-name
feat: add display.modelFormat and display.modelOverride config options
2026-04-04 13:24:10 +11:00
kagura-agent 9955880815 fix: preserve taskIdToIndex map across TodoWrite operations (#345)
When TodoWrite is called, the taskIdToIndex map was cleared and
rebuilt from scratch. However, TodoItem objects only contain content
and status fields — no taskId. This meant all taskId mappings from
prior TaskCreate calls were permanently lost, causing subsequent
TaskUpdate operations to silently fail.

Fix: Before clearing the map, build a reverse lookup of content →
taskIds from the existing state. After replacing latestTodos with the
new TodoWrite items, re-register taskId mappings for items whose
content matches a previously-known task. Stale mappings (for content
no longer present) are naturally dropped.

Adds two tests:
- TaskCreate → TodoWrite → TaskUpdate flow preserves taskId
- TodoWrite-only regression test (no TaskCreate involved)
2026-04-03 17:19:49 +08:00
Zane Wang e6ed4aa1a6 test: add render tests for modelFormat and modelOverride
Cover both rendering paths (expanded + compact) to verify that:
- modelFormat compact/short correctly strips context suffix and prefix
- modelOverride completely replaces the model name in the badge
- modelOverride takes precedence over modelFormat
- loadConfig structural test validates new display fields
2026-04-03 06:49:40 +08:00
Zane Wang ab4c564892 feat: add display.modelOverride for custom model display names
Users can now set a fully custom model name in their config:

  { "display": { "modelOverride": "zane's intelligent opus 4.6" } }

When set, the override completely replaces the auto-detected model
name (while preserving the provider qualifier like "| Bedrock").

Follows the same pattern as customLine: string type, max 80 chars,
empty string means disabled (falls through to modelFormat).
2026-04-03 06:42:25 +08:00
Zane Wang 5676041f19 feat: add configurable modelFormat option (full/compact/short)
Redesign from mandatory stripping to user-configurable display format.
Adds display.modelFormat with three levels:

  full:    Show raw display name as-is (default, backward-compatible)
  compact: Strip redundant context-window suffix
  short:   Strip context suffix AND "Claude " prefix

Examples with Bedrock model "Opus 4.6 (1M context)":
  full:    [Opus 4.6 (1M context) | Bedrock]
  compact: [Opus 4.6 | Bedrock]
  short:   [Opus 4.6 | Bedrock]

Examples with API model "Claude Sonnet 3.5 (200k context)":
  full:    [Claude Sonnet 3.5 (200k context)]
  compact: [Claude Sonnet 3.5]
  short:   [Sonnet 3.5]
2026-04-03 06:37:26 +08:00
Zane Wang c12e514465 feat: strip redundant context-window suffix from model display names
Claude Code may include the context window size in display_name
(e.g. "Opus 4.6 (1M context)"), but the HUD already shows context
usage via the context bar — making the parenthetical redundant.

This adds stripContextSuffix() which removes any parenthetical
containing the word "context" from the display name. It handles
common variants like "(1M context)", "(200k context)",
"(with 1M context)", and "(extended context window)" while
preserving non-context parentheticals like "(beta)" or "(preview)".

Before: [Opus 4.6 (1M context) | Bedrock]
After:  [Opus 4.6 | Bedrock]
2026-04-03 06:25:24 +08:00
github-actions[bot] 30e1dfe46a build: compile dist/ [auto] 2026-03-23 04:05:49 +00:00
Jarrod Watts 7e3b1cd284 feat: configurable element colors 2026-03-23 15:05:16 +11:00
Jarrod Watts 7ea243ae88 feat: add configurable element colors 2026-03-23 15:04:40 +11:00
Jarrod Watts 557e563970 docs: collapse Windows runtime install note 2026-03-23 14:52:46 +11:00
Jarrod Watts cb2f07c172 docs: remove stale plan label examples 2026-03-23 14:48:33 +11:00
github-actions[bot] 891cc9baee build: compile dist/ [auto] 2026-03-23 03:47:56 +00:00
Jarrod Watts 3aebe1b973 Simplify usage display to stdin only (#288)
* Simplify usage display to stdin only

* chore: bump version to 0.0.11
2026-03-23 14:47:39 +11:00
Jarrod Watts c449c0ba29 milestone-5: prepare v0.0.10 release
Release / release (push) Has been cancelled
v0.0.10
2026-03-23 13:37:16 +11:00
Jarrod Watts 7c24dbf7d1 docs: refine v0.0.10 changelog 2026-03-23 13:36:51 +11:00
Jarrod Watts fd9a25e35f release v0.0.10: refresh changelog and dist 2026-03-23 13:36:34 +11:00
Jarrod Watts 4482d8d51f milestone-4: clarify proxy vs custom endpoint usage 2026-03-23 13:26:36 +11:00
Jarrod Watts 738a0ce52c milestone-4: refine stdin usage fallback 2026-03-23 13:24:15 +11:00
Jarrod Watts 87cf7a020e milestone-4: prefer stdin rate limits when available 2026-03-23 13:20:24 +11:00
Jarrod Watts 23391b412d milestone-4: fix weekly-only usage rendering 2026-03-23 13:20:16 +11:00
Jarrod Watts 60cf0c65c8 prefer stdin rate limits for usage display 2026-03-23 13:19:14 +11:00
Jarrod Watts 2ac029d035 fix weekly-only usage rendering 2026-03-23 13:17:21 +11:00
Jarrod Watts 837ce37045 milestone-3: add opt-in approximate RAM line 2026-03-23 13:09:02 +11:00
Jarrod Watts b76c7d36da clarify approximate memory hud wording 2026-03-23 13:08:02 +11:00
Jarrod Watts aac2bcf532 milestone-3: avoid caching partial transcript parses 2026-03-23 13:04:46 +11:00
Jarrod Watts 210d274eee restack memory hud as opt-in expanded line 2026-03-23 13:03:45 +11:00
Jarrod Watts ae24fe6ea9 milestone-3: mitigate repeated transcript reparsing 2026-03-23 13:01:10 +11:00
Jarrod Watts c29a55e1dd mitigate transcript reparsing cost 2026-03-23 13:00:41 +11:00
Jarrod Watts 857216b83c milestone-3: add opt-in Claude Code version display 2026-03-23 12:44:48 +11:00
Jarrod Watts 104782a681 milestone-3: support Windows Claude wrapper launch 2026-03-23 12:43:51 +11:00
Jarrod Watts 5ccefae1cd milestone-3: avoid repeated version path scans 2026-03-23 12:40:32 +11:00
Jarrod Watts c3f1a10f4a milestone-3: persist Claude Code version cache 2026-03-23 12:36:52 +11:00
Jarrod Watts 11311be1ea milestone-3: add opt-in Claude Code version display 2026-03-23 12:33:27 +11:00
Jarrod Watts 0c2c68c04a milestone-3: respect explicit TLS override in proxy tunnel 2026-03-23 12:32:17 +11:00
Jarrod Watts 1c694a6f8f fix: respect NODE_TLS_REJECT_UNAUTHORIZED in proxy tunnel 2026-03-23 12:31:39 +11:00
Jarrod Watts 98d67565ca milestone-2: align docs with context mode and config dir support 2026-03-23 12:26:40 +11:00
Jarrod Watts 1273d7d3a3 milestone-2: stop bun setup command from loading project env 2026-03-23 12:20:03 +11:00
Jarrod Watts 6f6ba4c4d4 milestone-2: preserve cached plan names after OAuth refresh 2026-03-23 12:17:34 +11:00
Jarrod Watts ff6f4524ee fix: preserve cached plan names after OAuth refresh 2026-03-23 12:14:38 +11:00
Jarrod Watts 51013bc15b milestone-3: align context percentage docs with stdin 2026-03-23 12:14:22 +11:00
Jarrod Watts 720e331edf docs: align context percentage reference with stdin 2026-03-23 12:14:05 +11:00
Jarrod Watts 9b3e08a9c9 milestone-2: add opt-in combined context display 2026-03-23 12:12:24 +11:00
Jarrod Watts 8a2c435db0 milestone-2: harden setup docs and shell guidance 2026-03-23 12:12:24 +11:00
Jarrod Watts 770fc5ecc5 docs: harden setup guidance for Windows shells 2026-03-23 12:11:22 +11:00
Jarrod Watts bafe095025 feat: add opt-in combined context display mode 2026-03-23 12:10:53 +11:00