Repository navigation
Description
Problem
Web-hosted LLM sessions (ChatGPT, Claude.ai, Gemini) still fall outside
the normal archive flow unless they are exported manually. That leaves an
important but intermittent part of the user's model work disconnected
from the same archive/query surfaces used for local coding-agent
sessions.
Strengthened scope
Treat the browser extension as another capture surface over the same
archive/live-ingestion contract, not as a bespoke sidecar system.
Required outcomes:
- define a typed capture envelope for browser-observed turns, sessions,
attachments, provenance, and provider metadata - send captured data into the same inbox/live-ingestion path that
#308
standardizes rather than inventing a parallel storage contract - establish stable IDs and deduplication semantics so repeated capture,
refresh, or reconnect does not fork archive records - support the highest-value provider paths first while keeping the
extension architecture provider-adaptable - make the "bidirectional" part concrete: the extension should be able to
reflect archive state back to the user (for example archive links,
captured-state indicators, or local context lookup), not just fire
blind uploads
Design requirements
- Privacy and local-only transport expectations must be explicit.
- The extension should degrade gracefully when the local receiver is not
running. - Provider DOM adapters should be thin; core capture semantics belong in
the shared envelope and ingestion contract. - Do not let this issue invent a second ingestion model that later has to
be reconciled with realtime/local-session handling.
Acceptance criteria
- The issue lands a concrete extension-to-polylogue ingestion contract.
- At least one provider path works end-to-end into the archive/live path.
- Repeated observation of the same web session deduplicates cleanly.
- The extension exposes some minimal archive-aware feedback to the user,
not just silent background capture. - The implementation is clearly layered so additional providers can be
added without rethinking the ingestion model.
Priority caveat
Chat providers are currently lower-frequency than coding-agent sessions,
so this should stay sequenced after the local/live substrate work. The
point is architectural completeness and cross-surface reach, not jumping
the queue ahead of higher-value local workflows.
Dependency value
This should build on the canonical live/session ingestion contract from
#308, not race ahead with bespoke browser-only machinery.
Source
Thoughtspace: crystal/plans/roadmap-polylogue.md §Loose 1 month and
seed/2026-04-18-001820-llm-budget-constraint.md.
Activity
Sinity commentedon Apr 24, 2026
Execution expansion for this PR:
Acceptance for this expansion:
detect_provider()/parse_payload()and lands as normal parsed conversations.Sinity commentedon Apr 24, 2026
Execution log update:
sources.dispatch.[::1]:9222, while the current agent MCP config points at127.0.0.1:9222. If direct MCP use is needed for validation, patch Sinnix config narrowly and leave unrelated dirty Sinnix work untouched.Per follow-up direction, I am not keeping this as a project scratch file; the issue thread is the durable execution log for this issue.
Sinity commentedon Apr 24, 2026
Scope refinement from follow-up:
Sinity commentedon Apr 24, 2026
Browser MCP validation update:
http://[::1]:9222;http://127.0.0.1:9222does not reach it on this host.chrome-devtools-mcpwith--browserUrl http://[::1]:9222.127.0.0.1:9222to[::1]:9222, which made the existingmcp__chrome_devtools__namespace immediately usable without restarting the agent.9bb24dd fix: point browser MCP at live Chrome debugger.Sinity commentedon Apr 24, 2026
Live browser debug validation:
polylogue browser-capture serve --port 8765 --inbox .local/browser-capture/live-inboxfor the validation pass.user,assistant, originhttps://chatgpt.com.user,assistant, originhttps://claude.ai.202and deterministic artifact paths:chatgpt:live-debug:e4af3c6bclaude-ai:live-debug:97de751dingest_workers=1; result: 2 raw records processed, 2 conversations stored, no parse failures, both withbrowser_capture=trueand the expected live-debug adapter names.127.0.0.1:9222 -> [::1]:9222CDP forwarder so the already-running MCP server can keep attaching to the logged-in Chrome profile. Future sessions should not need that bridge after the Sinnix config change tohttp://[::1]:9222.feat: add browser capture sync (#395)
Sinity commentedon Apr 25, 2026
Browser-extension live-debug correction, 2026-04-25:
--load-extension/--disable-extensions-exceptfor local unpacked extensions in branded builds. The process showed the flags, butchrome://extensionsandchrome.developerPrivate.getExtensionsInfo()confirmed Polylogue was absent.chrome://extensionsreached Chrome's loader; the original/realm/...path surfaced a generic manifest-read error through the portal chooser despite the manifest parsing fine from the shell./home/sinity/.local/share/polylogue-browser-capture-extension..local/browser-capture/chromium-cookie-profileand launched Chromium on CDP port 9334 with the Polylogue extension loaded.chrome-extension://jnmkkagffllggmdncljcebnlniapemli/src/background.jschrome-extension://jnmkkagffllggmdncljcebnlniapemli/src/popup.htmlpolylogue.statuscall reached the local receiver athttp://127.0.0.1:8765https://chatgpt.com/tab responded topolylogue.capturePage/home/sinity/.local/share/polylogue/inbox/browser-capture/chatgpt/chatgpt-e4af3c6b-f5dbd82dca5e.jsonOperational state after this comment:
feat: add browser capture sync (#395)