Repository navigation
fix(native): render nested and reference markdown images - #206
Merged
Merged
Conversation
rynfar
force-pushed
the
nw/187-nested-images
branch
2 times, most recently
from
November 4, 2026 14:19
9d54acc to
cece993
Compare
Open
rynfar
force-pushed
the
nw/187-nested-images
branch
from
November 4, 2026 15:09
cece993 to
bbabf6b
Compare
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.
Markdown images nested in emphasis or links, and reference-style images, now share native media rendering while surrounding prose retains its formatting and selection. Reference definitions keep first-definition semantics; the owning link keeps the click, and local/unsafe links follow the existing native policy.
The media index retains completed paragraphs and definitions, prepares append work on one background worker with only the latest pending source, and cancels with its cached TextView. Body appends remain incremental; effective definition changes and completed titles invalidate earlier references when needed. Empty anchors and multiline container prose retain their authored behavior.
The latest review fix escapes decoded ampersands when serializing destinations and titles. A focused fail-first regression showed the target
https://host/?q=&becominghttps://host/?q=&and literal title entities decoding again. The same existing core test now checks exact decoded targets/titles for shortcut, collapsed, full, multiline-reference, multiline-definition and multiline-inline forms, including ordinary query ampersands, quotes, angle brackets and backslashes.TR-MEDIA and TV-STREAM remain partial with #187. Their Status/Native/Issue fields are updated; all 129 other ledger rows are byte-for-byte preserved against the actual native base.
Verification provenance:
bbabf6bba9b2177688052ff6a545fe6bea6bc3a18408b40e3435bcc68a55232cec960116b89ecf49Fresh ordinary offscreen verification on this head: six fresh audits pass: light/dark decoded-entity prose, six separate prose states (one source each), selection retained through three zero-notification/zero-window-draw document samples, one initial file-preview load, ten resources visited within four decodes/262,144 bytes, then zero consumers/no timer after leaving. Full-client caret draws remain separate from quiet document results. Inputs and outputs have separate paths; input SHA-256 values are checked before and after each capture. Links were inspected through parser destinations and serialized prose, without opening them.
Fresh local PNGs (not uploaded):
/private/tmp/native-factory-2f5f764a/evidence-206-r3/outputs/roundtrip-light.png/private/tmp/native-factory-2f5f764a/evidence-206-r3/outputs/roundtrip-dark.png/private/tmp/native-factory-2f5f764a/evidence-206-r3/outputs/six.png/private/tmp/native-factory-2f5f764a/evidence-206-r3/outputs/long-scroll.png/private/tmp/native-factory-2f5f764a/evidence-206-r3/outputs/long-tail.pngRetained before/after and transition evidence remains in
/private/tmp/native-factory-2f5f764a/evidence-206-r2/: 15 immutable inputs, 27 audits and raw logs. Its before PNGs used the prior9d54accbinary; after PNGs/audits usedcece9934f3fc59d8b746bc0bbd403dce11beba9aondb6b7fb65d004dcb6a0a98f3e34be354dd5da03c. This includes light/dark entity-label and title before/after captures (outputs/entity-before-light.png,entity-light.png,title-before-light.png,title-light.png, with dark counterparts), quote/empty-anchor cases, late-definition transitions and missing-source cases. Those older checks are not presented as checks of the new base. New verification:/private/tmp/native-factory-2f5f764a/evidence-206-r3/verification.json.Remaining gaps: native video playback, images in headings/tables/HTML, richer local-link routing, physical-window verification, live long-running signed-URL renewal, multi-environment fallback and first live mid-turn rewrite. No provider turns, source-link opens, workspace/server test mutations, new servers, browser/computer use, real windows, clipboard, auth or permission changes. Copied smoke14658 state only. #187 stays open; worktree retained.
Built with GPT-6.1 Sol in Codex