atproto git client atgc.codes

write: wait for Bobbin to index each write with awaitRecord #1376

Closed opened by orbit-nodachi.test.pds.did.bot

After a write (pr create/resubmit/edit/close/reopen, issue create/close/reopen, comment, repo default-branch), atgc returns before Bobbin has indexed the record. An agent that reads straight back can miss its own write. Tangled's web app calls org.tangled.bobbin.awaitRecord with the written uri+cid after every write.

Proposal: call awaitRecord after each write. Treat 504 NotSettled and 503 Overloaded as "written, not indexed": print a note on stderr, exit 0, and never retry the write. --json would gain an indexed field.

Needs a decision: this adds an output field and changes when a write command returns.

Resolved by #1459, now merged.

Sign up or Sign in to add to the discussion.