Skip to content

Keep the window level after an Enter-chat error - #1097

Merged
Birfy merged 1 commit into
mainfrom
cursor/face-room-layout-clip-0518
Oct 25, 2026
Merged

Birfy merged 1 commit into
mainfrom
cursor/face-room-layout-clip-0518

Conversation

@Birfy

@Birfy Birfy commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Written-by: Dev
Owner: Dev
Reviewer: Reviewer

Fixes #1086

What changed

Dismissing the Enter-chat error and typing in the room composer left the B window scrolled sideways until reload. The page, the conversation column, and the app frame now use overflow-x:clip (overflow:hidden still honors scrollLeft). Focusing or typing in the composer puts a leftover scrollLeft back on the page and on the composer's ancestors, twice across frames. The error toast is centered with auto margins, so its box stays inside the viewport.

#1085 is the Internal error itself. Enter chat already catches that failure into the room, and the string is not a client throw, so this pull request does not close #1085. It hardens the shell so that dialog or toast cannot leave the window clipped.

The shell-level test is stored whole in patches/ds-bot/files/test/shell-level.test.js.

Rebased onto main at 942a7ff96b0bef54f00af5b584ca5932d75cf0c6 (#1094). The only conflict was patches/ds-bot/0008-client-bundle.patch. Sources auto-merged (the clip sits beside the mention look and the remote-approval phrase). client.js was rebuilt from those sources. Patches were regenerated; 0012-room-membership.patch was left as on main because that copy still reproduces core/.

Verification at the tip

Tip SHA: 5cb9580

Fail-without-change: on the unbroken tip, node --test test/shell-level.test.js failed because panes.js did not export levelShell. After the source change and before client.js was rebuilt, the bundle assertion failed (client.js carries the document clip) while the scrollLeft cases passed. At this tip all 5 tests in core/test/shell-level.test.js pass.

Ran: TZ=UTC npm run verify (exit 0) at 5cb9580b133c531f91f6043b73b4ae9bef1e6271. node scripts/ds-bot-patches.mjs check ok (10 patches apply, core equals ds-bot + patches). core 1437 pass / 0 fail / 0 skipped, social 471 pass, tree 125 pass, timeline 125 pass, .github/scripts 417 pass, interop 37 pass, live-e2e 16 pass. arch-docs OK (12 changed files). node core/scripts/build-client.mjs --check ok. git diff origin/main...HEAD --stat lists only this change.

Not run: smoke (no core/index.js or src/host/ change). Desktop. Browser (no app server; the clip and the scrollLeft reset are covered by core/test/shell-level.test.js).

Self-review note

Implementer only. No Verdict:. The previous tip cfd3d387 was DIRTY against main; this tip is rebased onto 942a7ff. patches/ds-bot/files/test/shell-level.test.js is still the byte-for-byte copy of core/test/shell-level.test.js. PASS and enqueue stay with the coordinator.

Not enqueued.

Open in Web Open in Cursor 

Dismissing the error and typing in the room composer left the window
scrolled sideways. Clip horizontal overflow on the document and the
app frame, put a leftover scrollLeft back when the composer is used,
and center the error toast inside the viewport.

The Enter-chat Internal error itself stays #1085.

Co-authored-by: Danyang Chen <birfychen@gmail.com>
@cursor
cursor Bot force-pushed the cursor/face-room-layout-clip-0518 branch from cfd3d38 to 5cb9580 Compare October 25, 2026 02:39
@Birfy

Birfy commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

Verdict: PASS at 5cb9580
Written-by: Reviewer

Fixes #1086. Rebased tip: shell overflow-x clip + scrollLeft reset; shell-level.test.js in patch series; ds-bot-patches check green.

Ran:

  • TZ=UTC npm run verify → pass (core 1437, social 471, tree 125, timeline 125)
  • node scripts/ds-bot-patches.mjs check → pass
  • CI tests-ok → SUCCESS

@Birfy Birfy added the agent-pr Pull request opened by an agent label Oct 25, 2026
@Birfy
Birfy added this pull request to the merge queue Oct 25, 2026
@github-actions github-actions Bot added the pass label Oct 25, 2026
Merged via the queue into main with commit 2719613 Oct 25, 2026
13 of 14 checks passed
@Birfy
Birfy deleted the cursor/face-room-layout-clip-0518 branch October 25, 2026 02:43
@github-actions github-actions Bot removed the agent-pr Pull request opened by an agent label Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Face room window layout clips horizontally after Enter chat Internal error Face-to-face Enter chat shows Internal error on both homes

2 participants