Preflight terminal size gating does not trigger resize warning
还没有人认领这个 Issue。
评估
调研方向
从 preflight_ui.py 中的 _terminal_size_ok() 和 _wait_for_terminal_size() 开始,然后跟踪 _arrow_select() 路径和编号菜单 fallback。将阈值与渲染后的 preflight 内容进行比较,并检查 Rich wrapping 或跳过 gating 是否解释了这一行为。完成标准是:尺寸过小的 Windows cmd.exe 终端显示调整大小警告,并一直阻塞到终端被放大为止。
由索引模型根据 Issue 内容生成。
描述
Problem
The preflight UI no longer shows the "terminal too small" warning panel when the terminal window is too narrow for the rendered content. The UI renders with broken layout / wrapping instead of blocking and asking the operator to resize.
Where the check lives
_terminal_size_ok()at preflight_ui.py:622 checks againstMIN_UI_WIDTH = 132andMIN_UI_HEIGHT = 34_wait_for_terminal_size()at preflight_ui.py:632 shows the resize panel in a loop until the terminal is large enough- Called from
_arrow_select()at preflight_ui.py:1400 on every menu render cycle
Likely causes to investigate
- The fixed thresholds (
MIN_UI_WIDTH = 132) may no longer match the actual rendered width of the preflight dashboard content, especially after recent UI changes added wider rows (session summary sections, launch contract, stim config view). - The check only runs inside
_arrow_select— if the arrow select path is skipped (e.g.,_supports_arrow_select()returns false), the numbered-menu fallback has no size check at all. - Rich may be auto-wrapping content to fit the terminal width, so the check passes but the layout breaks silently.
Expected behavior
When the terminal is too narrow for the preflight UI content, the resize warning panel should appear and block until the operator enlarges the window.
Observed on
Windows, native cmd.exe. Noticed 2026-04-15 after recent preflight UI changes.
- 主要语言
- Python
- 星标
- 0
- 派生
- 1
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
matiasandina/uid_python_api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 3/5 1-2 天 新手友好度 55/100
-
file cleanup未关闭
难度 5/5 一周以上 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 35/100
matiasandina/uid_python_api#14 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 45/100
matiasandina/uid_python_api#13 · 4 条评论 ·
查看 matiasandina/uid_python_api 的全部 Issue
相似的 Issue
-
pydanty:is-working
难度 2/5 1-3 小时 新手友好度 78/100
pydantic/pydantic-ai#8843 ·
维护者通常 1 天内回复
-
breaking change enhancement server
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复