Skip to content

fix(renderer): preserve separators after hidden widgets - #525

Merged
sirmalloc merged 4 commits into
sirmalloc:mainfrom
tylergibbs1:fix/separator-lookback
Jul 25, 2026
Merged

sirmalloc merged 4 commits into
sirmalloc:mainfrom
tylergibbs1:fix/separator-lookback

Conversation

@tylergibbs1

Copy link
Copy Markdown
Contributor

Summary

  • Let manual separators look past widgets that rendered empty.
  • Keep an existing visible separator as a hard boundary so the fix(renderer): collapse separators around empty widgets #344 orphan-separator fix remains intact.
  • Replace whitespace-only spacing when a later separator belongs between the surrounding visible widgets.
  • Inherit separator color from the actual preceding visible widget.

Fixes #518

Prepared with Codex assistance and reviewed against the existing separator regression suite.

Tests

  • bun test with 1,811 passing tests
  • bun run lint
  • bun run build

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b7bd61759

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/utils/renderer.ts Resolved
Comment thread src/utils/renderer.ts Resolved
@sirmalloc
sirmalloc merged commit ef521ee into sirmalloc:main Jul 25, 2026
j3r0lin added a commit to j3r0lin/ccstatusline that referenced this pull request Aug 17, 2026
Resolutions worth naming:

- renderer: upstream's sirmalloc#525 fixes the same separator-collapse bug as our
  b037e8b and handles more cases (a visible separator pops the spacing-only
  ones before it, and merge ownership survives an empty neighbour), so our
  resolveEmittedSeparators is dropped in favour of it. Our collapse tests
  pass unchanged against upstream's implementation.
- jsonl-metrics: upstream's compact_boundary handling is ported onto our slim
  transcript cache. SlimTranscriptEntry gains `c` (boundary) and `p`
  (postTokens), the pre-filter keeps boundary rows, and the cache version is
  bumped so existing caches are rebuilt with them.
- usage plumbing: the per-model tables now derive from upstream's
  WEEKLY_MODEL_USAGE_BUCKETS registry; our monthly-pool fields, widgets and
  the weekly-slot promotion are kept alongside. ANTHROPIC_USAGE_FIELDS also
  derives its per-model entries from the registry so an upstream model bucket
  is served rather than filtered out.
- CachedUsageDataSchema declares the monthly fields so the schema stays total
  over UsageData, which keeps UsageDataField indexable.
tahodev pushed a commit to tahodev/ccstatusline that referenced this pull request Oct 20, 2026
* fix(renderer): preserve separators after hidden widgets

* fix(renderer): respect separator ownership boundaries

* fix(renderer): preserve separators after merged widgets

---------

Co-authored-by: Matthew Breedlove <[email protected]>
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.

Bug: Separators only look back one widget when determining what to show, skipping no-render widgets

2 participants