Skip to content

fix(native): render nested and reference markdown images - #206

Merged
rynfar merged 4 commits into
nativefrom
nw/187-nested-images
Nov 4, 2026
Merged

rynfar merged 4 commits into
nativefrom
nw/187-nested-images

Conversation

@rynfar

@rynfar rynfar commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

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=& becoming https://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:

  • Exact worker head: bbabf6bba9b2177688052ff6a545fe6bea6bc3a1
  • Actual merge-base and fetched native base: 8408b40e3435bcc68a55232cec960116b89ecf49
  • Fresh common native checks: 1,361 workspace tests and strict Clippy passed on this exact head/base
  • Snapshot build: pass on the same head/base
  • Theme, parity (42 tests), conformance, scoped ledger formatting and diff checks: pass.
  • check:changed is NOT green. Its actual classifier selects prohibited repo-wide checks for native paths; those broad checks were not launched. The read-only classification and scoped results are retained.

Fresh 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.png

Retained 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 prior 9d54acc binary; after PNGs/audits used cece9934f3fc59d8b746bc0bbd403dce11beba9a on db6b7fb65d004dcb6a0a98f3e34be354dd5da03c. 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

@rynfar rynfar mentioned this pull request Nov 4, 2026
2 of 4 tasks
@rynfar
rynfar force-pushed the nw/187-nested-images branch 2 times, most recently from 9d54acc to cece993 Compare November 4, 2026 14:19
@rynfar rynfar mentioned this pull request Nov 4, 2026
@rynfar
rynfar force-pushed the nw/187-nested-images branch from cece993 to bbabf6b Compare November 4, 2026 15:09
@rynfar
rynfar merged commit 15ae309 into native Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant