fix(web): the Codex in-pane file click is behind the Codex files setting too

Owner decision for 1.52.1: #850 left a click on a file name Codex
underlined in the pane ungated, so it opened the preview for everyone.
_handleDesktopTerminalClick() now asks _codexFilePreviewsEnabled() first;
off, every click in a Codex pane goes on to Codex as before (main
terminal, split pane and tiles share that handler). The setting now
gates four behaviours: the chip's tooltip (and its zh-CN), the wiki,
src/web/CLAUDE.md and the off-state test say so. The new test fails
without the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-12-03 10:55:34 +01:00
1 parent 3994196341
commit 5f4951884f
8 files changed
+74 -20

No files matched your search

+5 -4
View File
@@ -68,13 +68,14 @@ Manager, Attachments, Edit history, File Viewer, Multi-monitor, Split, Tiles, Pl
Project Insights, File Browser, Subagents, Approvals Inbox, Read My Mind, Ultracode Agents,
Ultracode Windows, Cron.
**Codex files** (off by default, per device) switches on three extras for Codex sessions, together:
a **Response files** header button that lists the previewable files linked in the latest reply
**Codex files** (off by default, per device) switches on four extras for Codex sessions, together:
a click on a file name Codex underlined in the pane opening that file in the preview when it names a
single supported file from the conversation (off, the click goes to Codex), a **Response files** header button that lists the previewable files linked in the latest reply
(desktop only: phones keep File Viewer as their one header button, even with this on), a click on a
file name in Codex's own sidebar opening that file in the preview when it matches a single linked
file (off, the click goes to Codex), and a **Dock** button on file previews that, on a window 1180px
or wider with a single terminal, docks the preview beside the terminal. With it off none of the three
exists. Clicking a file name Codex underlined in the pane opens the preview either way.
or wider with a single terminal, docks the preview beside the terminal. With it off none of the four
exists, and every click in a Codex pane goes to Codex as before.
**Host readings** (opt-in, both off by default and per device): **GPU Stats** adds three items after CPU and MEM: GPU load, graphics memory and the GPU clock,
and **CPU MHz** adds the live CPU clock. Both sets of items live inside **System Stats**, so they show only
+4 -4
View File
@@ -142,10 +142,10 @@ File paths in a session are links. That works in two places:
render as underlined monospace links. A Markdown link whose target is a path
(`[report](/tmp/run/report.json)`, the way Codex cites files) opens the same way.
In a Codex session, clicking a file name Codex underlined opens it in Codeman's preview
when it names a single supported file from the conversation; anything else goes to Codex as
before. The **Codex files** setting (App Settings > Header buttons, per device, off by
default) adds three more: a **Response files** header button that lists the files linked in
In a Codex session, with the **Codex files** setting on (App Settings > Header & Panels,
per device, off by default), clicking a file name Codex underlined opens it in Codeman's
preview when it names a single supported file from the conversation; anything else goes to
Codex as before. The same setting adds three more: a **Response files** header button that lists the files linked in
the latest reply (desktop only), a file name in Codex's own sidebar opening the preview when it
matches a single linked file, and a **Dock** button that, on a wide window with a single
terminal, switches between a preview beside the terminal and a floating one.