Skip to content

feat(replies): a Replies page to draft, edit and copy email replies - #604

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-4cz7ul
Oct 18, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-4cz7ul

Conversation

@adeelahmad

Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: email replies (#565) could be drafted only through the API, MCP or a pipeline step. The web app had no place to see them.

After: a Replies page lists the email that waits for an answer, and it shows in the menu (with a count) only while some email waits. The first card's instructions field has focus, and Enter drafts its reply. A draft shows its text, its sources (each [n] linked to the excerpt) and what's left to confirm. Edits save with Ctrl+Enter, with Undo. Open in your mail app (mailto) or Copy takes the reply without its citations. Set aside hides the email and offers Undo, with no confirm dialog. An email's More actions menu has Reply to this email…, which opens the page on that email.

How: components/replies/ (model, hooks, page) on the generated Replies client. The page polls only while a draft is being written. The nav item uses the existing whileCounted pattern.

Motivation and Context

The second step of the email responder, the flagship app on Lens. Sending after the person's yes comes next, in its own PR.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it in changelog.d/replies-page.md.

Done questions (AGENTS.md)

  • Goal: people can draft, edit, copy and set aside replies in the web app. Merged on green.
  • Agents: everything on the page is already in the API and MCP (feat(replies): draft cited replies to imported email #565).
  • Zero setup: nothing new.
  • Fewest clicks: first field focused, Enter drafts, Ctrl+Enter saves, Undo instead of confirm, the menu item shows only when email waits.
  • Configurable: no new settings.
  • Light: a page, polling only while a draft is being written and a 60-second count otherwise.
  • Private and secure: no new surface. The page uses the existing endpoints and their permission checks.
  • Cost: no model calls beyond the drafts the person asks for.
  • User decides: nothing is sent. Mail leaves only through the person's own mail app.
  • Upgrades: n/a, no stored-data change.
  • Honest: sources are linked. The docs say sending isn't built yet.
  • Tests and docs: __tests__/replies-page.test.tsx (10 tests), docs/email-replies.md "The Replies page", requirements rows.
  • Open standards: mailto (RFC 6068).
  • Reported in the project thread.
  • Reuse: the generated client, the nav whileCounted pattern, and the existing UI components.

Local checks: tsc, eslint, prettier, the jest suite for the page, ci/check_requirements.py, and mkdocs build --strict.


Generated by Claude Code

The email that waits for an answer, in the nav while any does: Enter drafts
the first one's reply, a draft shows with To, Cc, Subject, its sources and
what's left to confirm, and Open in your mail app or Copy takes it without
citations. Ctrl+Enter saves an edit with Undo; Set aside offers Undo. An
email's More actions menu links to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xa7Hz2SLg6sNrGksMEzBaz
@adeelahmad
adeelahmad merged commit b87cfa5 into main Oct 18, 2026
10 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-4cz7ul branch October 18, 2026 13:21
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.

2 participants