From 7d2e200407951e8744673967d4af9043557e8276 Mon Sep 17 00:00:00 2001 From: Alan Silva Date: Fri, 6 Nov 2026 19:16:56 +0000 Subject: [PATCH] Document production workspace restoration and save behavior --- app/notes/chat-workspace-persistence.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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`.