group conversations with models and local files
0

Configure Feed

Select the types of activity you want to include in your feed.

Clear initial-project hint after first open

Fixes "← Projects" doing nothing. initialProjectIdRef captured the
URL hash at App mount and was never cleared, so every remount of
ProjectList (which happens on every back navigation) consumed it
and immediately re-opened the same project. The user saw the back
click and bounced straight back to the project view.

One useEffect that nulls the ref once activeProject is set
removes the loop without disturbing the "reload restores your
last project" behavior.

dietrich ayala (May 27, 2026, 1:27 PM +0200) ea140010 164ea9b3

+8
+8
src/App.tsx
··· 223 223 writeProjectIdToHash(activeProject?.id ?? null) 224 224 }, [activeProject]) 225 225 226 + // Once the user has opened any project, retire the initial-project 227 + // hint. Otherwise ProjectList remounts on every "back to projects" 228 + // navigation and immediately auto-reopens the originally-loaded 229 + // project, making the back button look broken. 230 + useEffect(() => { 231 + if (activeProject) initialProjectIdRef.current = null 232 + }, [activeProject]) 233 + 226 234 // Browser back/forward — update activeProject if the hash changed. 227 235 useEffect(() => { 228 236 const onPop = (): void => {