Repository navigation
Allow-list markdown link schemes; stamp refresh nit from #3853 - #3863
Merged
Merged
Conversation
…on same-content bundle Links whose scheme is not http, https, mailto or nodespace (javascript:, data:, vbscript:, with case, whitespace and control-character variants) render as their label text in the node, chat and AST renderers. installed_matches_source rewrites the stamp when the bundle has a new mtime but the same hash, so later launches skip hashing; documents the same-size-same-mtime limit. Refs #3858, #3853 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…p writes View-mode parser/renderer drop unsafe links to label text; isSafeLinkHref decodes character references and refuses protocol-relative and backslash-led references; chat href is attribute-escaped and the simple renderer escapes quotes. Sidecar stamp uses signatures read before hashing and from the installed temp file, and removes its temp file on failure. Refs #3858, #3853 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A DOMPurify hook holds href/src/xlink:href/action/formaction to the link allow-list and drops srcset. extract_sidecar_from removes its temp file when the rename fails and re-checks the bundle's signature before stamping. The stamp-write cleanup test no longer depends on file permissions. Refs #3858, #3853 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Oct 22, 2026
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.
Refs #3858, #3853
#3858
Shared
isSafeLinkHref(http, https, mailto, nodespace, scheme-less). Unsafe links render as label text in:marked-config(node display),chat-markdown,markdown-utils.processLinks,markdown-renderer.svelte. Strips control chars, whitespace, zero-width/format chars before reading the scheme; case-insensitive. Tests: javascript/data/vbscript/file, mixed case, tab/newline/NUL/space/zero-width variants. Mutation-checked (always-true helper fails 4 tests).#3853 nits fixed
installed_matches_sourcestates the same-size-same-mtime limit.Left (not done)
bring_up_machine_wide_daemonHealthy-early-return test (needs injectable launchctl/clear fns).kickstart -kwedged heuristic comment; per-user plist removal;/usr/local/bingating; argv0 truncation for home dirs with spaces (proc_pidpath).bun run test:changedpassed (frontend, scripts, browser, rust).🤖 Generated with Claude Code