Repository navigation
Say when Flow ID is out of reach or busy instead of its code - #6
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e9bc86f77
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| }, | ||
| "dependencies": { | ||
| "@flow-industries/seal": "^0.3.1" | ||
| "@flow-industries/seal": "^0.4.0" |
There was a problem hiding this comment.
Regenerate the lockfile for Seal 0.4.0
This manifest now requires Seal 0.4.0, but bun.lock still declares and resolves ^0.3.1/0.3.1. Both CI and release run bun install --frozen-lockfile (.github/workflows/ci.yml:24 and .github/workflows/release.yml:29), and Bun documents that flag as “Disallow changes to lockfile,” so installation exits before any checks run; without frozen mode, the committed lock also lacks the new exports imported by this change. Regenerate and commit bun.lock for 0.4.0.
AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
Summary
Waits on
@flow-industries/seal0.4.0 being published (flow-industries/seal#7).package.jsonalready asks for^0.4.0, butbun.lockstill pins 0.3.1, because no lockfile can name 0.4.0 before it exists on npm. Until it does, CI'sbun install --frozen-lockfilefails. Once 0.4.0 is out, this branch gets a regeneratedbun.lockand a CI rerun.Seal 0.4.0 reports a dropped connection (
CONNECTION_LOST,UPLOAD_INCOMPLETE) as the sync reason"connection", and too many uploads in flight (UPLOAD_BUSY) as"busy". While it retries, it publishesSYNC_CONNECTION_FAILEDandSYNC_BUSY. It also exportstransientFailure(error), which returns"connection","busy"or undefined. This PR puts both into words, and no Flow ID code reaches the person any more:Status bar.
statusWordsinsrc/device.ts, used bystatusText:SYNC_CONNECTION_FAILEDreads "Connection to Flow ID failed; changes are kept and sync resumes once it's back";SYNC_BUSYreads "Syncing again in a moment";Errors.
failureWordsinsrc/device.tsgives every refusal Flow ID's SDK throws (a stringcodebeside a numericstatus) one of three lines:CONNECTION_LOST,UPLOAD_INCOMPLETE)PDS_UNAVAILABLE(also what a gateway's error page reads as during an outage)messageOf.CONNECTION_LOST,PDS_UNAVAILABLE,RATE_LIMITEDand so on) in all three places.README. A "What syncs" line on what happens when the connection to Flow ID fails, and where its status shows: in the status bar, or in settings on mobile.
Version. 0.1.2 to 0.1.3 in
manifest.json,package.jsonandversions.json. No tag is pushed.The wording follows NOTE's: a failed connection may be on either side, and an
UPLOAD_INCOMPLETEmeans Flow ID was reached, so no line says Flow ID couldn't be reached or blames the person's network.Testing
These ran locally under Bun 1.4.2, against seal 0.4.0 built from flow-industries/seal#7 and Flow ID SDK 0.38.1, both linked into
node_modules:bun run lint: clean;bun run lint:obsidian: 0 errors (13 existing warnings, none on changed lines);bun run typecheck: clean;bun test: all pass, the e2e included;bun run build: clean;bun run smoke:main.jsloads, needing onlyobsidianand@lezer/*.A fresh install against a packed seal 0.4.0 resolves SDK 0.38.2, which brings
@flow-industries/uiand React in as peers. At the same commit (ce7fc7d), that build gave amain.jsbyte-identical to the 0.38.1 build (1,062,282 bytes), with no React or UI code in it.New tests:
SYNC_CONNECTION_FAILED;CONNECTION_LOST,UPLOAD_INCOMPLETE,PDS_UNAVAILABLE,UPLOAD_BUSY,RATE_LIMITED,RECONNECT_REQUIREDandDEVICE_LINKING_DISABLEDat open stops in words that never contain the code;statusWordsmaps the two new statuses and passes the rest through;followsReadnever counts the two new statuses.Simplify pass: done on the full diff, review fixes included. It found nothing further to fix or simplify.
One existing behavior is unchanged: a vault that can't reach Flow ID as it opens stops until Retry or Sync now. Its words say to try again, so they don't promise an automatic retry.