Repository navigation
Description
Problem
MK3 Slice 1 (docs/design/mk3/docs/10-implementation-slices.md:19) defines a message card with an action rail (copy menu, mark, annotate, fold), and a keyboard vocabulary (y, f, r, a, m per docs/design/mk3/docs/11-little-details.md:81). The reader today renders messages but does not expose a per-message action rail, fold policies for tool/thinking/code/paste-like long blocks are inconsistent, and only minimal keyboard nav from #848 / #923 is wired. There is no copy menu with markdown / permalink / raw variants.
Goal
Make the single-conversation reader excellent before adding more views: every message has a visible action rail with copy / mark / annotate / fold controls, long-form blocks fold by policy, and the documented keyboard shortcuts work.
Acceptance Criteria
- Each message card renders an action rail with: copy menu (text, markdown, permalink, raw when available), mark toggle, annotate trigger, fold/unfold toggle
- Copy menu denied-clipboard fallback (selection prompt) is reachable and tested
- Fold policies applied: tool blocks > N lines, thinking blocks (always folded by default), code blocks > N lines, paste-like text > N lines — thresholds shared with existing density tokens
- Search match windows inside folded regions auto-expand on navigation
- Keyboard shortcuts:
ycopy,ffold,rreveal raw,aannotate,mmark — at minimum these five, scoped to the focused message - Visual smoke under
tests/visual/covers: populated card, huge folded card, copy menu open, denied-clipboard fallback, message focused with keyboard - DOM evidence test asserts each action is reachable by keyboard
Out of scope
- Annotation surface itself (already shipped via feat: show reader annotations in notes panel #1055)
- Mark surface itself (already shipped; this issue only wires the action button)
File targets
polylogue/daemon/web_shell.py(message card markup, JS handlers)polylogue/daemon/web_shell_*.pysiblings where action handlers livetests/visual/test_reader_dom_smoke.pyand any additional smoke files
Size / dependencies
Size: M (2-3 days). All substrate present; pure reader work.
Ref #993
Activity
Sinity commentedon May 18, 2026
Ambitious expansion
The action rail is the natural place to add a
mark for context-packaction that builds up a curated cross-session set of messages for export to a new conversation seed.Pattern: user is reading old conversations, finds 3 useful messages across 2 sessions, marks them, then
polylogue context-pack export markedproduces a single Markdown document ready for the next agent session. Subsumes part of the #838 context-pack work.feat(reader): message card action rail + fold policies + keyboard sho…
docs(design): add MK4 Archive Workbench design program (#1497)