Skip to content

feat: wire reader user-state controls - #1051

Merged
Sinity merged 1 commit into
masterfrom
feature/feat/reader-user-state-controls
May 15, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/feat/reader-user-state-controls

Conversation

@Sinity

@Sinity Sinity commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary

Wire the MK3 reader shell to the durable user-state APIs added in #1050 so marks and saved views are visible and actionable in the local reader instead of remaining placeholder text.

Problem

#867 requires durable marks and saved views to be reader product state, not browser-local or hidden API data. After #1050, the daemon exposed /api/user/*, but the web reader still did not load marks, display them in the conversation list/header, toggle them, or save/open query-backed views.

Solution

  • Load /api/user/marks and /api/user/saved-views during reader startup.
  • Display star/pin/archive state in the conversation list and detail header.
  • Add header and Notes-panel controls that toggle marks through the daemon API.
  • Add saved-view controls that save the current query/provider view and reopen saved query JSON.
  • Seed visual fixtures with durable marks and a saved view so DOM/API evidence proves archive-backed state wiring.
  • Update the MK3 execution log with the active slice, verification lane, and remaining feat(reader): add marks, annotations, saved views, and recall packs #867 scope.

Remaining #867 scope: annotation storage, message/range targets, CLI parity, and MCP parity.

Ref #867

Verification

  • ruff format --check polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py -> 3 files already formatted
  • ruff check polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py -> All checks passed
  • mypy polylogue/daemon/web_shell.py tests/visual/conftest.py tests/visual/test_reader_dom_smoke.py -> Success
  • node -e "... new Function(script) ..." -> script ok
  • pytest -q tests/visual tests/unit/daemon/test_web_reader.py -k "reader or UserState or saved_views or marks" -> 45 passed
  • devtools verify --quick -> exit_code 0
  • devtools verify --affected --skip-slow -> exit_code 0; pytest count 6361

Problem: #867 had durable daemon APIs for conversation marks and saved views, but the reader shell still treated user state as absent UI placeholder text. That made the product state invisible and left the visual evidence lane unable to prove archive-backed user workflows.\n\nWhat changed: load marks and saved views from /api/user/* in the reader shell, render/toggle conversation star/pin/archive state, save/open canonical saved views from the Notes panel, and seed visual fixtures with durable user-state rows. Visual DOM evidence now asserts the shell wiring and API payloads.\n\nRemaining: annotation storage, message/range targets, CLI parity, and MCP parity remain open under #867.
@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 8 minutes and 16 seconds 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: 17e5621d-9bd9-4f92-abcb-5e88826bf679

📥 Commits

Reviewing files that changed from the base of the PR and between b8c513f and 87c0fc7.

📒 Files selected for processing (4)
  • docs/plans/mk3-execution-log.md
  • 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-user-state-controls

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 7c02d9b into master May 15, 2026
4 checks passed
@Sinity
Sinity deleted the feature/feat/reader-user-state-controls branch May 15, 2026 14:08

@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: 87c0fc7c75

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