Skip to content

Include installer stderr in daemon update failures - #50499

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Include installer stderr in daemon update failures

Why

Daemon updates discard installer stderr, leaving failed installs with only an exit status and no installer diagnostics.

What changed

Capture the last 2 KiB of installer stderr and append it to errors when the installer exits unsuccessfully. Drain stderr concurrently and wait at most one second after failure so subprocesses holding the pipe open cannot delay error reporting indefinitely. Keep captured details within the manual update response limit, and configure PowerShell output as UTF-8 to preserve non-ASCII diagnostics.

Testing

Add coverage for stderr tail truncation, bounded draining when a subprocess keeps stderr open, and manual update responses containing heavily escaped diagnostics. Extend the Windows installer test to check non-ASCII error text.

## Why

Daemon updates discard installer stderr, leaving failed installs with only an exit status and no installer diagnostics.

## What changed

Capture the last 2 KiB of installer stderr and append it to errors when the installer exits unsuccessfully. Drain stderr concurrently and wait at most one second after failure so subprocesses holding the pipe open cannot delay error reporting indefinitely. Keep captured details within the manual update response limit, and configure PowerShell output as UTF-8 to preserve non-ASCII diagnostics.

## Testing

Add coverage for stderr tail truncation, bounded draining when a subprocess keeps stderr open, and manual update responses containing heavily escaped diagnostics. Extend the Windows installer test to check non-ASCII error text.

GitOrigin-RevId: d0da19b233006f97770d3f7f5f057e5e98fd2913
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d0da19b233006f97770d3f7f5f057e5e98fd2913 branch from 248c67d to 55922b7 Compare October 3, 2026 02:39
@copyberry
copyberry Bot merged commit 55922b7 into main Oct 3, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d0da19b233006f97770d3f7f5f057e5e98fd2913 branch October 3, 2026 02:39
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 3, 2026
@guoxianrui
guoxianrui deployed to issue-triage October 3, 2026 02:40 — with GitHub Actions Active
@guoxianrui
guoxianrui deployed to issue-triage October 3, 2026 02:40 — with GitHub Actions Active
@guoxianrui
guoxianrui deployed to issue-triage October 3, 2026 02:40 — with GitHub Actions Active
@guoxianrui
guoxianrui deployed to issue-triage October 3, 2026 02:41 — with GitHub Actions Active
@xunz3
xunz3 deployed to issue-triage October 3, 2026 02:51 — with GitHub Actions Active
@xunz3
xunz3 deployed to issue-triage October 3, 2026 02:51 — with GitHub Actions Active
@xunz3
xunz3 deployed to issue-triage October 3, 2026 02:51 — with GitHub Actions Active
@xunz3
xunz3 deployed to issue-triage October 3, 2026 02:52 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 55922b79 Deployed Oct 3, 2026 by xunz3 via Identify potential duplicates (open issues fallback) #51232
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.

4 participants