Skip to content

Chat media gaps (TR-MEDIA) #187

Closed
Closed

Description

@rynfar

Tracks remaining TR-MEDIA / TV-STREAM gaps after #195 (squash b30e4b4bb6). Native now renders direct paragraph images and document-relative Markdown-preview images through bounded signed media lifetimes, guarded local fallback, first-mutation invalidation, per-resource refresh deadlines and visible-consumer cancellation. Prose state namespaces, reference context, styles and link policy are preserved. The selectable-content cache-boundary fix preserves selection registrations and removes extra idle draws; transcript/file-tree virtualization remains.

Remaining implementation:

Verification limits: no thirty-minute wall-clock renewal run, two live fallback environments or live first mid-turn rewrite. Deterministic core/client tests and offscreen cache/selection evidence cover the implemented decisions; physical windows/provider turns were not used.

Independent reviewer c9b832ed approved exact head a2e8983f86 after the idle P1 was resolved with matching actual TextView render/selection callback and window-draw measurements. Six prose states retain separate sources; quiet media/control settle at zero actual renders/draws, with selection retained. Gate GREEN 1,340 tests onto 0ee81fba11, plus Clippy/theme/parity/conformance. Merged snapshot build and captures are underway. Keep this issue open and both ledger rows partial.

Activity

  1. added this to the M2 Parity core milestone on Nov 4, 2026
  2. added
    native:feature
    status:in-progress
    on Nov 4, 2026
  3. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #195 at 9954a37552cacbdfd4f3d3733fcf17d6e5f6504f now fixes the traced selection lifecycle problem: cached transcript/file scenes skipped TextView selection registration, causing stale sweeps to clear and notify otherwise unchanged views. Selectable content now paints each drawn frame while the transcript list stays virtualized. Actual TextView/compiler coverage and Window::draw measurements replace the former incomparable layout/creation counters. The document-only media and control each settle for three samples with zero renders/draws and retained selection; the full client has only its expected caret draws, zero TextView notifications, and retained selection. Appending media and updating font size also settle.

    Inline images, relative Markdown previews, local-media fallback, bounded refresh/cancellation, and first workspace-mutation invalidation remain in this slice. Final head captures recheck one initial visible load, ten visited resources within a four-decode / 262,144-byte fixture budget, and zero consumers/timer after leaving.

    Remaining gaps: video playback; linked/emphasized/reference-style images; heading/table/HTML images. TR-MEDIA and TV-STREAM remain partial and #187 stays open. Unverified live cases: thirty-minute wall-clock refresh, two fallback environments, and first mid-turn file rewrite; deterministic core/client tests cover the decisions.

    All required checks pass (1,340 workspace tests), plus snapshot-feature clippy and ordinary snapshot build. Evidence: /private/tmp/native-factory-2f5f764a/evidence-187-idle/verification.json, idle-proof.json, and matching PNGs/coverage traces. No framework/dependency changes, servers, paid turns, workspace writes, clipboard, real windows, or computer use.

  4. added
    status:review
    and removed
    status:in-progress
    status:review
    on Nov 4, 2026
  5. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Merged integration passed on b30e4b4bb6: snapshot build and seven primary offscreen captures/audits exited0 and were inspected. Quiet media and control documents each record three (0 notifications,0 window draws) samples with nonempty selection unchanged. Preview begins one image load; scrolling visits ten resources, retains at most four decoded images under the 262,144-byte test budget, then reports zero consumers and no timer after leaving all images. Relative image preview, missing-image chip and scaled video fallback render correctly. Source links were not opened.

    Evidence /private/tmp/native-factory-2f5f764a/evidence-195-merged/: document-media/control, long-initial/scroll/tail, relative, fallback PNG/JSON pairs plus owned-PID journal and native-head.txt. This is the ordinary merged snapshot binary, copied smoke14658 home, no coverage runtime, provider turn, workspace/server mutation, real window or clipboard. Some static labels still disappear in full-client offscreen captures; this pre-existing global renderer limitation is distinct from the now-resolved selectable-content idle lifecycle. Live verification limits and remaining image-context/video gaps stay open here.

  6. added
    status:in-progress
    status:review
    and removed
    status:in-progress
    on Nov 4, 2026
  7. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #206 at 73331db91d3bb87497b137d2565bf3e721260105 implements the M2 paragraph slice: images nested in links/emphasis and full/collapsed/shortcut references. Balanced selectable prose, first definitions, anchor ownership, and the existing native local/external link policy are retained; late-arriving definitions reparse the media document.

    Remaining: video playback; heading/table/HTML images; pre-existing richer local-file/link/browser routing. TR-MEDIA and TV-STREAM stay partial and #187 remains open. Physical windows and the existing live renewal/multi-environment/mid-turn rewrite cases remain unverified. No source links were opened.

    All required native gates pass (1,354 workspace tests), strict Clippy/theme/parity/conformance, and the ordinary snapshot build. Two parser regressions failed before the fix. Offscreen light/dark captures, six distinct prose namespaces, unchanged selection with zero quiet document notifications/draws, one initial load, ten visited resources within four decodes/262,144 bytes, and zero consumers/timer after leaving all images passed. check:changed was stopped when native-file mapping selected repo-wide checks; scoped ledger formatting and diff checks passed. All 129 other ledger rows are byte-for-byte preserved.

    Evidence: /private/tmp/native-factory-2f5f764a/evidence-187-nested/verification.json, with local PNGs and logs beside it. Worktree retained. No provider turns, workspace/server writes, new servers, clipboard, computer use, browser automation, or real windows.

    Built with GPT-6.1 Sol in Codex

  8. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #206 now has both source-verified P2 review fixes at exact head 9d54acc2b4d021eb42b3b7df9b19c036fa5aad5b, rebased on 72033f6926a77957819bb0e6e91e365cab73ae6b.

    Media messages now prepare reference context on one background worker with one latest pending source. Completed media paragraphs and reference maps are shared; ordinary body chunks keep native incremental push_str and reparse only the unfinished top-level block. Effective first-definition changes and text replacement can invalidate earlier references; literal code, unchanged body text, and ignored duplicate definitions do not trigger whole-message replacement. The prepared AST supplies media runs without a second whole-document reference parse. Decoded text leaves also remove enclosing quote/list markers while retaining inline formatting, multiline code, and link destinations.

    Both regressions failed before the fix. Fresh native gates pass: 1,356 workspace tests, strict workspace/all-target Clippy, theme, parity, conformance, and ordinary snapshot build. Check:changed is not green: read-only inspection of its actual classifier still selects repo-wide work for native files, so no prohibited broad checks were launched; scoped ledger formatting and diff checks passed. The other 129 ledger rows are byte-for-byte unchanged.

    Fresh ordinary offscreen evidence uses immutable inputs under /private/tmp/native-factory-2f5f764a/evidence-206-r1/inputs/, separate raw logs/audits/PNGs under outputs/, and verified input hashes. Missing/split/late-definition, body-append and removed-definition captures pass; quote before/after light/dark shows the extra markers gone. Six distinct prose states keep one source each; quiet media/control selection remains unchanged over three zero-notification/zero-draw samples. File preview starts one load, visits ten resources within four decodes/262,144 bytes, then releases all consumers and the timer at the tail. Full-client caret draws remain expected. Summary: /private/tmp/native-factory-2f5f764a/evidence-206-r1/verification.json. Older artifacts are preserved; their overwritten inputs are not claimed as transition proof.

    Remaining gaps: playback; heading/table/HTML images; richer local-link routing. Both rows stay partial and #187 stays open. Physical windows and existing live renewal/multi-environment/mid-turn rewrite cases remain unverified. No source-link opens, provider turns, workspace/server writes, new servers, clipboard, computer use, browser automation, permission/auth changes, or real windows. Worktree retained.

    Built with GPT-6.1 Sol in Codex

  9. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #206 now includes all three new source-verified review fixes at exact head cece9934f3fc59d8b746bc0bbd403dce11beba9a, whose actual git merge-base is db6b7fb65d004dcb6a0a98f3e34be354dd5da03c. The final fetch/rebase was a no-op and the frozen source objects match the checked commit.

    Empty anchors retain valid source without assuming nonempty children. Entity-bearing shortcut/collapsed reference labels keep their resolved first-definition target when display text is reconstructed. An unfinished multiline title keeps the preceding definition in the reparsed tail; a completed title also removes formerly visible title prose on ignored duplicate definitions. Existing background preparation, latest pending source/cancellation, tail offsets, anchor ownership, and six prose namespaces remain intact.

    All three reported cases failed before the fixes. Existing focused cases now cover title delimiters/indentation, CRLF, character-by-character incremental/full comparisons, effective titles/runs/append decisions, and duplicate titles. An exact-source probe exposed the duplicate-title variant before its fix; the intermediate check was stopped and preserved rather than claimed green.

    Fresh worker checks pass on this exact commit and actual db6 merge-base: 1,359 workspace tests, strict workspace/all-target Clippy, theme, parity, conformance, ordinary snapshot build, scoped formatting and diff checks. check:changed is NOT green: the actual classifier selects prohibited repo-wide work for native paths; only scope inspection was run. Earlier 9d54 logs covered merge-base720, and their mutable current-native ref did not establish a combined db6 check. New provenance is frozen in /private/tmp/native-factory-2f5f764a/evidence-206-r2/gate-provenance.json.

    Fresh ordinary offscreen captures/audits pass with separate immutable input and output paths and all 15 input hashes unchanged. Entity links render correctly in light/dark; empty anchors preserve their image; completed titles disappear, including ignored duplicates. Six states keep one source each, document selection survives three zero-notification/zero-draw samples, and the long preview visits ten resources within four decodes/262,144 bytes before releasing all consumers and its timer. Full-client caret draws remain expected. Local PNGs, raw logs and audits are under /private/tmp/native-factory-2f5f764a/evidence-206-r2/outputs/; summary /private/tmp/native-factory-2f5f764a/evidence-206-r2/verification.json. Old artifacts remain intact.

    Both ledger rows stay partial, all 129 others are byte-for-byte preserved, and #187 stays open. Remaining gaps: playback, heading/table/HTML images and richer local routing. Physical windows/live renewal/multi-environment/mid-turn rewrite remain unverified. No source links opened, provider turns, test workspace/server mutations, new dev servers, clipboard, computer use, browser automation, auth/permission changes, or real windows. Worktree retained.

    Built with GPT-6.1 Sol in Codex

  10. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #206 follow-up on bbabf6bba9b2177688052ff6a545fe6bea6bc3a1, rebased onto actual native 8408b40e3435bcc68a55232cec960116b89ecf49. The remaining review finding is fixed: serializing an already-decoded destination or title now protects ampersands from a second entity decode. The existing core case fails before the fix and passes afterward across 27 reference/inline and same-line/multiline combinations, retaining ordinary query ampersands, angle brackets, quotes and backslashes.

    Fresh worker checks on that exact head/base: 1,361 workspace tests, strict Clippy, theme, parity (42 tests), conformance, scoped formatting and diff checks passed. Snapshot build and offscreen evidence: passed; 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. Immutable inputs, separate outputs and all raw logs are retained at /private/tmp/native-factory-2f5f764a/evidence-206-r3/verification.json. check:changed is NOT green: native paths select prohibited repo-wide checks; only its read-only classifier and the scoped checks were run. No parent integration gate is claimed.

    TR-MEDIA/TV-STREAM remain partial, with all other 129 rows preserved. #187 remains open for video playback, heading/table/HTML images, richer local-link routing, physical-window and live renewal/multi-environment/rewrite verification. No links opened, provider turns, real windows, new servers or workspace/server test writes. Worktree retained.

    Built with GPT-6.1 Sol in Codex

  11. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    #206 merged as 15ae309a5e3ef31f4403543ef355290ec3642618: nested/reference paragraph images, correct selectable prose/reference boundaries and decoded destination/title preservation. Exact reviewed head passed the parent gate with 1,361 workspace tests, strict Clippy, theme/parity/conformance; the squash tree is identical.

    The primary merged snapshot build and six offscreen captures passed. Quiet selection persists through zero-draw document samples; the long preview stays within four images/262,144 bytes and releases all consumers/timer after leaving. Three immutable input hashes are unchanged. Local evidence: /private/tmp/native-factory-2f5f764a/evidence-206-merged/manifest.json.

    Both ledger rows remain partial and this issue stays open for video, heading/table/HTML image forms, richer local routing and physical/live renewal/multi-environment/rewrite verification. Known #202 offscreen static-glyph loss remains separate. No source links opened or provider turns/question responses sent. check:changed is not green because its native mapping selects prohibited broad checks; scoped checks and parent native gate passed.

  12. added
    status:in-progress
    and removed
    status:review
    on Nov 4, 2026
  13. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Heading-image slice published in #211 at 36dc353ac06f446349bd0ecd658ae38d17b43bf5 (base 561263628088a128bf59173c4b547bdee73f3275). ATX h1–h6 and Setext Markdown images now use the existing bounded/guarded media path, retaining formatted heading prose, linked-image ownership, document-relative scope and reference/stream context. Two focused tests failed first, then all 1,376 native tests and strict Clippy/theme/parity/conformance/scoped formatting passed. Explicit private normal/snapshot/profile builds joined; heading/control selection survived three zero-notification/zero-draw quiet samples, with zero native media render/layout callbacks under app-only coverage.

    Keep #187 OPEN and TR-MEDIA partial. Remaining: native video playback; table/HTML image forms; live thirty-minute URL renewal, two fallback environments and first live mid-turn rewrite remain unverified. TV-STREAM and all other 130 ledger rows are unchanged. No provider turns, real windows, clipboard/browser automation, or server mutations were needed. Local before/after PNGs and raw logs: /private/tmp/native-factory-2f5f764a/evidence-187-headings/. Full-app offscreen glyph loss remains the separate #202 limitation.

  14. added
    status:review
    and removed
    status:in-progress
    on Nov 4, 2026
  15. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #211 updated to ed66a16bf3576cb417db7d9f06d4eea2efbefd93 on fresh native 561263628088a128bf59173c4b547bdee73f3275. All three review findings are addressed: literal heading prose stays inline; actual left/right heading selections offer Cite and a real Cite click produces the correct message/thread/environment citation with zero submissions; pinned 0.3rem heading rhythm is retained in normal/last/list contexts. Focused regressions failed first; all 1,377 native tests and strict Clippy/theme/parity/conformance/scoped format checks pass on this head. Normal/snapshot/profile builds joined successfully.

    New immutable fixture/build-source/command/exit/hash manifests, inspected local PNGs, actual citation composer audit and profile proof are under /private/tmp/native-factory-2f5f764a/evidence-187-headings-r1/. Document-only quiet samples retain selection with zero media callbacks/notifications/draws; full-app samples separately record 2–4 draws. Earlier rounds and invalid initial file fixture captures remain preserved; corrected explicit-thread previews show fallback plus a data image, not a successful signed relative fetch.

    Keep #187 OPEN and TR-MEDIA partial for playback/table/HTML gaps. TV-STREAM and all other 130 ledger rows are unchanged. Live renewal/dual-environment fallback/first mid-turn rewrite remain unverified; #202 offscreen glyph loss stays separate. No real windows, clipboard/browser automation, new servers, provider turns or server mutations were used for this verification.

  16. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #211 merged as ee315b22665705618e4b99656cb309bb72a1c556 after the independent r6 source-integration approval on exact b498/actual c78. Its single root gate passed 1,388 native tests, strict Clippy, theme, parity and conformance; gated and squash tree match exactly.

    Primary merged snapshot build joined successfully before all app invocations. All 15 offscreen PNGs were inspected; actual drag→Cite→composer audits preserve identities and ranges 0–17, 4–27 and 5–22 with zero submissions. Local evidence: /private/tmp/native-factory-2f5f764a/211-integration.md and evidence-211-merged/manifest.json. Known #202 limits frame/sidebar copy in some captures. Document-only zero draws remain distinct from full-app 2–5 draws; no new callback profile claimed.

    TR-MEDIA and #187 stay partial/open for playback/table/HTML. Signed URL renewal, two fallback environments, live mid-turn rewrite and successful signed relative-file fetch remain unverified. Inherited ledger-format RED remains. No provider turns, real windows or server mutations. Worker home will be preserved before exact-head cleanup; all raw evidence retained.

    Built and integrated with GPT-6.1 Sol in Codex.

  17. removed
    status:review
    on Nov 4, 2026
  18. rynfar commented on Nov 14, 2026

    @rynfar
    OwnerAuthor

    Closed by PR #370 (63aca805dc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions