Skip to content

Desktop files read from disk open and sync after a restart; no more "open the folder again" (v0.26.2) - #70

Merged
ralyodio merged 1 commit into
mainfrom
fix/missing-stored-files
Oct 28, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/missing-stored-files

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Anthony: "That stored file chunk is not here. i get this a lot now. and it says to re-open the folder, why do we have to do that?"

Cause: large files, PDFs and images the desktop reads from disk had a session-only reader (blobs.fromDisk). #66 restored the disk handles after a restart but not these readers, so after relaunch the desktop couldn't open them, sync couldn't upload them, and the web got 404 "That stored file chunk is not here".

  • reattachDisk() on launch and after each sync applies: every stored file with a restored handle gets its reader back, so it opens and the next sync uploads what the account lacks.
  • A disk file whose size changed since it was opened is skipped for that upload instead of failing the whole pass.
  • A 404 now reads "This file is not on your account yet…"; "open the folder" only for a file that moved or was deleted.

New e2e: PDF from the fake desktop disk opens after a restart (fails on main, passes here). Site e2e 48, accounts 6, unit 228, server 106.

🤖 Generated with Claude Code

…open the folder again" (v0.26.2)

Anthony: "syncing still broken: That stored file chunk is not here. i get this a
lot now. and it says to re-open the folder, why do we have to do that?"

Large files, PDFs and images the desktop app reads from disk had a reader for one
session only. #66 restored the disk handles after a restart but not these readers,
so after relaunching the desktop could not open them ("Open its folder again"),
sync could not upload them, and the account held references with no bytes: the web
editor's "That stored file chunk is not here".

- Every stored file with a restored disk handle gets its reader back on launch and
  after each sync, so it opens and the next sync uploads what the account lacks.
- A file changed on disk to another size is skipped for that upload instead of
  stopping the whole pass on the server's chunk-size check.
- A stored file the account does not hold yet says so in words; "open the folder"
  is left only for a file that moved or was deleted on disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit e7de53d into main Oct 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant