Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions apps/web/src/components/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,15 +283,9 @@ export function AppSidebar({
if (chatsResult?.chats && chatsResult.chats.length > 0) {
cachedChatsRef.current = chatsResult.chats;
try {
<<<<<<< HEAD
sessionStorage.setItem(CHATS_CACHE_KEY, JSON.stringify(chatsResult.chats));
||||||| 54e09ce
localStorage.setItem(CHATS_CACHE_KEY, JSON.stringify(chatsResult.chats));
=======
// Only cache minimal fields needed for sidebar rendering
const minimal = chatsResult.chats.map(({ _id, title, updatedAt }) => ({ _id, title, updatedAt }));
sessionStorage.setItem(CHATS_CACHE_KEY, JSON.stringify(minimal));
>>>>>>> main
} catch (e) {
console.warn("Failed to save chats to sessionStorage:", e);
}
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/lib/auth-client.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {

createContext,
useCallback,
useContext,
Expand All @@ -16,7 +16,6 @@ import { env } from "./env";
import { analytics } from "./analytics";
import type {ReactNode} from "react";


/**
* Better Auth client with Convex integration.
*/
Expand Down
Loading
Loading