The best way to control Claude Code, Codex and more from any computer or phone
test(server): document extraction slot test no longer races its second waiter (#38322)
Julius Marminge committed
Nov 17, 2026 at 12:35 UTC
e9dc20d063e2244aa632fa275ee220ff029d4c28
1 file changed
+2
apps/server/src/provider/userInputAttachments.test.ts
+2
@@ -134,6 +134,8 @@ describe("question answer paths", () => {
134
Effect.provide(Layer.fresh(DocumentText.layer)),
135
Effect.provideService(FileSystem.FileSystem, {
136
...fs,
137
+ // An async probe can let `staying` join only after `leaving` cancelled the lookup.
138
+ exists: (file) => Effect.sync(() => NodeFS.existsSync(file)),
139
stat: (file) =>
140
Effect.gen(function* () {
141
yield* Queue.offer(started, file);