Skip to content

fix(terminal): unify remote reconnect notices across panes - #50138

Merged
AmethystLiang merged 14 commits into
mainfrom
AmethystLiang/design-reconnecting-card
Nov 26, 2026
Merged

AmethystLiang merged 14 commits into
mainfrom
AmethystLiang/design-reconnecting-card

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When a remote server drops, one notice sits over the workspace and the affected terminals dim. You can still read their scrollback.

Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​123 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​123
Prod 33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1224 $\color{#cf222e}{\Huge{\mathbf{−}}}$​146 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1078

What Changed

  • Stack one compact card per affected server with a shared outage clock. Details offers a copyable Tailscale check and a retry. When automatic pane retries end, show Reconnect on the card.
  • Mark affected tabs and veil only panes on the down server. A click points to the card. Wheel scrolling through normal scrollback works while pointer input to the terminal is held. The veil refuses native file drops.
  • Checked against how comparable products handle this.

Visual Proof

Two tab groups and three affected panes in light and dark fixtures.

Testing

  • Chromium fixture with the actual pane manager, terminal recovery portals, tab strip, and xterm. Verified mixed splits, wheel scrollback without PTY input, focus, both reconnect actions, the copy command, and cleanup when service returns in light and dark.

  • Verified both narrow states, stacked cards, the Details popover, and reduced motion. Focused tests cover the outage clock, retry classification, and drop eligibility after the veil appears.

  • Chromium verified that background tabs keep their outage dots and expose the localized status in their accessible names. Both clear on recovery.

  • Verified that the open agent update toast matches main pixel for pixel and the reconnect Details button keeps its open-state highlight.

  • Chromium verified the no-drop effect over a veiled pane. Native OS drag/drop, native Linux middle-click suppression, and a live Electron/SSH reconnect were not exercised.

  • Renderer typecheck, formatting, and lint passed locally. CI covers the broader checks and ratchets while the shared local preflight is queued.

Performance

Recovery labels share the existing visibility-aware clock. Pane veils add compositor work only during an outage. The normal terminal output route and IPC polling cadence stay the same.

Risk

Low. The renderer uses existing recovery and retry paths. A revert restores the prior recovery UI. Scrollback wheel forwarding is limited to normal-buffer panes without mouse reporting. Drops accepted before the veil appears can still follow the existing input hold once a write is in flight.

Reconnect card and pane veils in dark mode

Reconnect card and pane veils in light mode

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The change adds shared remote-server outage and retry state across terminal surfaces. Eligible panes can show an outage veil, tabs can display a down-server marker, and workspace-level outage cards show recovery status and controls. Veiled panes reject file drops, and permitted wheel events can reach terminal scrollback. The cards support immediate reconnect actions and connection guidance. Fixtures, tests, styles, and translations are also added.

Merge Risk: Low · up to 75750

The agent update toast's Hide list button will not be highlighted while its list is open, which falls short of the stated goal. This is a small cosmetic gap that is easy to fix and does not endanger terminal reconnect behavior.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(terminal): unify remote reconnect notices across panes" matches the main change. The PR replaces the per-pane outage notice with one stacked reconnect card per server, veils only panes …
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 description follows the template and covers the main sections. The ELI5, What Changed, Visual Proof, Testing, Performance, and Risk sections are filled in with specific content, including the mech…
Full details: Title check

Explanation

The title "fix(terminal): unify remote reconnect notices across panes" matches the main change. The PR replaces the per-pane outage notice with one stacked reconnect card per server, veils only panes on the down server, and marks affected tabs. The title is specific and concise. It omits the veil and tab-marking parts, which is acceptable.

Full details: Description check

Explanation

The description follows the template and covers the main sections. The ELI5, What Changed, Visual Proof, Testing, Performance, and Risk sections are filled in with specific content, including the mechanism, verification done, and a Risk level in plain prose. Two items are weak. The Linked Issue section is missing: it still reads 'Fixes #' with no issue number, and the template says there should always be one for outside contributors. The Why section is missing entirely. The AI Disclosure, Review, and Agent skill upstream boundary sections are also absent or unchecked, and the Checklist is not ticked. The Testing checkboxes are unchecked. The Risk level is written as 'Low' in prose, not as the template's labeled Level field. The description is mostly complete, so this passes, but the remediation below is needed before merge.

Resolution

Before merge, add the following. (1) Replace 'Fixes #' with a real linked issue number. (2) Add a 'Why' section that explains the problem and why this approach was chosen over alternatives. (3) Tick the Testing checkboxes that apply, or state why they do not. (4) Add the Level label in the Risk section, for example 'Level: Low'. (5) Complete or mark the Review and Agent skill upstream boundary sections. (6) Fill in the AI Disclosure section if AI tools were used, and tick the Checklist items that apply.

  • 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

@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: 2

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: 75e90899-f79f-422d-aad6-3ddbd6e41485
Commits

Reviewing files that changed from the base of the PR and between 29577ff and 19fcd91.

Files selected for processing: 34

  • src/renderer/src/assets/main.css
  • src/renderer/src/components/tab-bar/terminal-tabs/SortableTab.tsx
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-target.test.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-target.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-native-file-drop-destination.ts
  • src/renderer/src/components/terminal-pane/input/file-drop/use-terminal-pane-file-drop-owner.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageCard.fixture.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageCard.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageCards.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageNotice.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerPaneVeil.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-notice-claims.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-notice-claims.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-outage-signals.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-outage.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-pane-retries.test.ts
  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/remote-server-pane-retries.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/RemoteRuntimeRecoveryCard.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/TerminalPaneRecoveryPortals.tsx
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/remote-runtime-pty-control-ready-revivers.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/recovery/remote-runtime-recovery-copy.ts
  • src/renderer/src/components/terminal-pane/pty-transport/remote-runtime/remote-runtime-pty-transport.ts
  • src/renderer/src/components/terminal/workbench/TerminalSurface.tsx
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
Files with no reviewable changes: 1

  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageNotice.tsx

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

@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: 1

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: 38615121-4c29-4458-8795-7bbfb53e921f
Commits

Reviewing files that changed from the base of the PR and between f377867 and 7575001.

Files selected for processing: 2

  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageCard.tsx
  • src/renderer/src/components/ui/button.tsx
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/components/terminal-pane/pty-transport/recovery/server-outage/RemoteServerOutageCard.tsx

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

@AmethystLiang
AmethystLiang merged commit de6977f into main Nov 26, 2026
56 checks passed
saltyfireball pushed a commit to saltyfireball/orca that referenced this pull request Nov 27, 2026
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