Skip to content

Add unified exec plugin lifecycle adapter - #31858

Closed
kmbroai wants to merge 2 commits into
dev/kyleb/plugin-script-shell-lifecycle-e2e-v3from
dev/kyleb/plugin-script-unified-exec-lifecycle-v3
Closed

kmbroai wants to merge 2 commits into
dev/kyleb/plugin-script-shell-lifecycle-e2e-v3from
dev/kyleb/plugin-script-unified-exec-lifecycle-v3

Conversation

@kmbroai

@kmbroai kmbroai commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Attach plugin lifecycle tracking to direct and zsh-fork unified exec paths.
  • Suppress attribution for remote execution environments.
  • Translate generic process callbacks into explicit plugin terminal outcomes at the adapter boundary.

Why

Phase 1 lifecycle metrics need to cover the default unified-exec path without changing execution behavior.

Enhancement design: Codex Plugin Metrics

Stacked on #31857.

How

  • Resolve the original local command before sandbox/shell rewriting.
  • Wrap the existing spawn lifecycle and forward started, interrupted, and terminal callbacks idempotently.
  • Keep the generic lifecycle API unchanged and translate outcomes only in the plugin adapter.

I tested this

  • just fmt — passed
  • just fix -p codex-core-plugins -p codex-plugin -p codex-analytics -p codex-core -p codex-features -p codex-app-server -p codex-windows-sandbox — passed (stack-wide scoped lint gate)
  • just argument-comment-lint — passed
  • just test -p codex-core plugin_lifecycle — passed (4/4)
  • just test -p codex-core remote_unified_exec_requests — passed (1/1)
  • just test -p codex-app-server plugin_script_lifecycle — passed (4/4)
  • just test — attempted; the local workspace build stopped before tests because the runner lacks system libcap for unrelated codex-bwrap. Exact-head CI provides the full Linux/macOS/Windows matrix.

@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-shell-lifecycle-e2e-v3 branch from 1a49cc2 to 319ece7 Compare July 9, 2026 19:24
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-unified-exec-lifecycle-v3 branch from 92c476f to c856009 Compare July 9, 2026 19:25
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-shell-lifecycle-e2e-v3 branch from 319ece7 to f00d99e Compare July 9, 2026 22:30
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-unified-exec-lifecycle-v3 branch from c856009 to 24818fa Compare July 9, 2026 22:30
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-shell-lifecycle-e2e-v3 branch from f00d99e to b6b82fe Compare July 9, 2026 22:45
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-unified-exec-lifecycle-v3 branch from 24818fa to be0d6b1 Compare July 9, 2026 22:45
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-shell-lifecycle-e2e-v3 branch from b6b82fe to 670abee Compare July 9, 2026 22:55
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-unified-exec-lifecycle-v3 branch from be0d6b1 to 0b95f0a Compare July 9, 2026 22:55
@kmbroai
kmbroai marked this pull request as ready for review July 9, 2026 23:14
@kmbroai
kmbroai requested a review from a team as a code owner July 9, 2026 23:14
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-shell-lifecycle-e2e-v3 branch from 670abee to 57ad2a3 Compare July 10, 2026 01:10
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-unified-exec-lifecycle-v3 branch from 0b95f0a to 8ac88da Compare July 10, 2026 01:10

kmbroai commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by openai/codex-internal#1394 after the Codex source-of-truth migration. The internal replacement preserves this stack position and carries the validated review fixes.

@kmbroai kmbroai closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant