Skip to content

code-status-bar: keep context visible, pin engine, add reset/cache/usable fields - #4

Merged
AllenBW merged 1 commit into
mainfrom
code-status-bar/context-reliability
Oct 17, 2026
Merged

AllenBW merged 1 commit into
mainfrom
code-status-bar/context-reliability

Conversation

@AllenBW

@AllenBW AllenBW commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Why

The context-window bar intermittently disappeared. Three causes, all reproduced:

  1. Truncation. ccstatusline cuts overflowing lines from the right, and the context bar sat at the end of line 1. Below ~185 columns its numbers were cut; below ~120 it vanished entirely.
  2. npx -y ccstatusline@latest queried the npm registry on every render (~1s). With the registry unreachable it hung ~70s with no output, so the whole bar went blank.
  3. Orca replaces statusLine with its own hook, which prints nothing.

What changed

  • Context bar now leads line 1; workspace/git fields moved after the flex separator.
  • install.sh pins ccstatusline 2.2.32 into ~/.config/ccstatusline/engine; new scripts/statusline.sh runs it with no network on the render path (0.4s per render) and forwards the payload to Orca's hook when present.
  • Configs migrated to ccstatusline's v4 schema (hide flags).
  • New fields: session reset clock time, % of usable context before auto-compaction, prompt-cache countdown (1h TTL), weekday on the weekly reset.
  • README updated, including a note on upstream #740 (keychain reads) affecting the default variant.

Tests

npm test in code-status-bar: 12/12 pass. New test/config.test.cjs fails 4/5 against the old configs.

🤖 Generated with Claude Code

…able fields

Fixes the context bar intermittently disappearing:
- Context bar now leads line 1. ccstatusline truncates overflowing lines from
  the right, so at the end of the line it vanished in panes under ~185 cols.
- Pin ccstatusline 2.2.32 into ~/.config/ccstatusline/engine and run it via
  scripts/statusline.sh. `npx -y ccstatusline@latest` hit the npm registry on
  every render (~1s) and hung ~70s with no output when it was unreachable.
- statusline.sh forwards the payload to Orca's hook when present, so Orca no
  longer has to replace the status line.
- Configs migrated to ccstatusline's v4 schema (hide flags).

New fields: session reset clock time, % of usable context before
auto-compaction, prompt-cache countdown (1h TTL), weekday on weekly reset.
Adds tests for the layout, schema, and wrapper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AllenBW
AllenBW merged commit d65caf5 into main Oct 17, 2026
1 check passed
@AllenBW
AllenBW deleted the code-status-bar/context-reliability branch October 17, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant