Skip to content

Limit background terminal input previews - #41937

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c20edf156d5c8364083b1690e41cabd29786a279
Aug 31, 2026
Merged

Limit background terminal input previews#41937
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c20edf156d5c8364083b1690e41cabd29786a279

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 31, 2026

Copy link
Copy Markdown

Limit background terminal input previews

Why

Large input sent to a background terminal can require excessive wrapping work and fill the inline history view.

What changed

  • Limit inline input previews to 12 rendered rows and bound preview processing to 64 KiB.
  • Show a transcript hint when input is omitted, while preserving the complete input in transcript and raw views.
  • Keep URLs intact when they fit and truncate only the final overflowing line when needed.

Testing

Add regression coverage for long wrapped input, narrow viewports, zero-width Unicode payloads, URLs, and inputs that fit within the preview budget.

## Why

Large input sent to a background terminal can require excessive wrapping work and fill the inline history view.

## What changed

- Limit inline input previews to 12 rendered rows and bound preview processing to 64 KiB.
- Show a transcript hint when input is omitted, while preserving the complete input in transcript and raw views.
- Keep URLs intact when they fit and truncate only the final overflowing line when needed.

## Testing

Add regression coverage for long wrapped input, narrow viewports, zero-width Unicode payloads, URLs, and inputs that fit within the preview budget.

GitOrigin-RevId: c20edf156d5c8364083b1690e41cabd29786a279
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c20edf156d5c8364083b1690e41cabd29786a279 branch from a78bf1a to 115ffaf Compare August 31, 2026 23:55
@copyberry
copyberry Bot merged commit 115ffaf into main Aug 31, 2026
25 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c20edf156d5c8364083b1690e41cabd29786a279 branch August 31, 2026 23:56
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 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