Skip to content

Collect metrics from plugin shell commands - #38252

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/88af0f87dc2f207fcbcca6af498f5c940d79349d
Aug 12, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/88af0f87dc2f207fcbcca6af498f5c940d79349d

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Collect metrics from plugin shell commands

What changed

  • Provide matching local plugin commands with a sandbox-writable temporary output file through CODEX_PLUGIN_METRICS_OUTPUT when analytics is enabled.
  • Validate successful command output against the plugin's analytics.yaml declaration, including measurement names, enum dimensions, finite values, duplicate rows, and size limits, before publishing analytics events.
  • Keep the output path reserved from user overrides and clean up the temporary file after execution.

Testing

  • Cover output validation, limits, cleanup, sandbox permissions, environment handling, and path replacement.
  • Verify measurement collection through both classic and zsh-fork shell runtimes.

## What changed

- Provide matching local plugin commands with a sandbox-writable temporary output file through `CODEX_PLUGIN_METRICS_OUTPUT` when analytics is enabled.
- Validate successful command output against the plugin's `analytics.yaml` declaration, including measurement names, enum dimensions, finite values, duplicate rows, and size limits, before publishing analytics events.
- Keep the output path reserved from user overrides and clean up the temporary file after execution.

## Testing

- Cover output validation, limits, cleanup, sandbox permissions, environment handling, and path replacement.
- Verify measurement collection through both classic and zsh-fork shell runtimes.

GitOrigin-RevId: 88af0f87dc2f207fcbcca6af498f5c940d79349d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/88af0f87dc2f207fcbcca6af498f5c940d79349d branch from cd846d4 to 9ca0337 Compare August 12, 2026 21:24
@copyberry
copyberry Bot merged commit 9ca0337 into main Aug 12, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/88af0f87dc2f207fcbcca6af498f5c940d79349d branch August 12, 2026 21:25
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 12, 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