From 1b0cee6063bb9d05d1bf3a3bd42a2db5269154cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Thu, 19 Nov 2026 07:39:03 +0000 Subject: [PATCH] Design: a shared copy goes by its age Co-Authored-By: Claude Fable 5.2 --- Design.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Design.md b/Design.md index 54deb51..da27eae 100644 --- a/Design.md +++ b/Design.md @@ -127,8 +127,10 @@ everything that leaves the instance for the phone. - **Leaving the instance.** Download writes into a document the person chose with the system's "Save to" page (`CreateFile`, the Storage Access Framework); several things, or a folder, are the server's zip. Open with and Share hand another app a copy in the private cache through the - FileProvider (`cache/shared/`, read-only, per grant). The copies go when the screen is left, - when the app starts and at sign-out (`FileCache`). There is no storage permission. + FileProvider (`cache/shared/`, read-only, per grant). A copy goes an hour after it was + written -- the other app may still be reading it when the screen closes or the app starts + again -- and all of them at sign-out and on a switch of instance (`FileCache`). There is no + storage permission. - **The viewer goes by `file_kind`** (`ui/viewer/TreeViewer.kt`, `FileKinds.viewer`): text kinds as text and editable (a save says the `sha` it opened; a 409 offers Reload and Save anyway); a picture decoded with capped edge and pixel count (`sampleFor`); a PDF by the platform's