Skip to content

parity: fix(web,mobile): chat images reload when the agent rewrites the file (pingdotgg/t3code#29741) #153

Closed

Description

@rynfar

Upstream pingdotgg/t3code#29741 (e0f69e9ea4) changed code the native client depends on.

Watched files:

  • apps/web/src/assets/assetUrls.test.ts
  • apps/web/src/assets/assetUrls.ts
  • apps/web/src/components/ChatView.logic.test.ts
  • apps/web/src/components/ChatView.logic.ts
  • apps/web/src/components/ChatView.tsx
  • apps/web/src/components/chat/ChatMarkdownMedia.tsx
  • packages/client-runtime/src/state/assets.test.ts
  • packages/client-runtime/src/state/assets.ts
  • packages/client-runtime/src/state/threadDetail.test.ts
  • packages/client-runtime/src/state/threadDetail.ts

Activity

  1. added
    parity
    parity:regression-risk
    parity:new-surface
    on Nov 3, 2026
  2. added this to the M2 Parity core milestone on Nov 3, 2026
  3. rynfar commented on Nov 3, 2026

    @rynfar
    OwnerAuthor

    Triaged in intake #134: native does not re-mint asset URLs when a file's revision changes; port the revisioned asset URLs (state/assets.ts, assets/assetUrls.ts) so chat images reload when the agent rewrites the file.

  4. added
    status:in-progress
    on Nov 3, 2026
  5. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Updated #186 at ebc0491743a57154d264673de6629f05ac8a8f88 (base 47857674cf).

    Successful signing now gives freshness-driven renewals a 30-second grace period while permitting GETs. Short TTLs or client/server clock skew therefore cannot create immediate mint-only loops. Rejected-fetch invalidation still overrides the grace, and later cache misses can renew again. The new core regression failed first and now passes for short-lived and client-clock-expired signatures, repeated reads inside the grace period, later renewal, and rejection overriding the grace.

    All 1,279 workspace tests, clippy, snapshot build, theme/parity/conformance checks, changed-file checks, and passive offscreen smoke passed. Live clock-skew/expiry UI capture remains unverified; the core regression covers that decision.

    TR-MEDIA remains partial and points at #187: video playback; inline prose images; rendered Markdown file-preview images; local-media fallback; periodic URL refresh; and an open image file preview skipping the first null-to-non-null mutation. TV-STREAM stays partial with its Issue column empty.

    Evidence: /private/tmp/native-factory-2f5f764a/evidence-153/ (review-loop-failing.log, review-loop-tests.log, review-r4-*).

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

    @rynfar
    OwnerAuthor

    Merged in #186 (squash 8c53a01, exact head ebc0491, gate GREEN 1,284 onto e84be5d). Chat images now re-mint their signed URL per resource when the workspace mutation id changes, and an in-flight mint is shared on first read. A shown URL is kept while fileRevision is unchanged and more than five minutes remain. Unchanged files keep their decoded pixels across re-signing. Stale or rejected signatures renew on a cache miss, bounded by a 30-second success grace and the existing failure backoff. The mutation id is computed when the projection syncs, not per render. TR-MEDIA stays partial and points at #187; TV-STREAM stays partial.

  8. removed
    status:review
    on Nov 4, 2026
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

    parityparity:new-surfaceparity:regression-risk

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions