Skip to content

Revert state DB injection and agent graph store#21481

Merged
pakrym-oai merged 4 commits into
mainfrom
pakrym/revert-20689-db-store
May 7, 2026
Merged

Revert state DB injection and agent graph store#21481
pakrym-oai merged 4 commits into
mainfrom
pakrym/revert-20689-db-store

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

@pakrym-oai pakrym-oai commented May 7, 2026

Why

Reverts #20689 to restore the previous optional state DB plumbing. The conflict resolution keeps the newer installation ID and session/thread identity changes that landed after #20689, while removing the mandatory state DB and agent graph store dependency from ThreadManager construction.

What changed

  • Restored Option<StateDbHandle> through app-server, MCP server, prompt debug, and test entry points.
  • Removed the codex-core dependency on codex-agent-graph-store and reverted descendant lookup back to the existing state DB path when available.
  • Kept newer installation_id forwarding by passing it beside the optional DB handle.
  • Kept local thread-name updates working when the optional state DB handle is absent.

Validation

  • git diff --check
  • cargo test -p codex-thread-store
  • cargo test -p codex-state -p codex-rollout -p codex-app-server-protocol
  • Attempted env CARGO_INCREMENTAL=0 cargo test -p codex-core -p codex-app-server -p codex-app-server-client -p codex-mcp-server -p codex-thread-manager-sample -p codex-tui; blocked locally by a rustc ICE while compiling v8 v146.4.0 with rustc 1.93.0 (254b59607 2026-01-19) on aarch64-apple-darwin.

@pakrym-oai pakrym-oai force-pushed the pakrym/revert-20689-db-store branch from 1865af5 to 0035356 Compare May 7, 2026 04:37
@pakrym-oai
Copy link
Copy Markdown
Collaborator Author

@codex review this

@pakrym-oai pakrym-oai marked this pull request as ready for review May 7, 2026 05:14
@pakrym-oai pakrym-oai requested a review from a team as a code owner May 7, 2026 05:14
@pakrym-oai pakrym-oai merged commit a8488fe into main May 7, 2026
37 of 38 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 7, 2026
@pakrym-oai pakrym-oai deleted the pakrym/revert-20689-db-store branch May 7, 2026 06:26
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.

2 participants