Skip to content

Handle broken pipes gracefully in plugin list output - #53109

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cc4a64e10ad723d26b6de9e731efdc534dbee492
Oct 11, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Handle broken pipes gracefully in plugin list output

Why

Piping codex plugin list into a consumer such as head can close stdout before the full catalog is written, causing a panic.

What changed

Write both table and JSON output through a fallible writer and treat broken pipes during writing or flushing as success. Continue propagating other output errors.

Testing

Add unit tests for write and flush failures in both output formats, plus CLI tests that close stdout early and verify a successful exit without a panic.

## Why

Piping `codex plugin list` into a consumer such as `head` can close stdout before the full catalog is written, causing a panic.

## What changed

Write both table and JSON output through a fallible writer and treat broken pipes during writing or flushing as success. Continue propagating other output errors.

## Testing

Add unit tests for write and flush failures in both output formats, plus CLI tests that close stdout early and verify a successful exit without a panic.

GitOrigin-RevId: cc4a64e10ad723d26b6de9e731efdc534dbee492
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cc4a64e10ad723d26b6de9e731efdc534dbee492 branch from 1e3bcc7 to a07c8eb Compare October 11, 2026 12:38
@copyberry
copyberry Bot merged commit a07c8eb into main Oct 11, 2026
1 check passed
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-11T12:38:42.326382Z 1e3bcc7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cc4a64e10ad723d26b6de9e731efdc534dbee492 branch October 11, 2026 12:38
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 11, 2026
@Egly443
Egly443 deployed to issue-triage October 11, 2026 13:21 — with Image GitHub Actions Active
@Egly443
Egly443 deployed to issue-triage October 11, 2026 13:21 — with Image GitHub Actions Active
@Egly443
Egly443 deployed to issue-triage October 11, 2026 13:21 — with Image GitHub Actions Active
@Syntrion-AI
Syntrion-AI deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@Syntrion-AI
Syntrion-AI deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@Syntrion-AI
Syntrion-AI deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@balaciv-svg
balaciv-svg deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@balaciv-svg
balaciv-svg deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@balaciv-svg
balaciv-svg deployed to issue-triage October 11, 2026 13:22 — with Image GitHub Actions Active
@balaciv-svg
balaciv-svg deployed to issue-triage October 11, 2026 13:23 — with Image GitHub Actions Active
@Syntrion-AI
Syntrion-AI deployed to issue-triage October 11, 2026 13:23 — with Image GitHub Actions Active
@mohamedsi
mohamedsi deployed to issue-triage October 11, 2026 13:28 — with Image GitHub Actions Active
@mohamedsi
mohamedsi deployed to issue-triage October 11, 2026 13:28 — with Image GitHub Actions Active
@mohamedsi
mohamedsi deployed to issue-triage October 11, 2026 13:28 — with Image GitHub Actions Active
@mohamedsi
mohamedsi deployed to issue-triage October 11, 2026 13:29 — with Image GitHub Actions Active
@YQD1968
YQD1968 deployed to issue-triage October 11, 2026 13:45 — with Image GitHub Actions Active
@YQD1968
YQD1968 deployed to issue-triage October 11, 2026 13:45 — with Image GitHub Actions Active
@YQD1968
YQD1968 deployed to issue-triage October 11, 2026 13:45 — with Image GitHub Actions Active
@Sueawh
Sueawh deployed to issue-triage October 11, 2026 13:49 — with Image GitHub Actions Active
@Sueawh
Sueawh deployed to issue-triage October 11, 2026 13:49 — with Image GitHub Actions Active
@Sueawh
Sueawh deployed to issue-triage October 11, 2026 13:49 — with Image GitHub Actions Active
@lucasxx16
lucasxx16 deployed to issue-triage October 11, 2026 13:54 — with Image GitHub Actions Active
@lucasxx16
lucasxx16 deployed to issue-triage October 11, 2026 13:54 — with Image GitHub Actions Active
@lucasxx16
lucasxx16 deployed to issue-triage October 11, 2026 13:54 — with Image GitHub Actions Active
@Azriel84ht
Azriel84ht deployed to issue-triage October 11, 2026 14:01 — with Image GitHub Actions Active
@Azriel84ht
Azriel84ht deployed to issue-triage October 11, 2026 14:01 — with Image GitHub Actions Active
@Azriel84ht
Azriel84ht deployed to issue-triage October 11, 2026 14:01 — with Image GitHub Actions Active
@Yomikul
Yomikul deployed to issue-triage October 11, 2026 14:06 — with Image GitHub Actions Active
@Yomikul
Yomikul deployed to issue-triage October 11, 2026 14:06 — with Image GitHub Actions Active
@Yomikul
Yomikul deployed to issue-triage October 11, 2026 14:06 — with Image GitHub Actions Active
@Karimjr27
Karimjr27 deployed to issue-triage October 11, 2026 14:32 — with Image GitHub Actions Active
@Karimjr27
Karimjr27 deployed to issue-triage October 11, 2026 14:32 — with Image GitHub Actions Active
@Karimjr27
Karimjr27 deployed to issue-triage October 11, 2026 14:32 — with Image GitHub Actions Active
@Karimjr27
Karimjr27 deployed to issue-triage October 11, 2026 14:33 — with Image GitHub Actions Active
@yicai6688
yicai6688 deployed to issue-triage October 11, 2026 14:35 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — a07c8ebd Deployed Oct 11, 2026 by Derezo via Identify potential duplicates (open issues fallback) #54436
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.