Skip to content

feat: show reader annotations in notes panel - #1055

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/reader-annotation-workflow
May 15, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/reader-annotation-workflow

Conversation

@Sinity

@Sinity Sinity commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

Wire durable annotations into the local reader Notes panel so #867 annotation state is visible and editable from the reader, not only from daemon/API/MCP/CLI surfaces.

Problem

The durable annotation substrate and /api/user/annotations routes existed, but the reader Notes tab still showed a placeholder saying annotation storage remained tracked in #867. That meant annotations were implemented but not usable in the primary reader workflow.

Solution

  • Load annotations as part of reader user state and group them by conversation.
  • Render annotation cards in the Notes tab with target metadata and note text.
  • Add reader controls for add/edit/delete using the existing daemon annotation endpoints.
  • Seed the visual fixture with a durable annotation.
  • Extend browserless DOM evidence to assert the annotation route, reader action, and seeded annotation payload.

Ref #867

Verification

  • pytest -q -n0 tests/visual/test_reader_dom_smoke.py tests/unit/daemon/test_web_reader.py::TestReaderUserState::test_annotations_roundtrip_conversation_and_message_targets -> 5 passed
  • ruff check polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py tests/unit/daemon/test_web_reader.py -> passed
  • python -m mypy polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py -> passed
  • devtools verify --quick -> exit_code 0, total_duration_s 17.15 before commit; pre-push quick gate at a4d0173f -> exit_code 0, total_duration_s 18.31

Problem: #867 had durable annotation storage and daemon routes, but the reader Notes panel still displayed a placeholder instead of real annotation state or controls.

What changed: the web reader now loads annotations with user state, groups them by conversation, renders annotation cards in the Notes tab, and exposes add/edit/delete actions through the existing daemon annotation routes. Visual fixtures now seed an annotation and DOM evidence asserts the annotation API and seeded note.

Verification: pytest -q -n0 tests/visual/test_reader_dom_smoke.py tests/unit/daemon/test_web_reader.py::TestReaderUserState::test_annotations_roundtrip_conversation_and_message_targets; ruff check polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py tests/unit/daemon/test_web_reader.py; python -m mypy polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py; devtools verify --quick.
@coderabbitai

coderabbitai Bot commented May 15, 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 39 minutes and 1 second before requesting another review.

You’ve run out of usage credits. Purchase more 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: e4a2ad1f-f562-4009-90db-e38304bac422

📥 Commits

Reviewing files that changed from the base of the PR and between 9555507 and a4d0173.

📒 Files selected for processing (3)
  • polylogue/daemon/web_shell.py
  • tests/visual/conftest.py
  • tests/visual/test_reader_dom_smoke.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/feat/reader-annotation-workflow

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.

@Sinity
Sinity merged commit fccf937 into master May 15, 2026
4 checks passed
@Sinity
Sinity deleted the feature/feat/reader-annotation-workflow branch May 15, 2026 15:46

@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: a4d0173fcf

ℹ️ 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 polylogue/daemon/web_shell.py Resolved
@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.

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