Skip to content

v1.1.0

Choose a tag to compare

@CxMYu CxMYu released this 06 Jul 09:25
· 8 commits to main since this release

Cold-start latency + background refresh overhaul.

  • Cut cold-start first-paint latency: git and version background refreshes now queue during rendering and are flushed after stdout as a single detached helper process (dist/runtime/bg.js), instead of spawning one node -e child per segment.
  • Windows: the helper is launched through a cmd start /b trampoline (~17ms to initiate vs ~80-110ms for node.exe), so the status-line process exits without paying node's process-creation cost. Measured cold start (git + version both stale) improved ~360ms -> ~235ms TTFB (p50) and ~475ms -> ~290ms on the process-exit lower bound.
  • The background helper opportunistically prunes the cache (at most once per day): 30-day-stale cache json and 1h-stale .refresh/.tmp/task-file leftovers.
  • Tests and the latency benchmark isolate CLAUDE_CONFIG_DIR to a temp directory, so throwaway repos no longer leave dead cache entries in the real ~/.claude/ccglance/.
  • Add npm run preview; README documents that pointing command at dist/cli.js avoids the npm .cmd shim overhead on Windows.

Published to npm as @cxmyu/ccglance@1.1.0 by CI (with provenance).