Skip to content

fix(snapshot): support full-answer scrolling and stitching for custom web providers - #112

Merged
Manho merged 1 commit into
mainfrom
fix/custom-web-snapshot-stitch
Nov 13, 2026
Merged

Manho merged 1 commit into
mainfrom
fix/custom-web-snapshot-stitch

Conversation

@Manho

@Manho Manho commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Enable snapshotStitch: true for Custom Web UI providers (modules/custom-providers.js, modules/provider-registry.js) and update modules/panel-message-contract.js.
  • Implement full PANELIZE_SNAPSHOT_PREPARE / PANELIZE_SNAPSHOT_SCROLL / PANELIZE_SNAPSHOT_RESTORE -> PANELIZE_SNAPSHOT_STATE support in content-scripts/custom-provider-driver.js with strict extension-origin framing checks and Open Shadow DOM traversal.
  • Handle real-world Custom Web UI / Perplexity DOM quirks cleanly during snapshots:
    • Skip 0x0 display: contents wrappers when measuring composer dock bounds so bottom composer and incognito bars are excluded.
    • Quiet upward spread box-shadow halos on static composer wrappers and hide h-0 sibling wrappers holding -translate-y-full scroll-to-end buttons.
    • Un-stick mid-conversation headings and table headers while keeping pinned narrow side-rail overlays (such as Perplexity's desktop Sources rail) visible only on the first screen so they never repeat across stitched screens.

Test Plan

  • Full unit test suite (npx vitest run --exclude='tests/e2e/**'): 92 files / 1262 tests passed.
  • Playwright E2E regression tests (custom-provider-snapshot-stitch.e2e.test.js + custom provider & share snapshot E2E suites) passed.
  • Verified end-to-end against live Perplexity long answers in Multi-Panel.

@Manho
Manho merged commit e49272c into main Nov 13, 2026
2 checks passed
@Manho
Manho deleted the fix/custom-web-snapshot-stitch branch November 13, 2026 13:39
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