Repository navigation
feat: add browser capture sync - #395
Conversation
Problem: ChatGPT and Claude.ai web sessions required manual exports, which left browser-hosted model work outside the normal Polylogue archive and product surfaces. What changed: Add a typed browser-capture envelope, local receiver, parser/dispatch integration, conversation-artifact taxonomy support, and a static MV3 extension with ChatGPT and Claude.ai adapters plus a polished status/capture popup. Verification: devtools verify passed. Focused checks: pytest -q tests/unit/sources/test_browser_capture.py tests/unit/browser_capture/test_receiver.py; node --check extension scripts; headless Chrome popup screenshot rendered without clipping. Closes #312
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 0 minutes and 31 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (27)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| self.send_header("Content-Type", "application/json") | ||
| self.send_header("Content-Length", str(len(raw))) | ||
| if _origin_allowed(origin, self.server.config): | ||
| self.send_header("Access-Control-Allow-Origin", origin or "null") |
| return | ||
| origin = self.headers.get("Origin") | ||
| self.send_response(HTTPStatus.NO_CONTENT.value) | ||
| self.send_header("Access-Control-Allow-Origin", origin or "null") |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4623ec51f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Live browser debug validation added after opening the PR:
|
## Summary Adds a local-first browser capture path for web LLM sessions. Browser-observed ChatGPT and Claude.ai sessions now flow through a typed Polylogue capture envelope, a localhost receiver, normal inbox artifacts, source dispatch, parsing, and archive storage. Closes #312. ## Problem ChatGPT and Claude.ai sessions required manual exports, so browser-hosted model work was disconnected from Polylogue's normal archive/query/product surfaces. The extension also needed archive-aware feedback rather than blind background upload. ## Solution - Added `polylogue.browser_capture` typed envelope models, deterministic inbox artifact naming, receiver status/archive-state helpers, and a local HTTP server. - Wired browser-capture envelopes into artifact taxonomy, provider detection, source dispatch, and parser lowering so they ingest as normal conversations. - Added `polylogue browser-capture status|serve` and generated command/docs surfaces. - Added a static Manifest V3 extension under `browser-extension/polylogue-browser-capture/` with ChatGPT and Claude.ai adapters, background transport, badge state, receiver configuration, capture/check controls, and a popup UI. - Documented setup, privacy/local-only transport, endpoint contract, and provider-adapter expectations. ## Verification - `pytest -q tests/unit/sources/test_browser_capture.py tests/unit/browser_capture/test_receiver.py` → `9 passed` - `pytest -q tests/unit/browser_capture/test_receiver.py tests/unit/sources/test_browser_capture.py tests/unit/cli/test_click_app.py::TestCliMetadata::test_all_subcommands_registered tests/unit/cli/test_terminal_snapshots.py` → `20 passed` - `node --check` on all extension scripts plus `python -m json.tool` on the manifest → passed - Headless Chrome screenshot rendered `browser-extension/polylogue-browser-capture/src/popup.html` without clipped controls after CSS fix - `devtools render-all --check` → sync OK - `devtools verify` → all checks passed - pre-push `devtools verify --quick` → all checks passed
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Adds a local-first browser capture path for web LLM sessions. Browser-observed ChatGPT and Claude.ai sessions now flow through a typed Polylogue capture envelope, a localhost receiver, normal inbox artifacts, source dispatch, parsing, and archive storage.
Closes #312.
Problem
ChatGPT and Claude.ai sessions required manual exports, so browser-hosted model work was disconnected from Polylogue's normal archive/query/product surfaces. The extension also needed archive-aware feedback rather than blind background upload.
Solution
polylogue.browser_capturetyped envelope models, deterministic inbox artifact naming, receiver status/archive-state helpers, and a local HTTP server.polylogue browser-capture status|serveand generated command/docs surfaces.browser-extension/polylogue-browser-capture/with ChatGPT and Claude.ai adapters, background transport, badge state, receiver configuration, capture/check controls, and a popup UI.Verification
pytest -q tests/unit/sources/test_browser_capture.py tests/unit/browser_capture/test_receiver.py→9 passedpytest -q tests/unit/browser_capture/test_receiver.py tests/unit/sources/test_browser_capture.py tests/unit/cli/test_click_app.py::TestCliMetadata::test_all_subcommands_registered tests/unit/cli/test_terminal_snapshots.py→20 passednode --checkon all extension scripts pluspython -m json.toolon the manifest → passedbrowser-extension/polylogue-browser-capture/src/popup.htmlwithout clipped controls after CSS fixdevtools render-all --check→ sync OKdevtools verify→ all checks passeddevtools verify --quick→ all checks passed