Registry Mirror
Skip to content

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Owner's request: "I keep sending messages to the wrong agent in inbox, i think we need to leave the to: field empty."

What changed

  • A plain New message (sidebar, list header, phone and Drafts page icons, ⌘K "New message…") opens with To empty and keyboard focus on the To button. Nothing fills To by itself any more.
  • Send stays aria-disabled with "Choose an agent to send it."; ⌘↵ only says "Nothing sent: choose a live agent first." On a phone the top bar offers Save draft until a session is picked.
  • To stays filled where the person already chose: ⌘K "Message in ", the first-run screen's "Message ", and a reopened draft (its saved session, ended ones included). Focus then starts in the message. A draft saved with nobody in To reopens empty.
  • preselect is replaced by composeOpening (compose/model.ts). The plannotator-inbox-compose-last cookie is still written, but now only orders the picker: that session first, its project leading (composeGroups's new last argument).
  • Closing the picker with nobody picked returns focus to To. If the first read finds no live agent, focus moves to the message.
  • CLAUDE.md's compose section is updated.

Tests

  • packages/inbox/composeModel.test.ts: composeOpening, and the picker order with the last session.
  • packages/inbox/compose.test.tsx (DOM): a new test for empty To, focus on To, Send refused until picked, Escape in the picker, a kept draft reopening with its session, and the palette's Message action prefilled. The existing tests now pick To.
  • pasteFiles.test.tsx and the e2e specs (inbox-compose, inbox-compose-skill-picker, inbox-paste) now pick To instead of relying on preselection.
  • bun test packages/inbox: 368 pass / 0 fail. All packages/inbox/*.test.tsx under DOM_TESTS=1 --isolate: 612 pass / 0 fail. bun run typecheck passes. On a locally compiled binary, headless Playwright for inbox-compose, compose-skill-picker, paste, dictation-paste and worst-case: all pass.

🤖 Generated with Claude Code

backnotprop and others added 2 commits October 22, 2026 14:38
A plain New message opens with nobody in To and focus on the To button,
so the person picks the agent first. Send says 'Choose an agent to send
it.' until one is picked. To stays filled where the person already chose:
the palette's and first-run's 'Message <host>', and a reopened draft.
The last-sent cookie now only orders the picker (that session first).

Co-Authored-By: Claude <noreply@anthropic.com>
…ep an empty compose

- The To picker opens with no row highlighted while To is empty, so Enter
  picks nothing; typing or an arrow key highlights the first row.
- An empty compose (no words, files or typed thread name) offers no Save
  draft, saves nothing and closes asking nothing; a phone's top bar shows the
  disabled Send instead of Save draft.
- Tests: focus in the no-agent case, the owner's send-to-A-then-new case,
  the pinned refusal strings marked as pinned on purpose.

Co-Authored-By: Claude <noreply@anthropic.com>
@backnotprop
backnotprop merged commit 2184ffb into main Oct 22, 2026
29 checks passed
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