usage 0.11.19
新功能 1 項
新增「隱藏 Codex 區塊」開關,不用 Codex 也能讓面板保持清爽
你現在可以在選單列裡找到一個「隱藏 Codex 區塊」的新選項。如果你平常只用 Claude 而不用 Codex,只要打開這個選項,所有 9 款 HTML 面板裡的 Codex 卡片就會全部收起來,彈出視窗(popover)的高度也會自動跟著縮減,幫你省下寶貴的螢幕空間。這個設定會被系統記住,重新開機也不用重調。對於想要自己新增面板的開發者,我們也加強了防呆機制——現在在程式碼裡強制規定必須明確指定 Codex 卡片的高度,如果忘了寫,系統在載入時就會立刻報錯提醒,而不是像以前一樣默默套用預設高度而導致版面錯位。這就像是買便當不吃配菜可以勾選「不要配菜」來換取更小的餐盒;同時廚房的點餐系統也加了防呆,沒填包裝盒尺寸的訂單直接退回,再也不會出現大便當裝小菜的尷尬情況。
官方原文
**"Hide Codex Section" menu toggle**: the menubar gained a "Hide Codex Section" option that collapses the Codex card across all 9 HTML panels and shrinks popover height per-panel. The preference persists via NSUserDefaults so it survives restarts. i18n keys added for all 5 locales. (PR #19, thanks @RayCHWong for the first-time contribution)
**HTMLPanel.codex_card_height is now a required keyword-only argument with no default**: previously the parameter had a 192.0 default, so a new panel that forgot to set its height in panels/__init__.py would silently fall back to the default — the Codex card would render at a height that doesn't match the rest of the panel without raising any error. Now declared as *, codex_card_height: float (keyword-only, no default), so any missing call site raises TypeError at import. All 9 existing panels already pass it by keyword and are unaffected; added test_html_panel_requires_explicit_codex_card_height to lock the contract.