Skip to content

test(status-bar): cover re-probing a roomier density level - #23793

Merged
AmethystLiang merged 1 commit into
mainfrom
fix-status-bar-density-reprobe-test
Sep 29, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
fix-status-bar-density-reprobe-test

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11
Prod 0 0 0 0

ELI5

We fixed a bug where the status bar stayed cramped after its contents shrank. This adds a test that locks that fix in.

What Changed

Test-only. Adds a case to status-bar-density.test.ts: when the tightest level re-measures and its fit moves, a roomier level is re-probed and chosen again if it now fits. No user-visible change.

Why

The earlier fix (#23773) had no test for this exact sequence, so a regression would go unnoticed.

Linked Issue

Follow-up to #23773.

Visual Proof

N/A — test-only change.

Testing

  • Automated tests added/updated, or explained why not below

Notes

No runtime code touched, so no security, cross-platform, SSH, or mobile impact.

@AmethystLiang
AmethystLiang merged commit 18bd9cb into main Sep 29, 2026
4 of 6 checks passed
@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Low risk] Adds test coverage for status bar density logic.

The test-only change appears safe to merge.

Summary

Adds a regression test for returning from the tightest status-bar density to a roomier level after a fit change. No runtime code changes.

Reviews (1) · Last reviewed commit: "test(status-bar): cover re-probing a roo..."

brennanb2025 added a commit that referenced this pull request Sep 29, 2026
…3700, #22943, #23720, #23793, #23776, #23796) into #23059

#23573 (keep a turn's bar on the prompt that opened it) is ported onto the
turn-record membership instead of kept as a second owner lookup:
- The running turn's bar comes from nativeChatTurnMembership, which now
  returns barTurnKey beside liveTurnKey. Where the host states each row's
  turn they are the same key: the running root turn's anchor, and a
  message handed over mid-turn is already scoped to that turn. Where the
  host states no scope, rows still group by position, so barTurnKey is the
  user entry the running record names (through the same anchors) while
  liveTurnKey keeps the positional live group, as #23573 kept row liveness
  on the newest prompt.
- activeTurnOpenedBy, selectStructuredAgentTurnBars' openedBy and
  selectNativeChatActiveTurnKey are removed; the desktop list, the slot
  builder and both turn-status hooks read barTurnKey.
- The queued-send clock (queuedUntil: a turn counts from the previous
  turn's end when its send waited behind it) is kept, read in the same
  one-pass walk over root turn records that keys timing by anchor.
- Its tests are adapted to pass a journal: each runs on a host that
  states no scope (the original expectations), and the desktop and mobile
  bar tests also run on a scoped host.

#23621 (a message Claude folds into its running turn no longer splits the
turn) is host-only and merged as is: the translator contract carries both
openTurnInLiveProviderCycle and #23059's command-turn members.

Both sides grew the Claude translator past its line budget, so its result
branch moves unchanged into claude-result-journaling.ts, beside
claude-message-journaling.ts (the pre-commit lint refuses the merge
without it).

#23801's Codex child path (no error-driven end) and #23059's Codex /compact
guard (a command turn ends only on turn/completed) both stand.
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