Repository navigation
Open Codex file links in a docked preview (COD-152) - #850
Conversation
|
Thanks a lot for this! With this PR a Codex session can open the files it links (from the transcript, a sidebar tab or the new Response files list) in Codeman's own preview, docked beside the terminal. The transcript lookup is well guarded: it refuses ambiguous labels, ignores stale clicks and renders inside a template. A few things need to change before it can go in. Needs a fix
Smaller things
Open question (not decided yet)
Once 1 to 3 are in and the open question is settled, this can go through another review. |
|
Thanks for the thorough follow-up! With this PR a Codex session can open the files it links (from a link in the pane, a sidebar tab or the Response files list) in Codeman's own preview, docked beside the terminal. This round fixes every numbered item from the first review: More is back, the dock no longer ends up inside the split container, focus returns to the right pane, relative paths follow the pane directory, the checks key on Needs a fix
Smaller things
Still open (not decided yet) The question from the first review hasn't changed and is still open. It covers three things: whether the Response files button shows on phones and for every Codex session without a setting ( Once 1 to 3 are in, this can go through another review. 4 to 7 can come along in the same push. |
|
The open question is decided: one setting, off by default. The three behaviours go behind a single opt-in setting, a per-device one like the other header buttons (a display key in
With the setting off, nothing changes for anyone: no new header button, clicks reach Codex as before, and the preview has no Dock button. On phones the header keeps its rule (one opt-in header button, the File Viewer), so Response files stays out of the phone header even with the setting on. Please describe the setting in The items from the last review stand as written: the two tests that fail at the PR head (your new desktop-click test and the |
The Response files header button, taking a click on a Codex sidebar file tab (and the link suppression on those rows) and the Dock control on file previews now sit behind one per-device setting, codexFilePreviewsEnabled (App Settings > Header buttons > Codex files), default off. With it off none of the three exists, and Response files stays off phones even with it on. Also from the second review: the docked preview is z-index auto so it sits under modals and the response viewer, a double-click no longer opens the preview, the parsed conversation is cached per idle session until its next turn, the Response files rows are buttons, and the two tests that failed at the previous head pass. Documented in Settings-Reference, Working-With-Files and src/web/CLAUDE.md.
|
Thanks for settling the open question. This push puts the three behaviours behind one setting and covers every item from the second review. Everything is in The setting
Second review
Left to you A click on a label Codex underlined in the pane (not the sidebar) still opens the preview with the setting off. Your list named the button, the sidebar tab and Dock, and that click is the main feature of the PR, so I left it ungated. If you want it behind the setting too, it is one more check in Evidence
|
|
Thanks for the careful third round! This PR lets a Codex session open the files it links in Codeman's own file preview. Clicking an underlined file name in the pane does that for everyone. The new per-device Codex files setting (off by default) adds a Response files header button, takes clicks on Codex's sidebar file tabs, and adds a Dock button that puts the preview beside the terminal. Everything from the last two reviews is in. The two tests that failed now pass, and the docked preview sits under modals and the response viewer. The double-click and caching fixes, the One small thing is left, and I will fix it at merge time:
Thanks again for sticking with this through three rounds. |
The Dock button's hidden attribute was set only when a preview opened, so with a preview open, switching Codex files off left a Dock button that did nothing and switching it on showed none until the next preview. applyHeaderVisibilitySettings() now sets it beside the Response files button, and a test flips the setting with a preview open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the four PR changesets (claude-starts-under-root, installer-headless-sudo, trusted-proxy-sign-in, upload-html-documents) and names #850, #859, #860 and #866, which brought none. Patch: #854's changeset asked for minor, which is the owner's call at COM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing 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>
|
Merged, and shipped in Codeman 1.52.1. Two things changed at merge time:
Thank you for sticking with this through three rounds. |
Summary
Open a Codex transcript file link or a native sidebar filename in Codeman’s existing file preview when the session transcript identifies one matching file. For shortened tabs, match both visible ends of the filename. Preserve the native click when more than one linked file matches.
Add a Response files picker and a dock beside the terminal. On narrower screens the preview floats. The existing preview router still handles path authorization and file rendering.
Prevent the generic terminal link detector from treating the suffix of a filename with spaces as a separate file.
Restore More in the normal response viewer and return keyboard focus to the originating pane when appropriate.
Keep the preview floating in split, tiled, web-tab, and narrow layouts. Resolve relative links against the pane's current directory and use the published transcript capability.
Open decisions
The current behavior is unchanged pending maintainer review. This includes the Response files button on phones, whether matching Codex sidebar clicks bypass Codex, and the Dock control on file previews.
Verification