revert: drop host-offline workspace gate from #4672
Merged
KI
6mo ago+1+1+0123456789-24-24-01234567890123456789
Summary
- Reverts the layout wiring and
useRemoteHostStatusoffline branch added in #4672, so v2 workspaces no longer render a full-screen gate when the paired host is marked offline. - Keeps
WorkspaceHostOfflineStateon disk (unused) so we can reuse it once we have a less aggressive treatment.
Why
- The hard block was too aggressive — workspaces should render optimistically and let individual operations degrade rather than blocking the whole page on
hosts.isOnline.
Test plan
- Open a v2 workspace whose paired host is offline → workspace UI renders normally (no full-screen offline state)
- Open a v2 workspace on a reachable host → unchanged
-
bun run typecheckclean
Summary by cubic
Reverts the offline host gate for v2 workspaces so the UI renders normally even when the paired host is offline. Drops the offline branch and hosts.isOnline check in useRemoteHostStatus; keeps WorkspaceHostOfflineState in the codebase for future use.
Summary by CodeRabbit
- Refactor
- Removed the remote host offline status state and its associated UI component. Remote hosts now transition through alternative status flows instead of displaying a dedicated offline indicator.