Skip to content

Stop emitting item/fileChange/outputDelta output delta notifications#20471

Merged
pakrym-oai merged 13 commits into
mainfrom
pakrym/remove-is-file-change-output
Apr 30, 2026
Merged

Stop emitting item/fileChange/outputDelta output delta notifications#20471
pakrym-oai merged 13 commits into
mainfrom
pakrym/remove-is-file-change-output

Conversation

@pakrym-oai

@pakrym-oai pakrym-oai commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Why

item/fileChange/outputDelta text output was only the tool's summary or error text and not used by client surfaces.

We keep item/fileChange/outputDelta in the app-server protocol as a deprecated compatibility entry, but the server no longer emits it.

What changed

  • stop the apply_patch runtime from emitting ExecCommandOutputDelta events
  • simplify item_event_to_server_notification so command output deltas always map to item/commandExecution/outputDelta
  • remove the app-server bookkeeping that tried to detect whether an output delta belonged to a file change
  • mark item/fileChange/outputDelta as a deprecated legacy protocol entry in the v2 types, schema, and README
  • simplify the file-change approval tests so they only wait for completion instead of expecting output-delta notifications

Testing

  • cargo test -p codex-app-server-protocol
  • cargo test -p codex-thread-manager-sample
  • cargo test -p codex-app-server-protocol protocol::event_mapping::tests::exec_command_output_delta_maps_to_command_execution_output_delta -- --exact
  • cargo test -p codex-app-server turn_start_file_change_approval_accept_for_session_persists_v2 -- --exact (failed before the test assertions because the wiremock /responses mock received 0 requests in setup)

@pakrym-oai pakrym-oai requested a review from a team as a code owner April 30, 2026 17:13
@pakrym-oai pakrym-oai changed the title Stop emitting apply_patch output delta notifications Stop emitting item/fileChange/outputDelta output delta notifications Apr 30, 2026
Base automatically changed from pakrym/item-event-mapping to main April 30, 2026 18:02
…-change-output

# Conflicts:
#	codex-rs/app-server-protocol/src/protocol/event_mapping.rs
#	codex-rs/app-server/src/bespoke_event_handling.rs
#	codex-rs/thread-manager-sample/src/main.rs
@pakrym-oai pakrym-oai merged commit b520831 into main Apr 30, 2026
24 of 25 checks passed
@pakrym-oai pakrym-oai deleted the pakrym/remove-is-file-change-output branch April 30, 2026 18:42
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 30, 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.

2 participants