Skip to content

Wire app-server extension event sink#24586

Merged
jif-oai merged 2 commits into
mainfrom
jif/event-sink
May 26, 2026
Merged

Wire app-server extension event sink#24586
jif-oai merged 2 commits into
mainfrom
jif/event-sink

Conversation

@jif-oai

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

Copy link
Copy Markdown
Collaborator

Why

The goal extension already emits ThreadGoalUpdated events, but production app-server thread extensions were built with the default no-op extension event sink. That meant extension-driven goal updates could be produced without ever reaching app-server clients.

What changed

  • Build app-server thread extensions with a host-provided ExtensionEventSink.
  • Add an app-server sink that converts extension ThreadGoalUpdated events into ServerNotification::ThreadGoalUpdated broadcasts.
  • Use the existing bounded outgoing message channel via try_send so event forwarding cannot create an unbounded queue.
  • Pass NoopExtensionEventSink in app-server tests that construct a ThreadManager without an app-server host.
  • Refresh Cargo.lock for the existing codex-memories-extension codex-otel dependency.

Verification

  • just test -p codex-app-server extensions::tests::app_server_event_sink_forwards_thread_goal_updates

@jif-oai jif-oai changed the title feat: event sink Wire app-server extension event sink May 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39ff6e3f7a

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

Comment thread codex-rs/app-server/src/extensions.rs
Comment thread codex-rs/app-server/src/outgoing_message.rs
@jif-oai jif-oai merged commit c4e53d1 into main May 26, 2026
30 checks passed
@jif-oai jif-oai deleted the jif/event-sink branch May 26, 2026 13:28
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 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