← Back to Pull requests

Preserve transcript continuity and clarify Markdown interactions #889

Open
unknown opened this pull request with 408 lines diff across 5 files
View on GitHub
unknown unknown commented on Oct 11, 2026 22:41 UTC
Author

Summary


Keep streaming-to-finalized transcript replacement coherent so ordinary conversations do not briefly lose the tail row and snap a reader to bottom. Also make inline Markdown links recognizable and support safe native disclosures.

Changed


  • Replace delayed historical-message projection plus independent live identity with one cached structural snapshot. Preserve aggregate history and leaf-only token updates; reconcile pending acknowledgements without duplicate row keys.

  • Require explicit stream identity and prevent a streaming leaf from displaying another request’s buffer.

  • Underline inline prose links persistently, with theme-aware contrast and visible keyboard focus, without restyling file actions or button-like links.

  • Render complete top-level, non-nested <details>/<summary> as native disclosures, collapsed unless open is present. Preserve Markdown, references, code literals and source positions; unsupported forms remain visible. No arbitrary raw HTML or event attributes are enabled.

  • Add ownership-path, render-isolation, acknowledgement, malformed-input, security and bounded-parser-work regressions.
  • Validation and remaining acceptance


    Current head: fbe453bb5f6f6fae964410bc1b03dc8b3bcf4743, based on c5c33a53ccba318b6b6fb571dedb577703a63fac. Independent original review and successor-delta review approved. Hosted findings were fixed, including malformed extra summaries, recovered-tail references, searchable/revealed disclosure bodies, and: code-aware summary termination, adjacent malformed disclosure recovery, and retiring live atom authority after incomplete Close.

    Exact-head ./dev.py check --lanes tsc,ui-lint,vitest,ast-grep,spec-shape passed all nine executed checks, including full Vitest. Focused suites include eight product-finalization, 62 disclosure and 13 inline-link tests. No full Rust build/test claim.

    Predecessor e8090e7ae bounded iOS 18.1 Simulator WebKit captures use the full App, synthetic HTTP/SSE, matching request/message IDs and exact text. Ordinary and Global readers remained off bottom after finalization; an isolated bottom-follow control stayed at distance 0 → 0 → 0. Exact source-transcript anchors, same-target anchors, supported legacy canonicalization and disclosure taps reached the expected content. Dark/light desktop screenshots and keyboard focus/disclosure checks passed.

    Native evidence remains predecessor evidence; successor changes have exact-head tests and independent review, not a new native run. Run-specific HEAD/asset hashes, receipts and screenshots are retained privately. Baseline source=c5c33 labels in fixture receipts are stale; actual candidate entry imports worktree production modules, and served bundle bytes match the archived candidate assets. Browser-sheet chrome was already present before an inline /c click; that click used same-document history navigation. This is not proof of chromeless PWA-scope continuity or physical-device/production-origin acceptance.

    Still open: a separate 72px paragraph displacement, the intermittent reported inline-link failure, legacy _blank behavior and chromeless-scope validation. Successful controls do not close either release blocker wholesale. No merge or deployment is included.

    Diff: 408 lines (+306 / -102) across 5 files Reviewer: scottopell Review duration: 8483m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 408 lines diff across 5 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.360
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #889"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.8% (MEDIUM) · Higher = larger blast radius
    44.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.9% · Safe to merge
    23.9%