You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(codex): TUI 模态弹窗(额度<10% 切 luna 确认等)吞掉提交 Enter,导致 submit_unconfirmed 且消息未执行 #1281
弹窗三个选项:Switch to gpt-5.6-luna / Keep current model / Keep current model (never show again);构造时未设 initial_selected_idx,首项默认选中,裸 Enter 即触发 UpdateModel + reasoning effort 覆盖为 luna 预设。因此传统粘贴链路补的提交 Enter 不只是「被吞」(submit_unconfirmed),也可能直接确认切换(模型与 effort 静默降级)。
Activity
DeepColds commentedon Sep 11, 2026
补充「额度 <10% 切 luna 确认框」的上游机制定位与一个进程级规避键:
机制(codex 0.151.0 二进制 + openai/codex main 源码核实)
codex-rs/tui/src/chatwidget/rate_limits.rs中RATE_LIMIT_SWITCH_PROMPT_THRESHOLD = 90.0,主额度用量 ≥90%(剩余 <10%)时把rate_limit_switch_prompt置为 Pending 并弹出 selection view,标题 "Approaching rate limits",副标题 "Switch to gpt-5.6-luna for lower credit usage?"。Switch to gpt-5.6-luna/Keep current model/Keep current model (never show again);构造时未设initial_selected_idx,首项默认选中,裸 Enter 即触发UpdateModel+ reasoning effort 覆盖为 luna 预设。因此传统粘贴链路补的提交 Enter 不只是「被吞」(submit_unconfirmed),也可能直接确认切换(模型与 effort 静默降级)。规避键(上游官方配置,
codex-rs/core/config.schema.json顶层notice表;TUI 选 "never show again" 时core/src/config/edit.rs持久化的也是它):进程级等价形式:
-c notice.hide_rate_limit_model_nudge=true。修复 PR:#1367(botmux 在普通 TUI 与
--remoteviewer 两条 TUI 启动形态上无条件注入该进程级覆盖,并同步 aiden/cjadk wrapper 的参数白名单)。fix(codex): 进程级关闭低额度切 luna 的模型 nudge 弹窗
deepcoldy commentedon Oct 25, 2026
已由维护者核对:标题点名的「额度<10% 切 luna」弹窗已由 #1367 进程级关闭(notice.hide_rate_limit_model_nudge),通用模态框识别没做;把握中等
先关闭这个 issue。如果在最新版本上仍能复现,欢迎随时 reopen 或补充复现步骤。