Repository navigation
Conversation
592501a to
5bb246b
Compare
8aa0023 to
1be315c
Compare
5bb246b to
fd57476
Compare
1be315c to
0e6aeaa
Compare
fd57476 to
912c70f
Compare
0e6aeaa to
cf93b45
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf93b45ac4
ℹ️ 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".
| parent_thread_id: thread_metadata.parent_thread_id.clone(), | ||
| plugin_id: input.plugin_id, | ||
| execution_id: input.execution_id, | ||
| script_path: input.script_path, |
There was a problem hiding this comment.
Normalize plugin script paths before telemetry
If a caller builds this new fact from existing hook metadata such as HookRunSummary.source_path, the value is an absolute path, and the reducer forwards input.script_path unchanged into the analytics payload. That means plugin script lifecycle telemetry can leak /Users/... or other local path details whenever the caller passes an absolute or unnormalized script path, which contradicts the intended sensitive-path suppression; normalize/validate it against the plugin root or use a typed plugin-relative path before serializing.
Useful? React with 👍 / 👎.
| let Some((connection_state, thread_state, thread_metadata)) = | ||
| self.thread_context_or_warn(AnalyticsDropSite::plugin_script_lifecycle(&input)) |
There was a problem hiding this comment.
Do not drop lifecycle events in direct core sessions
When plugin script lifecycle facts are emitted from the core session path, there may be no app-server Initialize/ThreadStart response facts in this reducer to populate connections and threads, so this context lookup returns None and the new lifecycle event is silently dropped. Existing hook analytics from core only needs the tracking payload, but this new path requires app-server thread metadata before it can emit anything; either seed the thread context for direct sessions or allow this event to be reduced from the fact's own thread/turn data.
Useful? React with 👍 / 👎.
cf93b45 to
ef993e5
Compare
|
Superseded by openai/codex-internal#1386 after the Codex source-of-truth migration. The internal replacement preserves this stack position and carries the validated review fixes. |
What
started,completed,failed, andinterrupted.Why
Phase 1 of Codex Plugin Metrics needs best-effort script lifecycle telemetry without sending sensitive absolute user paths, and the design is UI-agnostic across app-server and direct sessions.
Stacked on #31850.
Backend ingestion: openai/openai#1111392.
How
codex_plugin_lifecycle_event.I tested this
just fmt— passedjust 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-analytics— passed (86/86)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.