Repository navigation
feat(web): open, edit and save files an agent names - #498
Merged
Merged
Conversation
M-Zajace
force-pushed
the
feat/file-viewer
branch
from
November 10, 2026 13:26
19a8c26 to
7e6bec6
Compare
M-Zajace
force-pushed
the
feat/file-access
branch
from
November 10, 2026 13:26
c75c754 to
9a26345
Compare
M-Zajace
force-pushed
the
feat/file-viewer
branch
from
November 10, 2026 13:47
7e6bec6 to
0a3f692
Compare
File paths in an agent's messages (inline code and Markdown links) are buttons in a thread. By default they open Canopy's file viewer: Markdown rendered or as source, other files highlighted by extension, editing in CodeMirror 6 (loaded on first edit, colours from the theme's code tokens) with an unsaved-changes badge, Mod+S, a conflict when the file changed on disk, Delete and Open in default app. The device setting "Open files in" can open them straight in the worker computer's default app instead.
The file viewer shows line numbers in a column that is never selected. Mod+A in the viewer selects only the focused file content and nothing outside it, and closing the viewer clears the selection, so the page behind it is never left selected.
M-Zajace
force-pushed
the
feat/file-viewer
branch
from
November 10, 2026 15:49
c2899d1 to
90e3f79
Compare
M-Zajace
force-pushed
the
feat/file-access
branch
from
November 10, 2026 15:49
f6b1a14 to
9c15c73
Compare
M-Zajace
marked this pull request as ready for review
November 10, 2026 15:57
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.
Stack 3/3 (base: worker/gateway file access).
Summary
out/report.md,C:\work\q.sql,~/notes.txt,src/app.ts:12) and Markdown links to files ([report](out/report.md),file:///…).@codemirror/language-data, colours from the theme's--code-*tokens and palette); Unsaved changes badge in reserved space, Mod+S, close asks before discarding, conflict when the file changed on disk (Discard and reload), Delete… with confirmation, Open in default app, Copy path, Reload. Editing is off for binary, truncated and >400 KB files (BFF body limit 512 KB).@codemirror/{state,view,commands,language,language-data,search,autocomplete},@lezer/highlight.docs/ui-api.md"Pliki wątku".Verification
vite buildclean.Copy audit (docs/copy.md §8)
Edit,Save,Discard changes,Stop editing,Reload,Open in default app,Delete…,Delete file,Cancel,Keep editing,Discard and reload; tooltipOpen <path>;Copy path.Delete file?(confirm button repeats the verb:Delete file),Discard unsaved changes?(confirmDiscard changes).Unsaved changes;Opening the file…;This file is empty.;Canopy cannot show this file. Open it in its default app.;Showing the first 2 MB. Open the file in its default app to see all of it.;Files over 400 KB open read-only.This file no longer exists.,This file is outside the thread's folders, so Canopy cannot open it.,Only files can be opened, not folders.,The file changed on disk since you opened it. Reload it to see the changes.,Open the file again before changing it.,This computer is offline. Reconnect it to open files.,Update this computer to open files from Canopy.,This file is too large to save from Canopy.,No app on this computer opened the file. Copy the path instead.,The editor could not load. Reload Canopy and try again.Open files in— "Where a file path in an agent's message opens when you click it." OptionsCanopy/Default app.