{"draft":null,"from":299,"to":300,"files":[{"path":"client/src/local-store.ts","added":16,"removed":3,"diff":"--- a/client/src/local-store.ts\n+++ b/client/src/local-store.ts\n@@ -286,7 +286,8 @@\n \n /** A project's calls, and its issues, asks and news, which the open server keeps at /issues/p/<project>/. */\n const PROJECT_PATH = /^(?:\\/issues)?\\/p\\/([^/]+)\\//;\n-const NAME = /^[A-Za-z0-9._-]{1,100}$/;\n+/** A project's name is also its folder in the store, so it never starts with a dot (\".\" and \"..\" would leave it). */\n+const NAME = /^[A-Za-z0-9_-][A-Za-z0-9._-]{0,99}$/;\n const json = (status: number, body: unknown) => Response.json(body, { status });\n \n /**\n@@ -346,7 +347,19 @@\n \t\t\t},\n \t\t},\n \t});\n-\treturn async (input, init = {}) => {\n+\t// One call at a time, as a Durable Object takes them: a call holds its project's write transaction across awaits,\n+\t// and the connection can't start a second (two calls at once come from Promise.all in ci and waiting --mine).\n+\tlet last: Promise<unknown> = Promise.resolve();\n+\treturn (input, init) => {\n+\t\tconst next = last.then(\n+\t\t\t() => call(input, init),\n+\t\t\t() => call(input, init),\n+\t\t);\n+\t\tlast = next.catch(() => {});\n+\t\treturn next;\n+\t};\n+\n+\tasync function call(input: string, init: RequestInit = {}): Promise<Response> {\n \t\tconst s = await loadServer();\n \t\topening = s;\n \t\tconst url = new URL(input);\n@@ -390,5 +403,5 @@\n \t\t\t// Where the Workers runtime answers a throw with a 500, so does this.\n \t\t\treturn json(500, { error: e instanceof Error ? e.message : String(e) });\n \t\t}\n-\t};\n+\t}\n }"}],"unmatched":[]}