Skip to content

Preserve daemon diagnostics and include updater logs in reports - #49843

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

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Preserve daemon diagnostics and include updater logs in reports

Why

Detached launches truncate stderr logs, losing details from previous failures. Updater handoffs can also leave existing writers with stale offsets after truncation.

What changed

  • Record daemon lifecycle and update stages with timings, outcomes, and typed OS errors, omitting error messages and context.
  • Preserve the last 256 KiB of nonempty stderr logs before truncation and use append handles to prevent gaps during handoff. Preservation failures do not block launch.
  • Attach current and previous updater log tails when log inclusion is enabled for a report, with a 512 KiB total limit and legacy filename fallback. Skip missing, empty, and nonregular files.

Testing

Add regression coverage for diagnostic error redaction, bounded log preservation, append behavior during handoff, attachment selection, and updater logs in captured report uploads.

## Why

Detached launches truncate stderr logs, losing details from previous failures. Updater handoffs can also leave existing writers with stale offsets after truncation.

## What changed

- Record daemon lifecycle and update stages with timings, outcomes, and typed OS errors, omitting error messages and context.
- Preserve the last 256 KiB of nonempty stderr logs before truncation and use append handles to prevent gaps during handoff. Preservation failures do not block launch.
- Attach current and previous updater log tails when log inclusion is enabled for a report, with a 512 KiB total limit and legacy filename fallback. Skip missing, empty, and nonregular files.

## Testing

Add regression coverage for diagnostic error redaction, bounded log preservation, append behavior during handoff, attachment selection, and updater logs in captured report uploads.

GitOrigin-RevId: 918317022ab9dcfd1b13d676872706c77e9ffbb2
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/918317022ab9dcfd1b13d676872706c77e9ffbb2 branch from ed9c32e to 08b07ee Compare October 1, 2026 03:24
@copyberry
copyberry Bot merged commit 08b07ee into main Oct 1, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/918317022ab9dcfd1b13d676872706c77e9ffbb2 branch October 1, 2026 03:24
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026

This branch was successfully deployed

1 active deployment
issue-triage — 08b07eef Deployed Oct 1, 2026 by chindi1130-star via Generate label suggestions #50396
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.

3 participants