Writing to Comma Drive reports success but the file is immediately unreadable

Aperta
#16 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

Start by tracing the fs.write_file and fs.copy_file entry points alongside drive.status, then reproduce the write/read sequence against Comma Drive. Check where a successful result is returned relative to the hosted copy accepting the file. Done means failed publishing is surfaced as an error instead of success; verify with fs.stat_file or fs.read_file after writing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happens

drive.status reports the Drive is reachable and writable:

{"available": true, "writable": true, ...}

Writes then return a success result, but reading the same path back immediately fails.

Steps to reproduce

  1. drive.status → reports available: true, writable: true.
  2. fs.write_file to /drive/Comma-MCP-bindings.md with 2,949 bytes of text → tool result: wrote 2949 bytes to /drive/Comma-MCP-bindings.md.
  3. fs.stat_file on the same path → error: no such file: /drive/Comma-MCP-bindings.md.
  4. fs.read_file on the same path → same no such file error.

Not specific to that file: a 28-byte ASCII test file (/drive/drive-write-test.txt) behaved identically, and fs.copy_file from the workspace to /drive/... also returned copied ... while the destination stayed unreadable. A filename containing non-ASCII characters made no difference.

Earlier failure mode

A day earlier the same path failed loudly instead — Comma Drive is temporarily unavailable and a 30s timeout, across 5 attempts. The current behaviour is silent, which is worse: an agent that trusts the write result reports "saved to your Drive" to the user while nothing landed.

Why this matters

A false success is not recoverable by the caller. Verification requires an immediate read-back after every write, which shouldn't be the caller's job — and when the read-back fails there's no error to show, just a file that isn't there.

Question

Is a write meant to be acknowledged only after the hosted copy accepts it? If publishing can fail asynchronously, could the write tool surface that rather than returning success?

Environment

  • Comma desktop app, Windows (reproduced on two machines in the same workspace).
  • Recurring writes from a workspace agent through drive.status, fs.write_file, fs.copy_file, fs.stat_file, fs.read_file.
  • Observed 2026-11-03, around 04:56 UTC and 06:02 UTC.
  • I didn't record the client build; happy to supply it if useful.
Lingua principale
Elixir
Stelle
740
Fork
61
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AFK-surf/Comma

Tutte le issue di AFK-surf/Comma

Issue simili

Altre issue su Elixir

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.