mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
74c82a312eb7a233f2fabe4154a6133db0d062dd
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>
Languages
TypeScript
98.1%
JavaScript
1.3%
Shell
0.1%
Swift
0.1%