fix(server): bound editor discovery during config loading #4291
Mergedmaria-rcksmerged 1 commit into
main fromrefs/pull/4291/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- @@ -3728,3 +3729,19 @@37283729 }).pipe(Effect.provide(NodeHttpServer.layerTest)),37293730 );373037313732+ it.effect("does not block server config when editor discovery never resolves", () =>3733+ Effect.gen(function* () {3734+ const discoveryInterrupted = yield* Deferred.make<void>();3735+ const responseFiber = yield* resolveAvailableEditorsForConfig(3736+ Effect.never.pipe(3737+ Effect.onInterrupt(() => Deferred.succeed(discoveryInterrupted, undefined)),3738+ ),3739+ ).pipe(Effect.forkChild);3740+3741+ yield* TestClock.adjust(Duration.seconds(5));3742+3743+ const availableEditors = yield* Fiber.join(responseFiber);3744+ yield* Deferred.await(discoveryInterrupted);3745+ assert.deepEqual(availableEditors, []);3746+ }),3747+ );
juliusmarminge merged this6e3b738
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID:
580c776a-bc14-419a-80fa-6be972e74a5eYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share