mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
Previously, drafts were nested inside each session object, which caused the entire session to be recreated on every keystroke. This triggered rerenders in all components subscribed to the session. Now drafts are stored at the top level of the Zustand store, keyed by agentId (not serverId:agentId since agent IDs are globally unique). This means draft updates only trigger rerenders in components that subscribe to drafts specifically. Changes: - Move drafts from SessionState to SessionStoreState (top-level) - Add createModalDraft for future use by the create agent modal - Update getDraftInput/saveDraftInput to work with agentId only - Update session-context to clear drafts using new API - Remove investigation console.log statements 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>