diff --git a/app/notes/chat-workspace-persistence.md b/app/notes/chat-workspace-persistence.md index 78dd61ad..8cdcd9e8 100644 --- a/app/notes/chat-workspace-persistence.md +++ b/app/notes/chat-workspace-persistence.md @@ -20,4 +20,12 @@ returns null for unavailable/corrupt preferences and false for failed writes. Session availability is a screen/provider concern: the codec preserves identities without contacting or reopening sessions on the server. -Focused validation: `tool/memwatch/full.sh 'test/features/chat/workspace --no-pub'`. +Production `ChatDestination` enables `ChatWorkspaceBinding`. Embedded/test screens +opt in explicitly. The binding serializes debounced saves, flushes pending edits +on disposal, and guards both tree and sidebar edits against late preference reads. +A direct-link chat is selected if already present or added beside the restored +panes. Logical server changes bind a separate snapshot and cannot carry panes +from the previous server. Narrow devices retain the tree and show its active pane. + +Focused validation uses `tool/memwatch/full.sh test/features/chat/workspace` +and the real-screen `chat_workspace_restore_test.dart`.