Skip to content

file: use Effect.cached for scan deduplication - #19164

Merged
kitlangton merged 2 commits into
devfrom
kit/effect-cached-file
Mar 26, 2026
Merged

file: use Effect.cached for scan deduplication#19164
kitlangton merged 2 commits into
devfrom
kit/effect-cached-file

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • Replace Fiber.Fiber<void> | undefined + manual fork/join with Effect.cached for deduplicating concurrent scan() calls
  • Removes Fiber, Scope imports and fiber field from state
  • Concurrent ensure() callers share the same in-flight fiber instead of racing

Test plan

  • bun run typecheck passes
  • No test regressions
@kitlangton
kitlangton merged commit f54e4b6 into dev Mar 26, 2026
8 checks passed
@kitlangton
kitlangton deleted the kit/effect-cached-file branch March 26, 2026 00:20
cainiao1992 pushed a commit to cainiao1992/opencode that referenced this pull request Mar 26, 2026
Andres77872 pushed a commit to Andres77872/opencode that referenced this pull request Mar 26, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant