exp(orbit): teardown edge cases

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-23 17:39:33 +02:00
parent c7af6a6e15
commit dff2c4a121
2 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -59,11 +59,11 @@ export default function OrbitSessionBar() {
return () => window.clearInterval(id);
}, [state, phase]);
// Bar is visible while active, ended (pre-ack), or explicitly kicked.
// Bar is visible while active, ended (pre-ack), or explicitly kicked / soft-removed.
const shouldShowBar = !!state && (
phase === 'active'
|| phase === 'ended'
|| (phase === 'error' && errorMessage === 'kicked')
|| (phase === 'error' && (errorMessage === 'kicked' || errorMessage === 'removed'))
);
if (!shouldShowBar || !state) return (
<OrbitExitModal />