fix: truncate long approval prefixes when rendering (#8734)

Fixes inscrutable multiline approval requests:
<img width="686" height="844" alt="image"
src="https://github.com/user-attachments/assets/cf9493dc-79e6-4168-8020-0ef0fe676d5e"
/>
This commit is contained in:
Thibault Sottiaux
2026-01-06 15:17:01 -08:00
committed by GitHub
parent dc1a568dc7
commit 8b4d27dfcd
6 changed files with 127 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
---
source: tui/src/chatwidget/tests.rs
expression: contents
---
Would you like to run the following command?
$ python - <<'PY'
print('hello')
PY
1. Yes, proceed (y)
2. No, and tell Codex what to do differently (esc)
Press enter to confirm or esc to cancel