Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
refactor(web): let the landing loader's catch handle rejected fetches
shoudi zhengae28a939afc7
diff --git a/apps/web/src/app/router.tsx b/apps/web/src/app/router.tsxindex c2711cee..c5f3b06a 100644--- a/apps/web/src/app/router.tsx+++ b/apps/web/src/app/router.tsx@@ -77,16 +77,8 @@ export function createAppRoutes(// Inspect session before tenants so a 401 always redirects to /login// even when a parallel tenants request failed first with a 5xx/network error.- if (sessionResult.status === "rejected") {- request.signal.throwIfAborted();- redirectAuthenticationError(sessionResult.reason, queryClient);- throw sessionResult.reason;- }- if (tenantsResult.status === "rejected") {- request.signal.throwIfAborted();- redirectAuthenticationError(tenantsResult.reason, queryClient);- throw tenantsResult.reason;- }+ if (sessionResult.status === "rejected") throw sessionResult.reason;+ if (tenantsResult.status === "rejected") throw tenantsResult.reason;const session = sessionResult.value;const tenants = tenantsResult.value;diff --git a/apps/web/src/features/rooms/chat/room-chat-impl.tsx b/apps/web/src/features/rooms/chat/room-chat-impl.tsxindex 6cb60a9f..26bb55f9 100644--- a/apps/web/src/features/rooms/chat/room-chat-impl.tsx+++ b/apps/web/src/features/rooms/chat/room-chat-impl.tsx@@ -24,9 +24,7 @@ export function RoomChatImpl() {useEffect(() => {if (markedRoomIdRef.current === roomId) return;markedRoomIdRef.current = roomId;- if (typeof performance?.mark === "function") {- performance.mark("room.chat_ready");- }+ performance.mark("room.chat_ready");}, [roomId]);return (<div className="room-chat-layout flex min-h-0 flex-1">diff --git a/apps/web/src/features/rooms/room-shell.tsx b/apps/web/src/features/rooms/room-shell.tsxindex 2cdbc679..dc886b05 100644--- a/apps/web/src/features/rooms/room-shell.tsx+++ b/apps/web/src/features/rooms/room-shell.tsx@@ -141,13 +141,8 @@ function RoomShellReady({open: openRoom,});- const shellMarked = useRef(false);useEffect(() => {- if (shellMarked.current) return;- shellMarked.current = true;- if (typeof performance?.mark === "function") {- performance.mark("room.shell_visible");- }+ performance.mark("room.shell_visible");}, []);useEffect(() => {