Merge branch 'main' into pipelines/run-20261112-2239-files-path-keeps-the-current-folder-in-v-3cb2

# Conflicts:
#	app/tool/probe_files_fixture.dart
This commit is contained in:
2026-11-12 23:08:42 +00:00
7 changed files with 276 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
# Files remembers the last folder
Implemented per-server/per-chat Files folder persistence with a bounded 200-entry SharedPreferences record. Successful directory navigation updates the record; startup restores it, validates it against the chat directory, and walks parent folders using `list_directory` when the saved folder is gone. Closing a chat removes its record. File previews and filters remain transient.
## Checks
- `tool/memwatch/full.sh 'test/features/chat/files/files_controller_persistence_test.dart test/features/chat/files/files_panel_test.dart test/features/chat/files/files_models_test.dart'`: 20 passed.
- `tool/analyze.sh`: clean.
- Browser/device captures were not run in this implementation stage.
The browser fixture supports `filesMissing=1` alongside `files=1`: after
seeding a remembered `assets` folder, reload with that flag to show the folder
request failing and the panel reopening at `/workspace/demo`.