Skip to content

file: use Effect.cached for scan deduplication#19164

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

file: use Effect.cached for scan deduplication#19164
kitlangton merged 2 commits intodevfrom
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
Kizunad pushed a commit to Kizunad/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant