GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat(web): file links open remotely, full size, download from their menu by scuttletoby · Pull Request #17 · scuttletoby/t3code Conversation
|
| Finding | Fix | Test (red on 29d9d44, green on the fix) |
|---|---|---|
Major, security: a .. or %2E%2E segment in a linked path survived into zed://ssh/<host>/… and vscode://vscode-remote/ssh-remote+<host>/…. URL parsing removes it together with the host segment, so the next segment became the host ([x](/../evil.example/x.ts) → zed://ssh/evil.example/x.ts). |
buildRemoteOpenUrl resolves dot segments before encoding (never above / or C:), and returns undefined when new URL(url).href !== url. openRemoteEditorUrl (browser) and parseSafeExternalUrl (desktop) also refuse a remote editor URL that does not parse back to itself. |
packages/contracts/src/editor.test.ts (new, 22 of 24 red: /../, /./../, /srv/../../, C:\..\ for vscode, cursor and zed. The URL must parse to itself and keep dev@devbox). MarkdownFileLink.logic.test.ts: real link hrefs /../…, /%2E%2E/…, /.%2e/… for vscode and zed (5 red). remoteOpen.test.ts: the browser opener refuses both forms (2 red). ElectronShell.test.ts: the desktop refuses zed and vscode with .. and %2E%2E (1 red). |
Major, correctness: Android (touch & hold delay ≥ 500 ms) and Windows touch (fires on lift) send their own contextmenu after the long-press timer has opened the menu. The fallback menu's document listener took it as an outside right-click and closed the menu at once. |
When the timer opens the menu, a one-shot window capture listener swallows the first contextmenu on the chip before the menu's document listener sees it. The next pointer or key press ends the wait, and so does unmount (iOS sends none). |
ChatMarkdown.permissions.browser.test.tsx "keeps the real long-press menu open when Android / Windows touch sends its own contextmenu late": uses the real showContextMenuFallback (no mock), the full fake-timer set so the menu's arming frames run, then a contextmenu on the chip. The menu must stay, and the next outside pointerdown still dismisses it (2 red). |
| Minor: the download test passed with the download removed. | The test now gives the asset a URL and a connection base. It asserts the fetched URL, the saved file name and the saved bytes. | Mutation: await downloadFile(url, fileName) replaced by a no-op → red ("expected [] to have a length of 1"). |
| Minor: "opens zed at a file's line" asserted a URL without a line. | Zed and JetBrains ssh links have no position field (not verified that they accept one, so none is sent). The test is now "opens $editor on the file without its line" for zed and idea, and the menu label never claims a line. | Renamed test (a name fix, so green on both). |
| Minor: after a long press, keyboard Enter and the menu key were ignored until the next touch. The timer was not cleared on unmount. | Only a click with detail > 0 (the touch's own click) is suppressed, and only once. The menu-key contextmenu is no longer blocked. Unmount clears the timer and the listener. |
"takes keyboard Enter and the menu key on a chip after a long press" (red). "does not open a menu for a chip that unmounts during a long press" (red). |
The existing long-press test simulated the touch-end click with element.click(), which is detail: 0 (keyboard-like). It now dispatches the detail: 1 click a real tap produces.
The same pattern elsewhere (search on this branch): git grep -nE 'map\(encodeURIComponent\)|encodeURIComponent\)\.join\("/"\)' -- apps packages ':!*.test.*' and git grep -nE '`[a-z+.-]+://\$\{|`\$\{[a-zA-Z.]+\}://' -- 'apps/*.ts' 'apps/*.tsx' 'packages/*.ts' 'packages/*.tsx' ':!*.test.*'. The only URLs whose host sits in the path are the two in buildRemoteOpenUrl (fixed here). The JetBrains link carries the path in a query value. The other per-segment encoders (GitHub/Forgejo contents/<path>, Forgejo branch refs, Cursor Origin repos, releaseAssetUrl) build https:// URLs with the host in the authority, so a .. cannot change the host there. In the GitHub/Forgejo contents/<path> reads, a .. in a diff file path could move within the same API host. Those paths come from git trees, which refuse .. entries. Not changed here; noted as a possible upstream-side hardening.
Checks, run locally (fork CI is off) with GH_TOKEN/GITHUB_TOKEN unset and an empty GH_CONFIG_DIR: node scripts/check-changed.ts f72c8805e at 8fbc467 passes every step: format, lint, knip 1/2 and 2/2, typecheck of 37 packages, the 9 affected test files (130 tests), and the React compiler check. Also: the full contracts suite (195 tests) and the desktop suite. In the desktop suite only browser-secret-native fails, because this VM has no libsecret-1 dev package. DesktopWindow.test.ts timed out once in the parallel run and passes alone (38/38). 086c35c only swaps the test user name for a placeholder; the three touched test files pass again (24, 10, 28).
Test-only, no code change: no new test found a bug. Each test was shown red with the listed hand-break, one at a time, then reverted.
| Gap | Test | Red with |
|---|---|---|
The keyboard test ended the long press with a detail: 1 click, which already reset fired, so it could not fail. |
"takes keyboard Enter and the menu key on a chip after a long press that ends with no click" (a variant beside the existing "ends with a click"; phones usually send no click). | Removing event.detail === 0 in consumeLongPressClick; or putting if (longPress.current.fired) return; back in handleContextMenu. |
No test that a right-click or long press is still taken after a long press that got no late contextmenu (iOS). |
"takes a right-click and a new long press after a long press that got no late contextmenu": long press, right-click, long press, right-click, expecting 4 menus. | Removing both pointerdown releases (the window pointerdown listener and releaseLateContextMenu() in handlePointerDown). Either one alone stays green, as intended. |
| "refuses a host that would itself change the URL's authority" used hosts that are encoded into one segment, so it could not fail. | "refuses a Zed host of . / .." expects undefined (zed://ssh/../a.ts parses to zed://ssh/a.ts). The old case is kept as "keeps a host with a slash inside its own encoded segment", now asserting a defined URL. |
parsesToItself returning the URL unchanged (2 red). |
Checks (GH_TOKEN/GITHUB_TOKEN unset, empty GH_CONFIG_DIR): browser ChatMarkdown.permissions 14/14, web unit remoteOpen + MarkdownFileLink.logic 41/41, contracts full suite 197/197, lint and the web and contracts typechecks clean, pre-push fmt/lint/knip pass.
Fully general. The host, user and editor come from the user's existing connection settings and the server's advertised targets. There are no host names, paths or project facts in the code. The test fixtures use placeholder hosts (devbox, devbox.example.ts.net) and paths (/work/..., /home/dev/project).
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A file link in a chat reply only offered copy actions in its context menu when the environment runs on another machine, and touch screens had no menu at all. The menu now offers, wherever the client runs: - Open in files viewer, and Open full size (the panel maximized) - Open in <editor> at the linked line: on a remote environment this builds the editor's remote URL (e.g. vscode-remote ssh) from the existing SSH profile or the server's remote-open targets, the same host the header's Open in picker uses - Download to this device, through the environment's media asset URL - Copy relative path, full path (with line), full path without line A touch long press opens the same menu and suppresses the click that follows it. Plain click is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: correctness C · reviewer: opus high (t3lens-17-correctness) · read at: 29d9d44 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: security S · reviewer: opus high (t3lens-17-security) · read at: 29d9d44
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…rvives a late contextmenu Round 1 of the file link menu review. - A `..` (or `%2E%2E`) segment in a linked path reached the remote editor URL, where every URL parser removes it together with the host segment in front of it: `zed://ssh/me@devbox/../evil/x` opens `evil`. The builder now resolves dot segments (never above the root or a Windows drive) and returns nothing for a URL that does not parse back to itself. The browser opener and the desktop's external URL check refuse such a remote editor URL too. - Android (after its touch & hold delay) and Windows touch (on lift) send their own contextmenu after the 500 ms long-press timer has opened the menu, and the menu closed on it. The first contextmenu on the chip after a long-press open is now swallowed before the menu sees it; the next pointer or key press ends that wait. - After a long press only the touch's own click is suppressed, so keyboard Enter and the menu key work at once; the timer and the listener are cleared on unmount. - The download test now checks the fetched asset URL, the saved name and the bytes; the Zed and JetBrains tests say that their ssh links carry no line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: correctness C r2 · reviewer: opus high (t3lens-17-correctness-r2) · read at: 086c35c
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
lens: security S r2 · reviewer: opus high (t3lens-17-security-r2) · read at: 086c35c
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…d dot host - Keyboard Enter and the menu key after a long press that ends with no click (the usual phone case); goes red without the detail-0 check or with the old fired guard back in the contextmenu handler. - A right-click and a new long press after a long press that got no late contextmenu (iOS); goes red when both pointerdown releases are removed. - A Zed host of "." or ".." is refused; goes red when parsesToItself always returns the URL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
lens: quick-check (fix 086c35c..fb7a163) · reviewer: opus high (orchestrator) · read at: fb7a163 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closed and reopened only to start fork CI after workflows were enabled on the fork. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…enu (#17) * feat(web): file links open remotely, full size, download from their menu A file link in a chat reply only offered copy actions in its context menu when the environment runs on another machine, and touch screens had no menu at all. The menu now offers, wherever the client runs: - Open in files viewer, and Open full size (the panel maximized) - Open in <editor> at the linked line: on a remote environment this builds the editor's remote URL (e.g. vscode-remote ssh) from the existing SSH profile or the server's remote-open targets, the same host the header's Open in picker uses - Download to this device, through the environment's media asset URL - Copy relative path, full path (with line), full path without line A touch long press opens the same menu and suppresses the click that follows it. Plain click is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): remote editor links keep their host; the long-press menu survives a late contextmenu Round 1 of the file link menu review. - A `..` (or `%2E%2E`) segment in a linked path reached the remote editor URL, where every URL parser removes it together with the host segment in front of it: `zed://ssh/me@devbox/../evil/x` opens `evil`. The builder now resolves dot segments (never above the root or a Windows drive) and returns nothing for a URL that does not parse back to itself. The browser opener and the desktop's external URL check refuse such a remote editor URL too. - Android (after its touch & hold delay) and Windows touch (on lift) send their own contextmenu after the 500 ms long-press timer has opened the menu, and the menu closed on it. The first contextmenu on the chip after a long-press open is now swallowed before the menu sees it; the next pointer or key press ends that wait. - After a long press only the touch's own click is suppressed, so keyboard Enter and the menu key work at once; the timer and the listener are cleared on unmount. - The download test now checks the fetched asset URL, the saved name and the bytes; the Zed and JetBrains tests say that their ssh links carry no line. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: placeholder user in the remote editor URL tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test the long press without an ending click, the iOS release and a Zed dot host - Keyboard Enter and the menu key after a long press that ends with no click (the usual phone case); goes red without the detail-0 check or with the old fired guard back in the contextmenu handler. - A right-click and a new long press after a long press that got no late contextmenu (iOS); goes red when both pointerdown releases are removed. - A Zed host of "." or ".." is refused; goes red when parsesToItself always returns the URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork file links: the fork's part sits in files of its own (#475) Folded into this patch, so that it carries the small seam from the start and no later patch has to take fork lines out of upstream's files again. The fork's changes used to sit inside upstream's MarkdownFileLink.tsx, MarkdownFileLink.logic.ts and ChatMarkdown.tsx and replaced upstream's menu there, so two nightlies in a row stopped the rebase on these three files. Upstream's lines are left as they are and the fork only adds to them: - forkMarkdownFileLinkMenu.ts: the fork's menu entries are joined onto the menu upstream builds (files viewer after the media preview, download after the other opens, path without line after the other copies), so upstream's own entries and translated labels arrive unchanged, and an entry upstream adds later shows up by itself. The remote editor link builder is here too. - forkMarkdownFileLinkActions.ts: the long press menu for touch, the download with its failure toast, and the editor over SSH (a hook that gives the link its props after upstream's). - MarkdownFileLink.logic.ts is upstream's file, byte for byte. - MarkdownFileLink.tsx: one upstream line changed (the menu call), the rest are added lines. ChatMarkdown.tsx: added lines only; the imports the fork needs are lines of their own beside upstream's. Behaviour is the same as with the fork's lines inside upstream's files: the menu's entries, order, labels and separator were compared with the old builder for all 256 combinations of its inputs, and the tests in forkMarkdownFileLinkMenu.test.ts pin them. Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…enu (#17) * feat(web): file links open remotely, full size, download from their menu A file link in a chat reply only offered copy actions in its context menu when the environment runs on another machine, and touch screens had no menu at all. The menu now offers, wherever the client runs: - Open in files viewer, and Open full size (the panel maximized) - Open in <editor> at the linked line: on a remote environment this builds the editor's remote URL (e.g. vscode-remote ssh) from the existing SSH profile or the server's remote-open targets, the same host the header's Open in picker uses - Download to this device, through the environment's media asset URL - Copy relative path, full path (with line), full path without line A touch long press opens the same menu and suppresses the click that follows it. Plain click is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): remote editor links keep their host; the long-press menu survives a late contextmenu Round 1 of the file link menu review. - A `..` (or `%2E%2E`) segment in a linked path reached the remote editor URL, where every URL parser removes it together with the host segment in front of it: `zed://ssh/me@devbox/../evil/x` opens `evil`. The builder now resolves dot segments (never above the root or a Windows drive) and returns nothing for a URL that does not parse back to itself. The browser opener and the desktop's external URL check refuse such a remote editor URL too. - Android (after its touch & hold delay) and Windows touch (on lift) send their own contextmenu after the 500 ms long-press timer has opened the menu, and the menu closed on it. The first contextmenu on the chip after a long-press open is now swallowed before the menu sees it; the next pointer or key press ends that wait. - After a long press only the touch's own click is suppressed, so keyboard Enter and the menu key work at once; the timer and the listener are cleared on unmount. - The download test now checks the fetched asset URL, the saved name and the bytes; the Zed and JetBrains tests say that their ssh links carry no line. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: placeholder user in the remote editor URL tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test the long press without an ending click, the iOS release and a Zed dot host - Keyboard Enter and the menu key after a long press that ends with no click (the usual phone case); goes red without the detail-0 check or with the old fired guard back in the contextmenu handler. - A right-click and a new long press after a long press that got no late contextmenu (iOS); goes red when both pointerdown releases are removed. - A Zed host of "." or ".." is refused; goes red when parsesToItself always returns the URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork file links: the fork's part sits in files of its own (#475) Folded into this patch, so that it carries the small seam from the start and no later patch has to take fork lines out of upstream's files again. The fork's changes used to sit inside upstream's MarkdownFileLink.tsx, MarkdownFileLink.logic.ts and ChatMarkdown.tsx and replaced upstream's menu there, so two nightlies in a row stopped the rebase on these three files. Upstream's lines are left as they are and the fork only adds to them: - forkMarkdownFileLinkMenu.ts: the fork's menu entries are joined onto the menu upstream builds (files viewer after the media preview, download after the other opens, path without line after the other copies), so upstream's own entries and translated labels arrive unchanged, and an entry upstream adds later shows up by itself. The remote editor link builder is here too. - forkMarkdownFileLinkActions.ts: the long press menu for touch, the download with its failure toast, and the editor over SSH (a hook that gives the link its props after upstream's). - MarkdownFileLink.logic.ts is upstream's file, byte for byte. - MarkdownFileLink.tsx: one upstream line changed (the menu call), the rest are added lines. ChatMarkdown.tsx: added lines only; the imports the fork needs are lines of their own beside upstream's. Behaviour is the same as with the fork's lines inside upstream's files: the menu's entries, order, labels and separator were compared with the old builder for all 256 combinations of its inputs, and the tests in forkMarkdownFileLinkMenu.test.ts pin them. Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…enu (#17) * feat(web): file links open remotely, full size, download from their menu A file link in a chat reply only offered copy actions in its context menu when the environment runs on another machine, and touch screens had no menu at all. The menu now offers, wherever the client runs: - Open in files viewer, and Open full size (the panel maximized) - Open in <editor> at the linked line: on a remote environment this builds the editor's remote URL (e.g. vscode-remote ssh) from the existing SSH profile or the server's remote-open targets, the same host the header's Open in picker uses - Download to this device, through the environment's media asset URL - Copy relative path, full path (with line), full path without line A touch long press opens the same menu and suppresses the click that follows it. Plain click is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): remote editor links keep their host; the long-press menu survives a late contextmenu Round 1 of the file link menu review. - A `..` (or `%2E%2E`) segment in a linked path reached the remote editor URL, where every URL parser removes it together with the host segment in front of it: `zed://ssh/me@devbox/../evil/x` opens `evil`. The builder now resolves dot segments (never above the root or a Windows drive) and returns nothing for a URL that does not parse back to itself. The browser opener and the desktop's external URL check refuse such a remote editor URL too. - Android (after its touch & hold delay) and Windows touch (on lift) send their own contextmenu after the 500 ms long-press timer has opened the menu, and the menu closed on it. The first contextmenu on the chip after a long-press open is now swallowed before the menu sees it; the next pointer or key press ends that wait. - After a long press only the touch's own click is suppressed, so keyboard Enter and the menu key work at once; the timer and the listener are cleared on unmount. - The download test now checks the fetched asset URL, the saved name and the bytes; the Zed and JetBrains tests say that their ssh links carry no line. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: placeholder user in the remote editor URL tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test the long press without an ending click, the iOS release and a Zed dot host - Keyboard Enter and the menu key after a long press that ends with no click (the usual phone case); goes red without the detail-0 check or with the old fired guard back in the contextmenu handler. - A right-click and a new long press after a long press that got no late contextmenu (iOS); goes red when both pointerdown releases are removed. - A Zed host of "." or ".." is refused; goes red when parsesToItself always returns the URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork file links: the fork's part sits in files of its own (#475) Folded into this patch, so that it carries the small seam from the start and no later patch has to take fork lines out of upstream's files again. The fork's changes used to sit inside upstream's MarkdownFileLink.tsx, MarkdownFileLink.logic.ts and ChatMarkdown.tsx and replaced upstream's menu there, so two nightlies in a row stopped the rebase on these three files. Upstream's lines are left as they are and the fork only adds to them: - forkMarkdownFileLinkMenu.ts: the fork's menu entries are joined onto the menu upstream builds (files viewer after the media preview, download after the other opens, path without line after the other copies), so upstream's own entries and translated labels arrive unchanged, and an entry upstream adds later shows up by itself. The remote editor link builder is here too. - forkMarkdownFileLinkActions.ts: the long press menu for touch, the download with its failure toast, and the editor over SSH (a hook that gives the link its props after upstream's). - MarkdownFileLink.logic.ts is upstream's file, byte for byte. - MarkdownFileLink.tsx: one upstream line changed (the menu call), the rest are added lines. ChatMarkdown.tsx: added lines only; the imports the fork needs are lines of their own beside upstream's. Behaviour is the same as with the fork's lines inside upstream's files: the menu's entries, order, labels and separator were compared with the old builder for all 256 combinations of its inputs, and the tests in forkMarkdownFileLinkMenu.test.ts pin them. Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…enu (#17) * feat(web): file links open remotely, full size, download from their menu A file link in a chat reply only offered copy actions in its context menu when the environment runs on another machine, and touch screens had no menu at all. The menu now offers, wherever the client runs: - Open in files viewer, and Open full size (the panel maximized) - Open in <editor> at the linked line: on a remote environment this builds the editor's remote URL (e.g. vscode-remote ssh) from the existing SSH profile or the server's remote-open targets, the same host the header's Open in picker uses - Download to this device, through the environment's media asset URL - Copy relative path, full path (with line), full path without line A touch long press opens the same menu and suppresses the click that follows it. Plain click is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): remote editor links keep their host; the long-press menu survives a late contextmenu Round 1 of the file link menu review. - A `..` (or `%2E%2E`) segment in a linked path reached the remote editor URL, where every URL parser removes it together with the host segment in front of it: `zed://ssh/me@devbox/../evil/x` opens `evil`. The builder now resolves dot segments (never above the root or a Windows drive) and returns nothing for a URL that does not parse back to itself. The browser opener and the desktop's external URL check refuse such a remote editor URL too. - Android (after its touch & hold delay) and Windows touch (on lift) send their own contextmenu after the 500 ms long-press timer has opened the menu, and the menu closed on it. The first contextmenu on the chip after a long-press open is now swallowed before the menu sees it; the next pointer or key press ends that wait. - After a long press only the touch's own click is suppressed, so keyboard Enter and the menu key work at once; the timer and the listener are cleared on unmount. - The download test now checks the fetched asset URL, the saved name and the bytes; the Zed and JetBrains tests say that their ssh links carry no line. Co-Authored-By: Claude Opus 5.5 <[email protected]> * test: placeholder user in the remote editor URL tests Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test the long press without an ending click, the iOS release and a Zed dot host - Keyboard Enter and the menu key after a long press that ends with no click (the usual phone case); goes red without the detail-0 check or with the old fired guard back in the contextmenu handler. - A right-click and a new long press after a long press that got no late contextmenu (iOS); goes red when both pointerdown releases are removed. - A Zed host of "." or ".." is refused; goes red when parsesToItself always returns the URL. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork file links: the fork's part sits in files of its own (#475) Folded into this patch, so that it carries the small seam from the start and no later patch has to take fork lines out of upstream's files again. The fork's changes used to sit inside upstream's MarkdownFileLink.tsx, MarkdownFileLink.logic.ts and ChatMarkdown.tsx and replaced upstream's menu there, so two nightlies in a row stopped the rebase on these three files. Upstream's lines are left as they are and the fork only adds to them: - forkMarkdownFileLinkMenu.ts: the fork's menu entries are joined onto the menu upstream builds (files viewer after the media preview, download after the other opens, path without line after the other copies), so upstream's own entries and translated labels arrive unchanged, and an entry upstream adds later shows up by itself. The remote editor link builder is here too. - forkMarkdownFileLinkActions.ts: the long press menu for touch, the download with its failure toast, and the editor over SSH (a hook that gives the link its props after upstream's). - MarkdownFileLink.logic.ts is upstream's file, byte for byte. - MarkdownFileLink.tsx: one upstream line changed (the menu call), the rest are added lines. ChatMarkdown.tsx: added lines only; the imports the fork needs are lines of their own beside upstream's. Behaviour is the same as with the fork's lines inside upstream's files: the menu's entries, order, labels and separator were compared with the old builder for all 256 combinations of its inputs, and the tests in forkMarkdownFileLinkMenu.test.ts pin them. Co-Authored-By: Claude Fable 5.2 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
…ecked (#385) (#426) * fork seam check: refuse a pull request's own malformed list (format only) (#385) A pull request is judged by main's list, so its own list was never parsed before merge. A malformed one (bad JSON, the old plain-number "lost", an unknown kind, or a deleted list) then made every later pull request and fork-follow run exit 3, including the pull request that fixes it. The PR run now parses the head's list when the change edits it (format only, never its rules) and refuses a malformed one with exit 1. parseConfig also refuses unknown top-level keys and unknown seam-entry keys ("//..." keys stay comments), so a misspelt block cannot guard nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork: give upstream lines back in pending files (#385) From upstream (as fork-follow runs the seam check) these files lost upstream lines that the fork did not need to touch: - OrchestratorMcpService.ts: delegate_task's generator stays hugged by Effect.fn (Effect.scoped as its pipeable on the closing line), so upstream's 141 re-indented lines come back unchanged; the paced target is named pacedTarget so upstream's `target` lines stay. 147 lost lines -> 4. - EffectWorker.ts: the admitted claim is built first, so upstream's pipe chain keeps its indentation. 8 -> 2. - Imports the fork extended now add a line of their own beside upstream's (cliRelease test; ChatMarkdown.tsx has them from #17 on since the fold for #475; a split that would grow a file on a pull request is left for later), and runtimeLayer.test.ts keeps upstream's import order. No behaviour change. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fork seams: the list fits main from upstream (lost block, ceilings, 3 files) (#385) `fork-seam-check.cjs --from-upstream <base tag> HEAD` (fork-follow's run) refused main. Now it exits 0: - cli/connect.ts and cloud/CloudLink.ts (#313, also before #277) are seam files with their 5 fork lines each; cloud/linkEnvironment.test.ts (#313) is pending (34). - Pending ceilings set to the counts from upstream: raised where #318 and #332 grew a file before #277 set the counts (SettingsPanels, scopedSettings and its test, useScopedSettings, shared/package.json), lowered where the previous commit gave lines back. - A "lost" block in the {"lines", "gone"} form: 34 files, 20 lines that may move unseen (166 in the block #380 proposed). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Claude Fable 5.2 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.