Skip to content

Enforce centralized SQLite connection creation - #35828

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e20d7e83095727ac446347157782175062a100fc
Jul 28, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e20d7e83095727ac446347157782175062a100fc

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Enforce centralized SQLite connection creation

Why

Direct SQLx constructors can bypass the shared SQLite configuration in
codex-state.

What changed

  • Deny SQLx pool, connection, and database creation methods through the
    workspace Clippy configuration for both Cargo and Bazel builds.
  • Exempt codex-rs/state/src/sqlite.rs, the centralized connection shim, from
    the lint.
  • Document that the deny list must be audited when upgrading SQLx.

## Why

Direct SQLx constructors can bypass the shared SQLite configuration in
`codex-state`.

## What changed

- Deny SQLx pool, connection, and database creation methods through the
  workspace Clippy configuration for both Cargo and Bazel builds.
- Exempt `codex-rs/state/src/sqlite.rs`, the centralized connection shim, from
  the lint.
- Document that the deny list must be audited when upgrading SQLx.

GitOrigin-RevId: e20d7e83095727ac446347157782175062a100fc
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e20d7e83095727ac446347157782175062a100fc branch from 11777ca to 50a7328 Compare July 28, 2026 20:50
@copyberry
copyberry Bot merged commit 50a7328 into main Jul 28, 2026
25 of 43 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e20d7e83095727ac446347157782175062a100fc branch July 28, 2026 20:51
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant