Skip to content

feat(reader): message card action rail, fold policies, keyboard shortcuts #1202

Closed

Description

@Sinity

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: y copy, f fold, r reveal raw, a annotate, m mark — 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

File targets

  • polylogue/daemon/web_shell.py (message card markup, JS handlers)
  • polylogue/daemon/web_shell_*.py siblings where action handlers live
  • tests/visual/test_reader_dom_smoke.py and any additional smoke files

Size / dependencies

Size: M (2-3 days). All substrate present; pure reader work.

Ref #993

Activity

  1. added
    type:feat
    area:daemon
    on May 17, 2026
  2. Sinity commented on May 18, 2026

    @Sinity
    OwnerAuthor

    Ambitious expansion

    The action rail is the natural place to add a mark for context-pack action 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 marked produces a single Markdown document ready for the next agent session. Subsumes part of the #838 context-pack work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:daemontype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions