Skip to content

fix(ui): notification cards lift only for the chat input they would cover - #37157

Merged
brennanb2025 merged 4 commits into
mainfrom
brennanb2025/notification-card-visible-composer
Nov 1, 2026
Merged

brennanb2025 merged 4 commits into
mainfrom
brennanb2025/notification-card-visible-composer

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​53 $\color{#cf222e}{\Huge{\mathbf{−}}}$​6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​47
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10

ELI5

With the right sidebar open, the bottom-right cards (Downloading Update, Update Available, the star prompt and so on) floated noticeably above the bottom of the window, over the sidebar, even though nothing was under them. They were dodging the chat input, but the chat input wasn't anywhere near them. Now they only move up when they would actually cover the input box.

What Changed

  • Before: while a chat was open, the cards rose whenever the chat pane reached under their column, even when only the empty strip beside the input reached there. With the right sidebar open, the pane's right edge reaches about 40px into the cards' column, so the cards lifted over the sidebar while the input sat far to the left.
  • After: the cards rise only when the input column you see, which holds the input box and the notices above it, reaches under them. With the sidebar closed on a narrow window the input still reaches the corner, so the cards still clear Send and Stop as before.
  • Mechanism: the lift registered the composer's full-width wrapper. Registration now lives in NativeChatComposerField, which owns both elements. It measures the centred, width-capped input column and re-measures when either the column or the full-width strip around it resizes. The strip covers sidebar toggles: on a wide window the centred column keeps its width when a sidebar opens or closes, so only the strip resizes. The column covers the chat width setting (Comfortable, Wide, Full): there only the column resizes. Inline edit composers still don't register.

Why

The overlap check used the wrong element. Measuring the box the user sees is the direct fix. Watching both the strip and the column for resizes keeps the cards up to date on sidebar toggles and chat width changes without adding listeners.

Linked Issue

Follow-up to #36233.

Visual Proof

Dev build of this branch on a Mac, with a Downloading Update card showing over an empty Claude chat.

Wide window, right sidebar open: the cards rest at the bottom over the sidebar. The input is far to the left, so nothing moves.

(screenshot removed: contained real product data)

Narrow window (1024 × 768), right sidebar closed: the input reaches the corner, so the cards still lift clear of it and of Send.

(screenshot removed: contained real product data)

Chat width switched to Full while the chat stays on screen. Without the column re-measure (left), the card stays down over the input's right edge and a sliver of Send. With it (right), the cards lift.

Without the column re-measure This PR
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

Testing

  • Automated tests added/updated: NotificationCardStack.test.tsx adds a chat pane that reaches under the cards with its centred input column clear of them, and checks the cards don't lift. That case fails when the full-width pane is measured. A second test widens only the input column under the cards and narrows it back, and checks the cards lift and settle; it fails without the column re-measure.
  • Screenshot run of this branch on a Mac dev build: wide and narrow windows, right sidebar open and closed, and the chat width setting changed both from Settings and with the chat on screen. In each case the cards cleared the input, Send included, and lifted only when the input reached under them.

Risk

Only where the bottom-right cards and the toasts above them sit while a chat is open changes. The riskiest part: if the input column were measured wrong, the cards could cover Send and Stop again with the sidebar closed. The existing lift tests and QA cover that. No saved data, IPC or paired-client change. A plain revert backs it out.

Level: Low

Review

Review path: light.

  1. Small: 3 production files, about 40 changed production lines.
  2. Outside the risky areas: renderer layout only. No saved data, ordering, IPC or wire, process, auth or default change.
  3. Not a repeat: the lift was added 3 days ago in fix(ui): notification cards lift above a chat composer they would cover #36233 (cards covered Send and Stop). This is a different symptom (cards lift when they cover nothing). No revert or incident on these files.
  4. Local effect: where one overlay sits. The overlap check's measured element changes; nothing else does.

Plan: measure the centred input column instead of the full-width wrapper. Keep observing the full-width strip for resizes, so a sidebar toggle still re-measures. Register from the field, which renders both elements.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason

…over

The lift measured the composer's full-width wrapper, so with the right
sidebar open the update card rose above an input it never covered. Measure
the centred input column instead, and keep observing the full-width strip so
a sidebar toggle that moves the column still re-measures.
…n resizes

Changing the chat width setting resizes the centred input column while its
full-width pane keeps its size, so the cards could stay over Send and Stop
or stay lifted for nothing. Observe the measured column as well as the pane.
@brennanb2025
brennanb2025 marked this pull request as ready for review November 1, 2026 21:33
@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 2 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a5802d96-7cf4-4d27-b717-d8b4787a1ed4
Commits

Reviewing files that changed from the base of the PR and between 0a38c9f and 3c94a19.

Files selected for processing: 4
  • src/renderer/src/components/NotificationCardStack.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerPane.tsx
  • src/renderer/src/lib/notification-card-composer-clearance.ts

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 129e84b8-ccf5-4907-9973-f3bb9e40c28b
Commits

Reviewing files that changed from the base of the PR and between d1665d1 and 0a38c9f.

Files selected for processing: 4
  • src/renderer/src/components/NotificationCardStack.test.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerField.tsx
  • src/renderer/src/components/native-chat/NativeChatComposerPane.tsx
  • src/renderer/src/lib/notification-card-composer-clearance.ts
Files with no reviewable changes: 1
  • src/renderer/src/components/native-chat/NativeChatComposerPane.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

Walkthrough

The clearance hook now accepts separate pane and column refs. It observes both elements and registers them when enabled and both refs are available. The native chat composer supplies these refs when no edit session is active. Tests cover a centered column that does not overlap the cards and clearance updates when only the column width changes.

Merge Risk: Minimal · previous review 0a38c

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: notification cards lift only when they would cover the chat input.
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.
Description check Passed The pull request description is mostly complete. It includes the ELI5 summary, user-facing changes, mechanism, rationale, linked issue reference, visual proof, testing details, risk assessment, rollba…
Full details: Description check

Explanation

The pull request description is mostly complete. It includes the ELI5 summary, user-facing changes, mechanism, rationale, linked issue reference, visual proof, testing details, risk assessment, rollback plan, scope review, and focused-change checklist. Minor template gaps remain: the manual-testing checkbox and several final checklist items are not marked, and the linked issue is described as a follow-up rather than using the requested Fixes # format.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 3 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@brennanb2025

brennanb2025 commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Review loop status

The problem. With the right sidebar open, the bottom-right cards (Downloading Update, Update Available, the star prompt and so on) floated well above the bottom of the window, over the sidebar, while a chat was open. They were dodging the chat input, but the input was far away. The clearance added in #36233 measured the composer's full-width strip, which reaches about 40 px into the cards' column, instead of the input box the user sees.

What changes for users. The cards now move up only when the chat input would actually sit under them. With the sidebar closed on a narrow window the input still reaches the corner, so the cards still clear Send and Stop as before.

Review (light path). One adversarial reviewer confirmed the light-path classification and found one problem, now fixed:

  • The cards re-measured only when the full-width strip resized. Changing Settings > Chat > Width resizes only the input column, so with the chat on screen the cards could stay down over Send (or stay lifted for nothing) until some other layout change. Fixed in 0a38c9f: both the strip and the column are watched, with a regression test that fails without it. The reviewer agreed with the fix and found nothing new.
  • Reference comparison: neither common pattern measures a composer (they use a fixed top-right corner, or bottom-right on desktop and top-centre on narrow screens). The difference is intended: this PR keeps the adaptive clearance fix(ui): notification cards lift above a chat composer they would cover #36233 shipped, which a fixed corner can't give across Orca's split chats. No new controls or copy.

Verified. CI green on the current head 3c94a19, which is the QA'd commit 0a38c9f plus a main merge (05c98ff, clean, touches none of this PR's files) and one test-only commit (3c94a19: main's new type-assertion check flagged a cast in this PR's test helper; the helper now throws if the element is missing, and the reviewer confirmed the test still covers the same case). A screenshot run of a dev build on the M4Air (Codex driving over CDP, no agents under test):

  • Wide window, sidebar open: cards rest at the bottom, not lifted (the bug's case).
  • Wide window, sidebar closed, where the centred input reaches under the cards: they lift clear.
  • 1024 × 768, sidebar closed: cards lift; a click test at Send's centre lands in the input, not the card.
  • 1024 × 768, sidebar opened and closed again: the cards re-measure each time and never cover the input.
  • Chat width Full, then back to the default, both from Settings and with the chat on screen: the cards lift, then settle. A control run of the earlier commit showed the with-chat-on-screen case failing (card 3 px over Send), so this run tells the two apart.

Not verified. The Stop button wasn't on screen (no message was sent). It sits where Send does, so the same spacing applies. Still screenshots can't rule out a one-frame flicker during a sidebar toggle; none was seen.

Deferred / noticed, not from this PR (on main):

  • At 1024 px with the sidebar closed, the floating workspace layout button partly covers the chat input's top-right corner just above Send (visible in the narrow screenshot).
  • When the input overlaps the cards by only a few pixels (sidebar open at 1024 px, or Full width with the sidebar open), the whole stack lifts about 136 px, which can look too high for so small an overlap. It's correct (Send would otherwise be under the card's edge), and it's how fix(ui): notification cards lift above a chat composer they would cover #36233's lift works.

For Brennan's review

Wide, sidebar open (the bug) Narrow, sidebar closed
(screenshot removed: contained real product data) (screenshot removed: contained real product data)
Width Full, without the column re-measure Width Full, this PR
(screenshot removed: contained real product data) (screenshot removed: contained real product data)

Where judgment matters:

@brennanb2025
brennanb2025 merged commit 1bb15d1 into main Nov 1, 2026
42 checks passed
@brennanb2025
brennanb2025 deleted the brennanb2025/notification-card-visible-composer branch November 1, 2026 23:57
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