Skip to content

feat(native-chat): add a message rail for jumping between your prompts - #20719

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/native-chat-message-rail
Sep 15, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/native-chat-message-rail

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​824 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​824
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​568 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​564

What

A message rail down the right edge of the native chat transcript: one bar per user message, with the bar for the turn you're reading highlighted once scrolling settles. Hovering the rail opens a panel that previews every prompt and jumps to it on click.

Bars are capped at 20 and sampled evenly across the thread, always keeping both ends and the active bar, so the rail stays readable at a glance instead of overflowing the viewport or shrinking to sub-pixel on a long conversation. The hover panel still lists every prompt.

Why these mechanisms

Active bar is read from virtualizer offsets, not from rendered rows. The obvious implementation scans the DOM for the visible row. That does not work here: this transcript is windowed, so an off-window row has no element to measure. Virtual item start/end are already in the scroll container's own pixel space — rows render at item.start - scrollMargin inside a sizer sitting scrollMargin down — which also makes the comparison correct under the transcript's zoom, where a bounding rect would be off by exactly the zoom factor.

The fold resolves through turnKey. Most of a transcript is agent reply, so asking "which user row is on screen" leaves the rail dark for the entire length of a long answer. Every row carries turnKey, the id of the user message that opened its turn, so the row at the scroll fold resolves to the prompt that owns it and your own message stays lit while you read the reply to it.

Jumps reuse the existing reveal/pin path, ending in scrollMessageToTop rather than driving the virtualizer directly. That is what clears stuckToBottomRef; without it the bottom-pin layout effect re-fires on the next itemCount/isWorking change and snaps the reader straight back down mid-stream. No second scroll mechanism was added, and native-chat-pinned-rows.ts needed no change.

The rail overlays the transcript without being inside it, so it forwards wheel events to the scroller — otherwise parking the cursor at the right edge would silently stop scrolling.

Known limitations

  • Ticks cover loaded history only. While hasMore is true, prompts older than the loaded page get no bar; they appear as "Load earlier messages" pages them in. Backing the rail with a server-side conversation outline would fix this and is deliberately not in this PR.
  • The hover panel does not auto-scroll to the active row yet.
  • The rail hides below 3 user messages and below a 512px transcript width, so it does not half-work in a narrow split.

Verification

  • Unit (vitest): 18 new tests across tick sampling, preview building, and active-bar resolution. Full native-chat suite green — 142 files / 1472 tests. Typecheck clean; changed-code quality gate clean.
  • Ablations, to show the new tests actually bite rather than passing vacuously:
    • breaking the fold→turnKey mapping fails exactly the two tests that depend on it (u1 → u2);
    • breaking the bottom bias fails exactly one (u9 → u7).
  • Rendered proof: a headless e2e spec seeds a real 30-turn provider transcript, renders the chat, and asserts the rail — ticks=20 panelRows=30, confirming the sampling cap and that the panel lists every prompt. Screenshots captured show the bottom bar correctly highlighted while pinned to the latest turn, and the hover panel listing the user messages.

Note that the e2e spec is visual/behavioural proof, not a merge gate — the guards for this feature are the vitest units, which run in the required lane.

Scope

New: rail item building + sampling, active-item resolution, the rail hook, the rail component, two unit test files, one e2e spec. Modified: NativeChatMessageList.tsx (mounting and jump wiring) and en.json (three new keys). No max-lines suppressions; every touched file is comfortably within budget.

A vertical rail down the right edge of the transcript, one bar per user
message, with the bar for the turn you are reading highlighted once
scrolling settles. Hovering the rail opens a panel that previews every
prompt and jumps to it on click.

Bars are capped at 20 and sampled evenly across the thread, always
keeping both ends and the active bar, so the rail stays readable at a
glance on a long conversation.

The active bar is resolved from virtualizer offsets rather than by
scanning rendered rows: the transcript is windowed, so an off-window row
has no element to measure. The row at the scroll fold resolves to its
owning prompt through turnKey, which is what keeps your own message lit
while you read a long reply instead of going dark.

Jumps reuse the existing reveal/pin path and scrollMessageToTop, which
releases the bottom pin. Scrolling through the virtualizer directly would
leave a reader snapped back down by the next streamed token.

Ticks cover loaded history only; older prompts gain a bar once "Load
earlier messages" pages them in.
@coderabbitai

coderabbitai Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 9a53d14b-dc6e-49bc-9601-be388bbf061b

📥 Commits

Reviewing files that changed from the base of the PR and between 4cd8145 and f63436b.

📒 Files selected for processing (9)
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRail.test.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRail.tsx
  • src/renderer/src/components/native-chat/native-chat-message-rail-items.test.ts
  • src/renderer/src/components/native-chat/native-chat-message-rail-items.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-rail.test.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-rail.ts
  • tests/e2e/native-chat-message-rail.spec.ts
💤 Files with no reviewable changes (1)
  • src/renderer/src/components/native-chat/use-native-chat-message-rail.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/renderer/src/components/native-chat/NativeChatMessageList.windowing.test.tsx
  • tests/e2e/native-chat-message-rail.spec.ts
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The change adds a native chat message rail with user-message ticks, interactive popover previews, active-tick tracking, and a 20-tick sampling cap. Rail visibility depends on transcript size and container width. Active state updates after scrolling settles. Selecting a message mounts its virtualized row and scrolls it to the top once. Rail jumps replace diff reveal requests. Unit and end-to-end tests cover item building, sampling, active selection, accessibility, rendering, and navigation.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to f6343

The message rail’s forwarded wheel behavior does not introduce duplicate or unintended scrolling in the rendered layout. No actionable merge risk remains.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description clearly explains the feature, rationale, scope, limitations, and verification. However, it omits required template content, including the Linked Issue section, the required Visual Proo… Add a Fixes #<issue> reference, provide before-and-after screenshots or videos for the UI change, complete the Testing section with manual-test status and tested platforms, disclose AI usage when applicable, complete the Review, Agent ski…
Docstring Coverage ⚠️ Warning Docstring coverage is 21.05% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 11 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding a native chat message rail for jumping between user prompts.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly explains the feature, rationale, scope, limitations, and verification. However, it omits required template content, including the Linked Issue section, the required Visual Proof attachments or exact N/A statement, the Testing checklist and platforms, and the remaining checklist and review sections.

Resolution

Add a Fixes #&lt;issue&gt; reference, provide before-and-after screenshots or videos for the UI change, complete the Testing section with manual-test status and tested platforms, disclose AI usage when applicable, complete the Review, Agent skill upstream boundary, Notes, and Checklist sections, and include the required ELI5 section.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 2497bafa-14e6-455d-bda0-cfefdd9599d0

📥 Commits

Reviewing files that changed from the base of the PR and between 4a02762 and 67f71c4.

📒 Files selected for processing (9)
  • src/renderer/src/components/native-chat/NativeChatMessageList.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRail.tsx
  • src/renderer/src/components/native-chat/native-chat-active-rail-item.test.ts
  • src/renderer/src/components/native-chat/native-chat-active-rail-item.ts
  • src/renderer/src/components/native-chat/native-chat-message-rail-items.test.ts
  • src/renderer/src/components/native-chat/native-chat-message-rail-items.ts
  • src/renderer/src/components/native-chat/use-native-chat-message-rail.ts
  • src/renderer/src/i18n/locales/en.json
  • tests/e2e/native-chat-message-rail.spec.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

A rail jump re-arms its scroll effect on every render, so once you jump, the transcript is repeatedly pulled back to the jumped message and the reader cannot scroll away from it. Two related railJump lifecycle issues and a loose e2e assertion below.

Reviewed changes

  • Rail tick build + sampling (native-chat-message-rail-items.ts) — one entry per user slot, capped at 20 and evenly sampled while always keeping both ends and the active tick.
  • Active tick resolution (native-chat-active-rail-item.ts) — computes the row at the scroll fold from virtualizer offsets, resolved through turnKey with a bottom bias, so the owning prompt stays lit through a long reply.
  • Rail hook (use-native-chat-message-rail.ts) — debounced active-id recompute on scroll settle plus a ResizeObserver width gate (min 512px).
  • Rail component (NativeChatMessageRail.tsx) — hover-card trigger with ticks, a preview panel that lists every prompt, and wheel forwarding to the scroller.
  • List wiring (NativeChatMessageList.tsx) — railJump state, revealIndex shared with revealedDiff, and a useLayoutEffect that scrolls the target row to top via scrollMessageToTop.
  • Tests — 18 vitest units over the pure logic, plus a headless e2e spec that renders a seeded 30-turn transcript (visual proof, explicitly not a gate).

ℹ️ The jump lifecycle has no automated regression test

Every new test targets the pure helpers (buildNativeChatRailItems, selectNativeChatRailTicks, findActiveNativeChatRailItem); nothing exercises what happens after a jump. The e2e spec only asserts tick and panel counts, so the effect that drives the scroll — which is where the two findings above live — is unpinned by any test. A unit/integration test that selects a rail item and then mutates slots the way a streaming update does, asserting scrollMessageToTop is not re-invoked, would have caught the re-scroll loop.

Technical details
# No coverage for the rail-jump effect

## Affected sites
- `src/renderer/src/components/native-chat/native-chat-active-rail-item.test.ts` — pure helper only
- `src/renderer/src/components/native-chat/native-chat-message-rail-items.test.ts` — pure helpers only
- `src/renderer/src/components/native-chat/NativeChatMessageList.tsx:229-238` — the effect under test does not exist in any test
- `tests/e2e/native-chat-message-rail.spec.ts` — asserts counts, never post-jump scroll behavior

## Required outcome
A regression test that fails if `scrollMessageToTop` is re-issued while `railJump` is unchanged (e.g. after an unrelated `slots` update).

ℹ️ Nitpicks

  • NativeChatRailItem.slotIndex is computed on every item and documented as the reason items are built from slots, but nothing in production reads it — the jump re-derives the index with nativeChatSlotIndexOf. Either consume it or drop it.
  • The rail trigger is a non-focusable div whose ticks are aria-hidden, and aria-label on a role-less div is not exposed to assistive tech, so the panel is unreachable without a pointer. Consider a role + tabIndex or a keyboard affordance.
  • onWheel forwards only deltaY, quietly dropping horizontal/shift-wheel deltas.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

The rail borrowed the diff reveal's pin to reach a row the window had left
behind, but copied only its state shape, not its consumption. The request
was never cleared and the effect depended on `slots`, which is rebuilt on
every render, so three things went wrong at once:

- every later render re-scrolled to the jumped message, dragging a reader
  back there for the rest of the pane's life, and forcing the bottom pin
  off each time;
- the standing request outranked `revealedDiff` in the shared pin, so
  revealing a diff outside the window silently stopped mounting its row;
- the pinned row stayed mounted and measured indefinitely.

The request now carries a monotonic id, is serviced once, and is released
as soon as the scroll is issued, which hands the pin back.

The rail's scroll listener had the same churn: it listed `items` in its
deps, so a streaming turn tore the listener down and cancelled the pending
idle timer on every frame and the highlight never settled. It now
subscribes once and re-reads on a key built from the prompt ids.

Also: the hover trigger is a real button, because `asChild` discards the
primitive's focusable trigger and the panel is the only way to reach these
messages; the wheel forwarder honours line and page delta modes rather
than treating every delta as pixels; and the e2e panel assertion is exact,
since a loose bound passed at 20 rows against 20 ticks.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

A raw NUL byte landed in use-native-chat-message-rail.ts, which makes git and GitHub treat the whole file as binary — it renders as "Binary file not shown" in this PR and every future diff. The jump-lifecycle fixes themselves are correct and the prior findings are resolved.

Reviewed changes

  • Serviced the rail jump once per request (railJumpSeqRef + servicedRailJumpRef) and released the pin with setRailJump(null), so the layout effect stops re-scrolling on re-render and a later diff reveal is no longer shadowed.
  • Added the jumping to a message from the rail windowing tests pinning single-scroll and pin-release behavior.
  • Made the rail trigger a real type="button" and scaled wheel deltas by deltaMode (line / page / pixel).
  • Added use-native-chat-message-rail.test.ts asserting the scroll listener subscribes once across slot-identity churn, plus an itemsKey effect so a grown transcript still re-reads.
  • Tightened the e2e panel assertion to an exact TRANSCRIPT_ROWS / 2.

️ A raw NUL byte makes use-native-chat-message-rail.ts a binary file

The new itemsKey line writes an actual 0x00 character inside the string literal instead of the two-character escape \0. Git classifies any file with a NUL in its first 8000 bytes as binary, so this 4.4KB production file is now invisible in diffs — GitHub reports hasPatch: false for it, and this PR's own rendered diff and range-diff both drop it. The code still compiles and tests pass, so nothing breaks at runtime, but the file (and every future change to it) can no longer be reviewed or found by rg/git grep, which is a durable regression for the repo.

Technical details
# Raw NUL byte in a source file

## Affected sites
- `src/renderer/src/components/native-chat/use-native-chat-message-rail.ts:48` — the `join(...)` separator is a literal NUL byte (0x00), not the escape `'\0'`. The intended code is `items.map((item) => item.id).join('\0')`.
- GitHub `GET /repos/stablyai/orca/pulls/20719/files` returns `"hasPatch": false, "additions": 0, "deletions": 0` for this file, i.e. no reviewable patch.
- Previous commit `67f71c4d5e` has no NUL; the byte was introduced by `4cd814531d`.

## Required outcome
The hook remains valid TypeScript and keeps joining ids with a NUL separator, but the source is text again: use the escape `'\0'` (or `'\u0000'`) so git/GitHub can diff the file.

## Suggested approach
Replace the literal byte at line 48 with the escape sequence. A quick guard is `file src/renderer/src/components/native-chat/use-native-chat-message-rail.ts` — it should report `ASCII text`/`Unicode text`, not `data`.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ No new issues found.

Reviewed changes — incremental delta since the prior pullfrog review (4cd8145).

  • Unified navigation state (NativeChatMessageList.tsx) — diff reveal and rail jump now share one navigationRequest driven by a monotonic navigationSequence, so a rail jump supersedes a pending diff reveal instead of the two ordering each other permanently.
  • Rail made keyboard-accessible (NativeChatMessageRail.tsx) — the HoverCard trigger became a focus-managed Popover: hover opens without stealing focus, activation (click or Enter) moves focus into the prompt picker, and close restores it to the trigger.
  • Preview/identity caching (native-chat-message-rail-items.ts, use-native-chat-message-rail.ts) — previews are memoized in a WeakMap keyed by message.blocks, and unchanged item/array identities are reused, cutting per-render derivation during streaming.
  • Removed the raw NUL byte from use-native-chat-message-rail.ts, restoring it to a text file that git and GitHub can diff (the prior run's finding).
  • Tests — added rail interaction tests (keyboard open/jump/focus-return, hover preserves transcript focus, wheel delta modes), hook lifecycle tests, an items invalidation test, a windowing supersede test, and an e2e assertion that a jump does not follow later streamed output.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Native-chat message rail QA (uncropped full-app screenshots from the checked-out branch):

01-initial-rail.png

Initial rail — seeded 30-prompt transcript with uneven assistant heights. The rail shows sampled ticks (capped at 20), with the latest prompt highlighted while the transcript is pinned near the bottom.

02-hover-picker.png

Hover picker — pointer hover on the rail opens a readable prompt list of every user message (not just sampled ticks) without taking focus from the composer.

03-interactive-picker.png

Interactive picker — keyboard activation from the rail trigger opens the picker; Tab reaches prompt buttons (Question 2 focused with a visible ring).

04-post-jump-streaming.png

Post-jump / streaming — selecting off-window Question 5 aligns that prompt to the transcript viewport top via the real scroll owner. The active tick moved off the last bar, and Jump to latest is visible after later assistant output was appended, so the view did not snap back to the bottom.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Review status: PASS WITH RISK

The native-chat message rail review is clean after three focused review/fix rounds. The pushed commits fix:

  • Keyboard-inaccessible prompt actions by using the interactive focus-managed picker while preserving hover previews and composer focus.
  • Repeated full-history preview work during streamed renders, with immutable preview caching and stable rail/item identity.
  • The binary NUL identity key in the rail hook.
  • Competing diff-reveal and rail-jump scroll requests that could replay an older scroll after a newer user action.

Validation completed:

  • 41 focused rail/windowing tests passed.
  • Closing readiness audit: 1,485 tests passed across 144 files; functional correctness, architecture, performance, compatibility, and scope all passed.
  • Web typecheck and changed-code quality passed with zero new findings.
  • Hidden Electron/CDP QA passed against the checked-out Orca branch: identity verified, hover focus preservation, keyboard Tab/Enter/Escape, off-window jump aligned at 0 px, active tick updated, wheel forwarding worked, and three streamed appends preserved alignment without snapback.
  • Focused Electron e2e passed: 1 test in 19.3s (ticks=20, panelRows=30).
  • Screenshot evidence: feat(native-chat): add a message rail for jumping between your prompts #20719 (comment)
  • Worktree is clean; the tooling-only pnpm-lock.yaml change is excluded from the branch.

CI status: package, Windows package, typecheck, all test shards, changed e2e specs, and Pullfrog pass. The repository static-analysis job fails on annotations outside this PR’s changed paths (.github workflow exit handling and an existing mobile mutant-test conditional); the required verify job fails only because of that static-analysis result. No rail-specific blocker was found, and fixing those unrelated annotations would expand this PR’s scope.

Recommendation: land after the unrelated repository static-analysis failure is resolved or explicitly waived.

@brennanb2025
brennanb2025 merged commit 438603f into main Sep 15, 2026
32 of 34 checks passed
nwparker added a commit that referenced this pull request Sep 15, 2026
…20773)

#20719 grew NativeChatMessageList.windowing.test.tsx to 897 effective lines,
past the 800 ceiling for test files, so oxlint fails on main.

Moves the shared layout/ResizeObserver stubs into
native-chat-windowing-test-harness.tsx. No test was changed, split or dropped:
still 5 describes and 23 it() blocks, 29 assertions passing. The stubs' mutable
knobs become one exported `layout` object because an imported binding cannot be
reassigned across modules.

AGENTS.md forbids a max-lines disable, so extraction is the fix.
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
stablyai#20719)

* feat(native-chat): add a message rail for jumping between your prompts

A vertical rail down the right edge of the transcript, one bar per user
message, with the bar for the turn you are reading highlighted once
scrolling settles. Hovering the rail opens a panel that previews every
prompt and jumps to it on click.

Bars are capped at 20 and sampled evenly across the thread, always
keeping both ends and the active bar, so the rail stays readable at a
glance on a long conversation.

The active bar is resolved from virtualizer offsets rather than by
scanning rendered rows: the transcript is windowed, so an off-window row
has no element to measure. The row at the scroll fold resolves to its
owning prompt through turnKey, which is what keeps your own message lit
while you read a long reply instead of going dark.

Jumps reuse the existing reveal/pin path and scrollMessageToTop, which
releases the bottom pin. Scrolling through the virtualizer directly would
leave a reader snapped back down by the next streamed token.

Ticks cover loaded history only; older prompts gain a bar once "Load
earlier messages" pages them in.

* fix(native-chat): service a rail jump once and give its pin back

The rail borrowed the diff reveal's pin to reach a row the window had left
behind, but copied only its state shape, not its consumption. The request
was never cleared and the effect depended on `slots`, which is rebuilt on
every render, so three things went wrong at once:

- every later render re-scrolled to the jumped message, dragging a reader
  back there for the rest of the pane's life, and forcing the bottom pin
  off each time;
- the standing request outranked `revealedDiff` in the shared pin, so
  revealing a diff outside the window silently stopped mounting its row;
- the pinned row stayed mounted and measured indefinitely.

The request now carries a monotonic id, is serviced once, and is released
as soon as the scroll is issued, which hands the pin back.

The rail's scroll listener had the same churn: it listed `items` in its
deps, so a streaming turn tore the listener down and cancelled the pending
idle timer on every frame and the highlight never settled. It now
subscribes once and re-reads on a key built from the prompt ids.

Also: the hover trigger is a real button, because `asChild` discards the
primitive's focusable trigger and the panel is the only way to reach these
messages; the wheel forwarder honours line and page delta modes rather
than treating every delta as pixels; and the e2e panel assertion is exact,
since a loose bound passed at 20 rows against 20 ticks.

* fix(native-chat): make prompt rail accessible and reuse previews

* fix(native-chat): supersede prior navigation when selecting a prompt
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…tablyai#20773)

stablyai#20719 grew NativeChatMessageList.windowing.test.tsx to 897 effective lines,
past the 800 ceiling for test files, so oxlint fails on main.

Moves the shared layout/ResizeObserver stubs into
native-chat-windowing-test-harness.tsx. No test was changed, split or dropped:
still 5 describes and 23 it() blocks, 29 assertions passing. The stubs' mutable
knobs become one exported `layout` object because an imported binding cannot be
reassigned across modules.

AGENTS.md forbids a max-lines disable, so extraction is the fix.
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