Skip to content

feat: add extension event sink capability#23293

Merged
jif-oai merged 1 commit into
mainfrom
jif/event-capabilities
May 18, 2026
Merged

feat: add extension event sink capability#23293
jif-oai merged 1 commit into
mainfrom
jif/event-capabilities

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

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

Why

Extensions can already expose typed contributions and receive host capabilities such as AgentSpawner, but they do not have a typed way to send protocol events back through the host. Extensions that need to surface progress or status should not have to own persistence, ordering, transport fanout, or logging decisions themselves.

What

  • Add ExtensionEventSink, a host-provided fire-and-forget sink for codex_protocol::protocol::Event.
  • Add NoopExtensionEventSink so hosts that do not expose extension event emission keep the existing empty-registry behavior.
  • Store the sink on ExtensionRegistryBuilder / ExtensionRegistry, with with_event_sink(...) and event_sink() accessors, and re-export the new capability from codex-extension-api.

Testing

  • Not run locally; PR metadata/body update only.

@jif-oai jif-oai requested a review from a team as a code owner May 18, 2026 11:55
@jif-oai jif-oai changed the title feat: event capabilities feat: add extension event sink capability May 18, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 18, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

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

ℹ️ 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 6a81735 into main May 18, 2026
29 checks passed
@jif-oai jif-oai deleted the jif/event-capabilities branch May 18, 2026 12:09
@github-actions github-actions Bot locked and limited conversation to collaborators May 18, 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