Repository navigation
B87: saved copies of trail pages - #71
Merged
Merged
Conversation
Save a Copy of This Page (File menu, right-click) and Save a copy on a page card save the page as an MHTML file named by its SHA-256, with its text, on this computer. Keep copies in a trail's menu saves one for each page that becomes a card. The card shows the newest copy and opens it after checking its hash. Trail files list copies; they are sent only when ticked, in a folder beside the file, and checked when the file is opened. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011V7Bv7WZ9Q92MZoNWYwevQ
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.
B87. Saved copies of trail pages: offered, never forced, kept on your computer, checked by SHA-256.
Saving (your choice: button + trail setting)
The copy (your choice: MHTML + text)
On the card (your choice: card mark + send when ticked)
Sharing
Copy: 8 Nov 2026 10:05 · SHA-256 ….Code
core/trail.js:addCopy,copyHashes,setKeepCopies, eventcopied,keepCopiesinlist().core/trail-file.js: the Copy lines and thecopiesoption.main.js:saveCopyOf,copyTab,copyUrl,openCopy,cleanCopies,takeCopies; channelstrail:copy-save,trail:copy-open,trail:keep-copies; share save with copies; menu items.renderer/canvas.js,app.js,index.html,styles.css: card line, selection bar button, Keep copies chip, share sheet choice. Tokens only.Not in this PR: the Chromium build; search past trails (B89) doesn't read the copies' text yet.
Tests
test/copies-demo.js(npm run test:copies, intest:unit): 4 checks.test/e2e/53-saved-copies.js(20 checks), in both CI e2e lists.test:unit, and e2e 27, 33, 36, 38, 42, 43, 44, 49, 51 and 52 still pass.Generated by Claude Code