Skip to content

feat(browser): make extension install and debug loop first-class #398

Closed

Description

@Sinity

Problem

The browser-capture receiver and extension exist, but the operator path is still too implicit for the intended user experience.

Audit notes from the closed browser-capture work showed:

  • official Chrome rejected --load-extension for the unpacked extension in the automated path;
  • an unbranded Chromium profile could load the extension and capture ChatGPT successfully;
  • Claude.ai interactive debugging hit Cloudflare friction in headless/unbranded Chromium;
  • the deployed receiver is now available as a user service, but README/docs still point at an unpacked extension directory rather than a polished install/debug workflow.

For a feature meant to make ChatGPT and Claude.ai capture pleasant, that is not complete enough operationally.

Ambitious expansion

Make browser capture feel like a product surface, not just a protocol endpoint:

  • Provide a clear install/update path for the unpacked extension on the normal user Chrome/Chromium profile, including how to verify that it is actually loaded.
  • Add a local debug command or documented recipe that opens a suitable browser profile with the receiver status visible and extension diagnostics available.
  • Improve the extension UI/UX so state is obvious: receiver reachable, current site supported, capture count/last capture, errors, and privacy scope.
  • Support ChatGPT and Claude.ai explicitly, with provider-specific smoke guidance that works around automation limitations without pretending Cloudflare-gated headless sessions are equivalent to the user's logged-in browser.
  • Add privacy-focused diagnostics: never dump full conversation text in extension logs by default, but provide enough IDs/counts/timestamps to debug capture health.

Acceptance criteria

  • A user can install or refresh the extension and verify it from repository docs without reverse-engineering Chrome internals.
  • polylogue browser-capture status plus extension UI clearly show receiver/extension health.
  • ChatGPT and Claude.ai capture flows have focused manual or automated smoke tests documented.
  • The docs distinguish receiver readiness, extension installation, supported pages, and archive ingestion success.
  • Any committed screenshots or demo assets use synthetic or innocuous content.

Activity

  1. added a commit that references this issue on Apr 25, 2026
  2. Sinity commented on Apr 25, 2026

    @Sinity
    OwnerAuthor

    Additional audit evidence from the README/VHS pass:

    devtools affected-obligations --path browser-extension/polylogue-browser-capture/manifest.json currently reports unknown:browser-extension/polylogue-browser-capture/manifest.json with no focused checks.

    That should be included in this issue's scope. A first-class extension install/debug loop also needs first-class verification routing for extension assets, at minimum:

    • manifest changes route to an extension packaging/installability check;
    • content-script changes route to provider adapter smoke checks for ChatGPT and Claude.ai;
    • UI/popup changes route to a screenshot or DOM smoke check;
    • receiver contract changes route to browser-capture envelope/server tests.
  3. Sinity commented on Apr 26, 2026

    @Sinity
    OwnerAuthor

    Linking this into the #401 consolidation plan.

    As #410/#412 move README/media onto scenario-derived presentation assets, browser capture should get matching scenario/proof coverage rather than remain a loose extension directory. Please include affected-obligation routing for extension files through #397 and at least one docs/debug scenario that proves the operator loop: receiver reachable, extension loaded, supported page detected, capture submitted, archive ingestion visible.

  4. changed the title [-]browser: make extension installation and debug loop first-class[/-] [+]feat(browser): make extension install and debug loop first-class[/+] on Apr 26, 2026
  5. Sinity commented on Apr 26, 2026

    @Sinity
    OwnerAuthor

    Follow-up audit notes — extension completeness

    Additional browser-extension audit found this issue should be treated as productization, not just install docs.

    Concrete evidence:

    • browser-extension/manifest.json still says captures go into the local Polylogue inbox.
    • browser-extension/README.md says captures are written into the normal inbox and parsed on next ingest.
    • docs/browser-capture.md says accepted captures are written under the configured inbox.
    • polylogue/browser_capture/receiver.py defaults to inbox_root() / "browser-capture" and exposes inbox_path in status.
    • Content adapters are broad DOM scrapers:
      • ChatGPT selects [data-testid^="conversation-turn-"], article, [data-message-author-role].
      • Claude selects [data-testid*="message"], [data-message-author-role], article.
    • Both adapters automatically capture after page load and every mutation debounce, not only on explicit user action.
    • Popup UI exists, but tests cover only Python receiver/parser behavior. There is no browser-extension unit/test harness for popup state, background messaging, provider adapter extraction, or privacy-safe logging.

    Acceptance clarification:

    • Remove inbox assumptions as part of feat(cli): support transient input paths in run pipeline #409; browser capture should write through the chosen input/spool/import design, not a renamed inbox.
    • Decide whether auto-capture-on-mutation is intended. If yes, the UI must make that state visible and controllable; if no, default to explicit capture.
    • Add adapter-level fixtures/tests for ChatGPT and Claude.ai DOM extraction so selector drift is visible.
    • Add popup/background tests for receiver status, unsupported page state, capture success, capture failure, and configured receiver URL.
    • Ensure extension diagnostics never include full conversation text by default; use provider/session ids, counts, timestamps, and error codes.
  6. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Superseded by #576, which consolidates this scope with the verified architecture/proof/interface closure residuals into one acceptance scoreboard.

  7. Sinity commented on May 1, 2026

    @Sinity
    OwnerAuthor

    Closing as superseded by #576.

  8. Sinity commented on May 7, 2026

    @Sinity
    OwnerAuthor

    Reopening after closed-issue/codebase reconciliation. The superseding tracker (#576) is closed, but this productization scope still has no complete implemented owner.

    Current evidence on master:

    • browser-extension/README.md:6-16 still tells operators to run polylogue browser-capture serve and says captures are written into the normal Polylogue inbox. Current daemon docs use polylogued browser-capture serve and a configured capture spool.
    • browser-extension/src/popup.js:42 still tells users to start polylogue browser-capture serve when the receiver is offline.
    • browser-extension/manifest.json:5 still describes capture into the local Polylogue inbox.
    • The repository docs only say the extension can be loaded unpacked; they do not provide a first-class install/refresh/debug loop with verification steps for a normal Chrome/Chromium profile.
    • test(browser-extension): add MV3 behavior harness and package gate #649 is now reopened for the MV3 test/package gate, but that does not by itself close this issue's operator install/debug and product-docs acceptance.

    Updated scope note: any old acceptance text that names polylogue browser-capture status should be interpreted through the current daemon-owned model (polylogued browser-capture status, polylogued status, and polylogue doctor --daemon). The issue should close only when the install/refresh/debug loop, extension UI text, and docs are coherent with that daemon-owned browser-capture model.

    Scope note: exclude this from #944 except as a referenced reopened browser-extension productization gap.

  9. reopened this on May 7, 2026
  10. Sinity commented on May 8, 2026

    @Sinity
    OwnerAuthor

    Closing: browser extension README enhanced with full install guide, health verification, supported sites matrix, privacy diagnostics, and troubleshooting section.

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

    area:cliarea:docstype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions