Skip to content

Move memory prompt injection to app-server extension#22841

Merged
jif-oai merged 1 commit into
mainfrom
jif/memories-extension-app-server
May 15, 2026
Merged

Move memory prompt injection to app-server extension#22841
jif-oai merged 1 commit into
mainfrom
jif/memories-extension-app-server

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 15, 2026

Why

Memory prompt injection should be owned by the extension path that app-server composes at runtime, not by an inlined special case inside codex-core. This keeps codex-core focused on session orchestration while allowing the memories extension to own its app-server prompt behavior.

What Changed

  • Registers codex-memories-extension in the app-server extension registry.
  • Moves the memory developer-instruction injection out of core/src/session/mod.rs and into the memories extension prompt contributor.
  • Adds config-change handling so the extension keeps its per-thread memory settings in sync after startup.
  • Leaves memories read/retrieval tools unregistered for now so this PR only changes prompt injection.
  • Removes the stale cargo-shear ignore now that app-server depends on the extension crate.

Validation

Not run locally; validation is left to CI.

@jif-oai jif-oai force-pushed the jif/memories-extension-app-server branch from 8ddf7fe to 55f6472 Compare May 15, 2026 13:43
@jif-oai jif-oai marked this pull request as ready for review May 15, 2026 13:44
@jif-oai jif-oai requested a review from a team as a code owner May 15, 2026 13:44
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 15, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Breezy!

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jif-oai jif-oai merged commit cccde93 into main May 15, 2026
34 checks passed
@jif-oai jif-oai deleted the jif/memories-extension-app-server branch May 15, 2026 14:19
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 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