Repository navigation
Conversation
Harness-Claim: true Agent: switchboard-dev Host: ANCHOR Base-Ref: origin/main Base-SHA: 7b3a4b0 Claimed-At: 2026-11-07T22:15:04.8580104Z Nonce: 1ce6b5e6c3b78333
A touched image file now opens as a preview in the file panel instead of a text editor.
…l actions Show in folder and Open with the default app now say when they fail; a refused open clears on refresh; a stale image error no longer replaces a valid image; text files that start like GIF or WebP open as text.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1025.
An image opened from a session's file link in the Touched panel now shows as a preview, instead of a refused binary file.
GIF89astill opens as text. SVG stays text.data:URL; the CSP is unchanged.show-item-in-folderIPC. Main runs its checks in this order: absolute path, raw.gitsegment,.gitsegment after realpath, sensitive path, regular file. "Open with the default app" goes throughopen-pathwithviewer: true, which applies an extension allowlist (the five image types plus PDF) in main as well as in the renderer. Both buttons now show a visible error when they fail.viewerallowlist protects against a renderer bug, not against a hostile renderer, which could leave the flag out. This is documented in.ai/contexts/ipc-bridge.md; the terminal-menu route is out of scope (spec §3).test/dom-file-panel-images.test.js, becausedom-file-panel-touchedwas close to the 120 s cap.Two follow-ups are not done here:
reasonexposes the fs error message, an existence oracle limited to the caller's own path.