Skip to content

test(reader): add reader smoke tests (#865) - #941

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/865-http-bug
May 7, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/865-http-bug

Conversation

@Sinity

@Sinity Sinity commented May 7, 2026

Copy link
Copy Markdown
Owner

5 reader smoke tests.

Copilot AI review requested due to automatic review settings May 7, 2026 19:08
@Sinity
Sinity merged commit d3bcdd0 into master May 7, 2026
@Sinity
Sinity deleted the feature/fix/865-http-bug branch May 7, 2026 19:08
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 40 minutes and 54 seconds before requesting another review.

To continue reviewing without waiting, purchase usage credits in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: c27f4550-b522-41f6-82c3-bf859fd23843

📥 Commits

Reviewing files that changed from the base of the PR and between b0b174a and 87979e3.

📒 Files selected for processing (1)
  • tests/unit/daemon/test_web_reader.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/865-http-bug

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 87979e382f

ℹ️ 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".

Comment thread tests/unit/daemon/test_web_reader.py Resolved
Comment thread tests/unit/daemon/test_web_reader.py Resolved
@Sinity
Sinity removed the request for review from Copilot May 7, 2026 19:30
Sinity added a commit that referenced this pull request May 7, 2026
Closes #848 by replacing the older static reader pages with a
dynamic shell that adapts the same archive/query/status contracts
the Python API, CLI, MCP, and daemon HTTP already use, instead of
creating a parallel reader stack.

- `polylogue/daemon/web_shell.py`: client-side router, facet
  panel, keyboard navigation, and conversation/message detail
  views built on the daemon HTTP API. Net +621/-202 lines.
- `polylogue/daemon/http.py`: serves the new shell and exposes
  the facet aggregations the cockpit needs without inventing
  reader-only query semantics.
- The cockpit covers the visual surface targeted by the MK2
  spec; visual smoke evidence lands in PR #941 / #940 (#865).

Refs #848
Sinity added a commit that referenced this pull request May 7, 2026
Final agent-merge wave for the dynamic reader / capture / lineage
product cluster. The PR body was thin, so this body is reconstructed
from the closing issues and diff.

- #649 (browser extension MV3 harness + package gate): the Python
  receiver had pytest coverage but the JavaScript MV3 extension
  had no behavior harness or package smoke. The capture path now
  has tests on both sides of the HTTP envelope before data reaches
  `polylogue/browser_capture/`.
- #865 (reader visual smoke): pulls in additional web reader smoke
  evidence on top of #865 (PR #941).
- #866 (session lineage): touches the API archive surface
  (`polylogue/api/archive.py`) and daemon HTTP
  (`polylogue/daemon/http.py`) to expose lineage data through the
  shared query/status contracts.

Refs #649, #865, #866
Sinity added a commit that referenced this pull request May 7, 2026
Closes the reader visual-smoke gap from #865. The MK2 reader spec
(`docs/design/mk2/coding-agent-pack/03-web-ui-functional-aesthetic-spec.md`,
`07-verification-and-visual-evidence.md`) called for browser-level
evidence on top of the existing API/contract tests, but the
implementation had no real harness for the search and conversation
surfaces of the local web reader.

- Adds five smoke tests in `tests/unit/daemon/test_web_reader.py`
  exercising `polylogue.local_reader.search` and the conversation
  page render, replacing a much larger but unfocused legacy file
  (net -300 lines).
- Tests run against the daemon HTTP API used by the real reader
  shell, so regressions in routing, message rendering, and search
  pagination surface in unit-test scope rather than only in manual
  exploration.

Refs #865
Sinity added a commit that referenced this pull request May 7, 2026
Closes #848 by replacing the older static reader pages with a
dynamic shell that adapts the same archive/query/status contracts
the Python API, CLI, MCP, and daemon HTTP already use, instead of
creating a parallel reader stack.

- `polylogue/daemon/web_shell.py`: client-side router, facet
  panel, keyboard navigation, and conversation/message detail
  views built on the daemon HTTP API. Net +621/-202 lines.
- `polylogue/daemon/http.py`: serves the new shell and exposes
  the facet aggregations the cockpit needs without inventing
  reader-only query semantics.
- The cockpit covers the visual surface targeted by the MK2
  spec; visual smoke evidence lands in PR #941 / #940 (#865).

Refs #848
Sinity added a commit that referenced this pull request May 7, 2026
Final agent-merge wave for the dynamic reader / capture / lineage
product cluster. The PR body was thin, so this body is reconstructed
from the closing issues and diff.

- #649 (browser extension MV3 harness + package gate): the Python
  receiver had pytest coverage but the JavaScript MV3 extension
  had no behavior harness or package smoke. The capture path now
  has tests on both sides of the HTTP envelope before data reaches
  `polylogue/browser_capture/`.
- #865 (reader visual smoke): pulls in additional web reader smoke
  evidence on top of #865 (PR #941).
- #866 (session lineage): touches the API archive surface
  (`polylogue/api/archive.py`) and daemon HTTP
  (`polylogue/daemon/http.py`) to expose lineage data through the
  shared query/status contracts.

Refs #649, #865, #866
Sinity added a commit that referenced this pull request May 7, 2026
Closes the reader visual-smoke gap from #865. The MK2 reader spec
(`docs/design/mk2/coding-agent-pack/03-web-ui-functional-aesthetic-spec.md`,
`07-verification-and-visual-evidence.md`) called for browser-level
evidence on top of the existing API/contract tests, but the
implementation had no real harness for the search and conversation
surfaces of the local web reader.

- Adds five smoke tests in `tests/unit/daemon/test_web_reader.py`
  exercising `polylogue.local_reader.search` and the conversation
  page render, replacing a much larger but unfocused legacy file
  (net -300 lines).
- Tests run against the daemon HTTP API used by the real reader
  shell, so regressions in routing, message rendering, and search
  pagination surface in unit-test scope rather than only in manual
  exploration.

Refs #865
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 78.F044 / P1: fixed-already at the checked revision: Both web-reader server context managers now start a serve_forever thread before yielding their URL. tests/unit/daemon/test_web_reader.py:427-430 and 448-451 establish the running HTTP loop before callers issue requests.
  • 78.F045 / P1: fixed-already at the checked revision: tests/unit/daemon/test_web_reader.py:522 seeds through ArchiveStore(workspace["archive_root"]) rather than a separate temporary polylogue.db. The server context seeds that same workspace before yielding, so the test data resides in the configured archive tiers.

Only the rows listed above are dispositioned. Held findings remain open.

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