Skip to content

Keep report reason tags within Sentry limits - #47325

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e0f0db6a9797a817da2f868727077c948ad82bfb
Sep 22, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Keep report reason tags within Sentry limits

Why

Sentry tags cannot contain newlines or exceed 200 characters, but report comments can contain both.

What changed

Limit the reason tag to the first 200 Unicode characters and replace each carriage return or newline with a space. Preserve the full, unchanged comment in the exception body.

Testing

Add coverage for line endings, the 200-character boundary, and multibyte Unicode comments. A mock upload test checks that the compressed Sentry envelope contains the bounded tag preview and full comment, even when caller tags attempt to override reason.

## Why

Sentry tags cannot contain newlines or exceed 200 characters, but report comments can contain both.

## What changed

Limit the `reason` tag to the first 200 Unicode characters and replace each carriage return or newline with a space. Preserve the full, unchanged comment in the exception body.

## Testing

Add coverage for line endings, the 200-character boundary, and multibyte Unicode comments. A mock upload test checks that the compressed Sentry envelope contains the bounded tag preview and full comment, even when caller tags attempt to override `reason`.

GitOrigin-RevId: e0f0db6a9797a817da2f868727077c948ad82bfb
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e0f0db6a9797a817da2f868727077c948ad82bfb branch from 53be542 to 8a57739 Compare September 22, 2026 17:08
@copyberry
copyberry Bot merged commit 8a57739 into main Sep 22, 2026
15 of 23 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e0f0db6a9797a817da2f868727077c948ad82bfb branch September 22, 2026 17:08
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 22, 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