mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-16 06:39:01 +02:00
The two cross-route draft store reset hooks (new-issue, chat-session) documented their first mount as "effectively a no-op" but the implementations stomped the store on every workspace-id transition including the initial null → uuid resolve. That's harmless when the store is already INITIAL but contradicts the docblock and would corrupt any future code that pre-seeds the store before navigation lands. Gate the reset() call on a useRef-tracked previous id so it only fires on genuine transitions. Matches the new-project-draft-store hook added in the prior commit so all three stores follow one shape.