Skip to content

fix(state): keep the sqlite close finalizer infallible (#201 follow-up) - #208

Merged
ScriptedAlchemy merged 3 commits into
mainfrom
fix/hosted-ci-red
Sep 1, 2026
Merged

fix(state): keep the sqlite close finalizer infallible (#201 follow-up)#208
ScriptedAlchemy merged 3 commits into
mainfrom
fix/hosted-ci-red

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

#201 changed the sqlite connection's release step to return a fallible sqliteEffect on the success path, but Effect.acquireRelease finalizers are infallible by contract — @agent-bundle/runtime's declaration build fails with two TS2345 errors in src/state/sqlite.ts (848/858), which turns every CI job red at pnpm build (see run 33558334062). The success-path close now surfaces failures as a defect via Effect.orDie (still visible, per #201's intent) while the failing path keeps swallowing so the original failure stays the cause.

Test plan

  • pnpm --filter @agent-bundle/runtime build (dts generation) green
  • pnpm build, pnpm typecheck, pnpm lint green
  • packages/rsc-runtime/tests unit pool green (15 files)
  • Watch the post-merge main run

acquireRelease release finalizers cannot carry an error channel, so the
runtime package's declaration build failed on every job. A close failure
on the success path now dies (still visible) instead of failing.
@ScriptedAlchemy
ScriptedAlchemy merged commit bb248fc into main Sep 1, 2026
@changeset-bot

changeset-bot Bot commented Sep 1, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ee36086

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T21:10:54.862798Z ee36086 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant