Skip to content

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

Merged
AmethystLiang merged 3 commits into
mainfrom
AmethystLiang/revert-50138-remote-outage-cards
Nov 27, 2026
Merged

AmethystLiang merged 3 commits into
mainfrom
AmethystLiang/revert-50138-remote-outage-cards

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

This undoes the change that replaced each terminal's own "reconnecting" notice with one shared card per disconnected server. Remote terminals go back to the reconnect notices they had in v1.4.279.

Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​80 $\color{#cf222e}{\Huge{\mathbf{−}}}$​115 $\color{#cf222e}{\Huge{\mathbf{−}}}$​35
Prod 33 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​146 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1224 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1078

What Changed

The first commit is a plain git revert of de6977f from #50138. The two commits after it only add tests.

  • Removes the window-level server outage cards (RemoteServerOutageCard(s)), the pane veil (RemoteServerPaneVeil), the warning dot and "Server disconnected" label on tabs, the nudge animation, the ghost-muted-disclosure button variant, and the five i18n keys that fix(terminal): unify remote reconnect notices across panes #50138 added to all 11 catalogs.
  • Restores RemoteServerOutageNotice: one shared notice per down server, with per-pane Reconnect banners once retries stop. It also restores the earlier () => boolean control-ready reviver shape.
  • Removes the wheel forwarding through the veil. Native file drops into a disconnected pane go back to their pre-veil behavior: they are no longer refused while the pane is down.
  • Restores the recovery card's own 1 s useNow interval in RemoteRuntimeRecoveryCard.tsx, which runs only while a card shows a down-since time (useNow(downSince !== null)). The matching +1 entry for that file returns to config/recurring-timer-baseline.txt.
  • Keeps the notice-claims module's single listener list, which existed before fix(terminal): unify remote reconnect notices across panes #50138, unchanged at its v1.4.279 form.
  • Parity with v1.4.279: of the 36 files, 23 aren't shared. Fourteen of those are back to their exact v1.4.279 contents. That includes RemoteServerOutageNotice.tsx, which fix(terminal): unify remote reconnect notices across panes #50138 had deleted, along with SortableTab.tsx, TerminalSurface.tsx, TerminalPaneRecoveryPortals.tsx, RemoteRuntimeRecoveryCard.tsx, remote-server-notice-claims.ts, the revivers, the file-drop modules and the timer baseline. The other 9 are the files fix(terminal): unify remote reconnect notices across panes #50138 added, which are removed again.
  • The 13 shared files (main.css, button.tsx and the 11 locale catalogs) lose only the fix(terminal): unify remote reconnect notices across panes #50138 hunks. No unrelated contents are reverted: later edits to them on main stay.

Why

#50138 made per-pane outage and recovery updates wake up unrelated surfaces through one shared listener list. Every mounted terminal tab and every server card subscribed to it, and each pane's retry-state change published to it as well. The change hasn't shipped, so reverting it returns to the released behavior.

Linked Issue

Reverts #50138.

Visual Proof

N/A: no new UI. This restores the v1.4.279 per-pane notice.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

The three test files #50138 added (terminal-drop-target.test.ts, remote-server-notice-claims.test.ts and remote-server-pane-retries.test.ts) are removed along with the code they covered. Two tests-only commits follow the revert:

  • remote-server-notice-claims.test.ts (new): one speaker per down server, hidden surfaces stay quiet, the handoff keeps the outage clock, the outage releases after the hold, and server Y's own claim values are unaffected by server X.
  • remote-server-outage-subscribers.test.ts (new): the removed remote-server-outage-signals and remote-server-pane-retries modules stay absent. SortableTab.tsx, TerminalSurface.tsx, TerminalPaneRecoveryPortals.tsx and remote-server-notice-claims.ts reference none of useTabHasDownServer, useRemoteServerOutageNudge, useReportRemoteServerPaneRetries, RemoteServerOutageCards or RemoteServerPaneVeil. The same predicate fails on main and passes on this head.

Also checked:

CI passed on the revert-only head and is running again on this head.

Performance

This removes wake-ups that #50138 added; source-derived, not measured:

  • remote-server-outage-signals.ts had one module-wide listener Set. Every mounted SortableTab (useTabHasDownServer) and every server card (useRemoteServerOutageNudge) subscribed, so each pane's down-tab mount or unmount, and each nudge, ran a snapshot for every tab and card.
  • useReportRemoteServerPaneRetries added per-pane latched/retrying joins, so each pane's retry-state change also notified every claim subscriber, including the four snapshots on each card.
  • After the revert, tabs and cards no longer subscribe and retry-state changes publish nothing. The claim listener list that existed before fix(terminal): unify remote reconnect notices across panes #50138 stays, at its v1.4.279 size.
  • Restored cost: each recovery card that shows a down-since time runs its own 1 s interval again, as in v1.4.279, recorded by the +1 timer-baseline entry. It stops when the card hides or recovery completes.

Risk

Level: Medium. The diff is large (+146/−1347) but mechanical.

Users lose the single per-server card, its Details, Tailscale hint, Reconnect now and Copy command controls, and the veil that refused file drops into a disconnected pane. They get back the v1.4.279 per-pane notices. Recovery after a reconnect still goes through the control-ready revivers, which are unchanged from v1.4.279.

To back out, revert this revert.

AI Disclosure

Review

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.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

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
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change replaces terminal-wide remote-server outage cards and per-pane veils with a claimed outage notice rendered by terminal recovery portals. It removes outage-card retry and nudge signals, changes recovery registration to a single callback, and removes tab outage indicators. File-drop validation no longer rejects veiled panes. Related translations are removed, and the recovery card is added to the recurring-timer baseline.

Merge Risk: Minimal · up to 568bf

This reverts an unreleased outage-card redesign and restores the previous per-pane reconnect notices. Users lose the shared card's controls and the veil during outages, but this is the intended revert. No concrete regression was found, so it is ready to merge once CI passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states that the PR reverts #50138, which is the change the PR body and objectives describe. It names the reverted commit's subject line, so a teammate scanning history can identify the prima…
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 covers every template section that matters for a revert. It has a clear ELI5, a detailed What Changed list, a Why, a Linked Issue (reverts #50138), a Visual Proof marked N/A with reaso…
Full details: Title check

Explanation

The title states that the PR reverts #50138, which is the change the PR body and objectives describe. It names the reverted commit's subject line, so a teammate scanning history can identify the primary change. The title does not list the restored per-pane notices, but that detail is not required for a revert title.

Full details: Description check

Explanation

The description covers every template section that matters for a revert. It has a clear ELI5, a detailed What Changed list, a Why, a Linked Issue (reverts #50138), a Visual Proof marked N/A with reason, Testing notes, a Performance section with an explicit reason, a Risk section with a level and back-out path, and a completed checklist. Gaps: the template's 'Fixes #' line is replaced by 'Reverts #50138', which is an acceptable substitute because the change is a revert. The AI Disclosure and Review sections are empty, and the 'manually tested' box is unchecked. The description also states that CI for the revert-only head passed while lint, typecheck, and tests remain pending on this head. Those are minor gaps and do not make the description largely incomplete.

  • 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

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: 8aeeefba-0065-4f91-8ffc-a6c92341e688
Commits

Reviewing files that changed from the base of the PR and between f724ad2 and 568bfad.

Files selected for processing: 2

  • 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-outage-subscribers.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 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: 049d6e8a-9950-4377-ab6f-72b5ada1a54c
Commits

Reviewing files that changed from the base of the PR and between 082b6aa and f724ad2.

Files selected for processing: 36

  • config/recurring-timer-baseline.txt
  • 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/components/ui/button.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: 24

  • src/renderer/src/assets/main.css
  • src/renderer/src/components/terminal-pane/input/file-drop/terminal-drop-target.test.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/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-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/remote-runtime-recovery-copy.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

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

…s no longer subscribe to a window-wide outage store
@AmethystLiang
AmethystLiang merged commit 59ed5b9 into main Nov 27, 2026
55 of 56 checks passed
@AmethystLiang
AmethystLiang deleted the AmethystLiang/revert-50138-remote-outage-cards branch November 27, 2026 10:50
nwparker added a commit that referenced this pull request Nov 27, 2026
#50804 uses it for the resume card's Details toggle, but the #50777 revert
removed it, so main fails typecheck.
nwparker added a commit that referenced this pull request Nov 27, 2026
#50804 uses it for the resume card's Details toggle, but the #50777 revert
removed it, so main fails typecheck.
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