Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

drop recoverToSurvivor's unused return value

[._.]/ Adam Eivycc8c5bc02088
diff --git a/client/src/hooks/useShellSession.js b/client/src/hooks/useShellSession.js
index b4a66ae992..8c1c647e93 100644
--- a/client/src/hooks/useShellSession.js
+++ b/client/src/hooks/useShellSession.js
@@ -441,17 +441,15 @@ export function useShellSession({ isFullscreen } = {}) {
// The one recovery path — see the module doc comment. Hands the user the next free
// shell, or runs `onNothing` (default: fall back to bare /shell) when there is none.
- // Returns whether a survivor was adopted, for callers that branch on it.
const recoverToSurvivor = useCallback((excludeId = null, onNothing = goToShellRoot) => {
const survivor = pickFreeSurvivor(excludeId);
if (!survivor) {
onNothing();
- return false;
+ return;
}
// claim:true — an auto-pick must never boot another tab off a session it is
// already driving, however the broadcast race falls out.
attachToSession(survivor, { claim: true });
- return true;
}, [pickFreeSurvivor, attachToSession, goToShellRoot]);
// The session the user is looking at just went away by their own action (Stop