Conversation
…setup Layer.provideMerge(self, that) feeds `that` into `self`. The `setup` layer needs SqlClient.SqlClient (to run PRAGMAs and migrations), while `makeRuntimeSqliteLayer` produces it. Having them swapped left `setup` with no SqlClient in context, causing "Service not found: effect/sql/SqlClient". Reverts the arg-order change introduced in f44e39f. https://claude.ai/code/session_01BpwxjJ9XzBeAXjRp86E9Jr
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe SQLite persistence layer's dependency injection setup was reordered. In Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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. Comment |
Summary
Layer.provideMerge(self, that)feedsthatintoself—thatis the provider,selfis the consumersetupneedsSqlClient.SqlClient(yields it to run PRAGMAs and migrations);makeRuntimeSqliteLayerproduces itf44e39fswapped the args sosetupwas treated as the provider, leaving itself with noSqlClientin context → "Service not found: effect/sql/SqlClient" on startupmakeSqlitePersistenceLiveandSqlitePersistenceMemoryTest plan
cd apps/server && bun run devstarts without the "Service not found: effect/sql/SqlClient" errorhttps://claude.ai/code/session_01BpwxjJ9XzBeAXjRp86E9Jr
Summary by cubic
Fix SQLite startup by restoring the correct
Layer.provideMerge(self, that)order sosetupconsumes theSqlClientfrommakeRuntimeSqliteLayer. Prevents "Service not found: effect/sql/SqlClient" on server boot.makeSqlitePersistenceLiveandSqlitePersistenceMemorysosetupcan run PRAGMAs/migrations with a valid client.apps/serverdev now starts clean; sessions can be created normally.Written for commit 339b635. Summary will update on new commits.
Summary by CodeRabbit