Repository navigation
Conversation
f9a8932 to
ea11b7c
Compare
6252b89 to
03a2d6f
Compare
ea11b7c to
6b84c4c
Compare
03a2d6f to
2f0dc16
Compare
6b84c4c to
afd3942
Compare
2f0dc16 to
3ac7ca3
Compare
afd3942 to
03aa5e3
Compare
3ac7ca3 to
78d3222
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 78d32222af
ℹ️ 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".
| self.interrupted.store(true, Ordering::Release); | ||
| } | ||
|
|
||
| pub(crate) fn finish(&self, exit_code: Option<i32>, failed: bool) { |
There was a problem hiding this comment.
Replace opaque finish arguments
This new crate-internal API bakes in an ambiguous Option plus bool, so when the executor adapters wire this dormant type in, calls like finish(None, true) or finish(Some(0), false) will not be self-documenting about whether None means a signal, spawn failure, or some other terminal condition. The repo guidance asks new Rust APIs to avoid these positional opaque arguments rather than relying on comments at every callsite; consider a small enum/struct for the terminal outcome before this API is used.
AGENTS.md reference: AGENTS.md:L14-L20
Useful? React with 👍 / 👎.
03aa5e3 to
a96c06c
Compare
78d3222 to
05f457c
Compare
|
Superseded by openai/codex-internal#1390 after the Codex source-of-truth migration. The internal replacement preserves this stack position and carries the validated review fixes. |
What
PluginScriptExecutionstate object for one attributed plugin-script invocation.plugin_script_lifecyclefeature flag and generated config schema entries.startedfact and one terminalcompleted,failed, orinterruptedfact.Why
Phase 1 needs one best-effort lifecycle state machine with a stable execution ID before shell and unified-exec adapters wire it into actual process execution. Explicit outcomes avoid ambiguous exit-code/bool call sites.
Enhancement design: Codex Plugin Metrics
Stacked on #31854.
How
I tested this
just fmt— passedjust write-config-schema— passed with no generated driftjust 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— passedjust test -p codex-core plugin_script_lifecycle— passed (8/8)just test— attempted; the local workspace build stopped before tests because the runner lacks systemlibcapfor unrelatedcodex-bwrap. Exact-head CI provides the full Linux/macOS/Windows matrix.