Repository navigation
feat(reader): message card action rail + fold policies + keyboard shortcuts (#1202) - #1328
Conversation
…rtcuts First MK3 reader slice landed on the daemon web shell. Adds a per-message action rail (copy/link/raw/provenance/anchor), fold policies for tool calls, tool output, thinking blocks, and per-block code folds, plus the documented j/k/o/c/?/Esc keyboard shortcut set. Implementation lives in polylogue/daemon/web_shell_reader.py and is wired into web_shell.py via __READER_CSS__/__READER_HELP_HTML__/ __READER_JS__ placeholders. The existing j/k sidebar handler now defers to the reader slice when a conversation is loaded so message- card navigation and conversation-list navigation do not double-fire. Pinned by tests/visual/test_reader_action_rail.py. Closes #1202
|
Warning Rate limit exceeded
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 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 (5)
✨ 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ac388628d9
ℹ️ 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".
|
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
First MK3 reader slice on the daemon web shell (#1202). Each message
card now carries a five-action rail (copy text, copy link, open raw,
view provenance, jump-to-anchor), default fold policies for tool calls
/ tool output / thinking blocks / code blocks, and the documented
keyboard shortcut set (j/k/o/c/?/Esc).
Problem
The MK3 reader (Q3 head) target spec called for message-card affordances
that the existing daemon reader did not expose. Operators reading old
conversations had no per-message clipboard, no way to deep-link an
anchor, and no way to fold the dominant noise sources (long tool
outputs, raw thinking dumps, large code blocks). Keyboard navigation
stopped at the conversation list — once a conversation was open there
was no way to move between message cards or copy the focused one.
Solution
polylogue/daemon/web_shell_reader.pyowns the slice: CSSfor the rail + fold UI, JS for
renderMessageBlocks, fold/clipboardhelpers, and a
installReaderShortcutscapture-phase handler.polylogue/daemon/web_shell.pyis wired via three new placeholders(
__READER_CSS__,__READER_HELP_HTML__,__READER_JS__); thelegacy inline
messageBlocksHtmlis replaced by a thin delegatingshim and the base
j/khandler defers to the slice when aconversation is loaded so message-card and sidebar navigation never
double-fire.
tool_use/tool_resultandrole==='tool'collapse toa labelled summary chip with command snippet and word count;
thinking blocks render the documented
[thinking]marker plus wordcount; fenced ``` code blocks fold per-block with language tag and
line count.
reader_anchor/actionspayload contract already produced bypolylogue/surfaces/payloads.py, so the slice is purely apresentation extension.
issue body was vetoed by the issue thread (belongs to feat(context): build project/date/query context packs for agent analysis #838) and a
continue-thread-in-agent action is its own scope. Neither is
implemented here.
Modules touched:
polylogue/daemon/web_shell.py— placeholder wiring, j/k handoverpolylogue/daemon/web_shell_reader.py— new slicetests/visual/test_reader_action_rail.py— new DOM-shape contractdocs/plans/topology-target.yaml,docs/topology-status.md— newmodule registered via
devtools build-topology-projectionVerification
devtools verify --quickwas clean only after refreshing thegenerated docs (
docs/cli-reference.md,docs/test-quality-workflows.md,docs/verification-catalog.md,.cache/site) that drifted on masterbefore this branch; those refreshes were applied and reverted to no-op
diffs.
Closes #1202