Skip to content

feat(mobile): a draft's saved agent gets its own row, and the slash menu covers the draft rows - #881

Merged
Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/mobile-agent-chip-row
Nov 1, 2026
Merged

Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/mobile-agent-chip-row

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Problem

In the mobile new-task composer, a chosen saved agent showed as a chip inside the text field ("L…" next to its clear button), where it crowded the editor and couldn't be read. The slash menu opened above the checkout row, squeezed into the space left above everything stacked over the input. Jackson asked for both changes at Checkpoint 1. Closes #866.

What changed

  • Its own row. A chosen saved agent shows in a row under the checkout row: J5's new DraftAgentRow, with the persona, its route and the remove action, at full width. Before a choice, the same row holds the saved-agent picker, as it did. A draft's input row no longer shows the agent. A started persona thread's composer still shows it in the input row, since there's no checkout row there.
  • The slash menu covers the draft rows. ComposerPopoverAnchor sits in a zero-height relative wrapper placed after the draft controls. Its bottom-full, and the Android anchor's measured frame, now start at the top of the input, so the menu draws over the checkout and agent rows. A started thread has no draft controls, so its menu opens exactly where it did.

This changes upstream's composer on mobile at Jackson's direction. It's recorded as FORK.md case 100, and the register entry in docs/j5/product/upstream.md comes with the wave-2 docs PR.

UI changes

iOS, captured by a crew tester on the same test home: before on j5/main (c2b7939), after on this branch (e1bc050).

Before After
New draft, no saved agent, iOS New draft, no saved agent, iOS, before New draft, no saved agent, iOS, after
New draft with Luna helper chosen, iOS New draft with Luna helper chosen, iOS, before New draft with Luna helper chosen, iOS, after
Typing / in a Luna helper draft, iOS Typing / in a Luna helper draft, iOS, before Typing / in a Luna helper draft, iOS, after
A started Luna helper thread, iOS A started Luna helper thread, iOS, before A started Luna helper thread, iOS, after
Typing / in a started Luna helper thread, iOS Typing / in a started Luna helper thread, iOS, before Typing / in a started Luna helper thread, iOS, after

Before, the chosen agent shows as a truncated chip inside the input, and the slash menu opens above the checkout and agent rows. After, the agent has its own readable row, and the menu covers those rows. The no-agent draft and started threads look as before.

Interactions, after only:

A slash-menu skill drawn over the draft rows, tapped and inserted into the input, iOS, after
The agent removed from its row, with the picker and model control back, iOS, after

Android, captured by the wave-2 Android tester on the same test home: before on j5/main (edc4350), after on this branch (dddd037).

Before After
New draft, no saved agent, Android New draft, no saved agent, Android, before New draft, no saved agent, Android, after
New draft with Luna helper chosen, Android New draft with Luna helper chosen, Android, before New draft with Luna helper chosen, Android, after
Typing / in a Luna helper draft, Android Typing / in a Luna helper draft, Android, before Typing / in a Luna helper draft, Android, after
A started Luna helper thread, Android A started Luna helper thread, Android, before A started Luna helper thread, Android, after
Typing / in a started Luna helper thread, Android Typing / in a started Luna helper thread, Android, before Typing / in a started Luna helper thread, Android, after

A slash-menu skill drawn over the draft rows, tapped and inserted into the input, Android, after
The agent removed from its row, with the picker and model control back, Android, after

Live testing

iOS: PASS at e1bc050 (crew tester, report test-reports/j5code-mobile-wave1b-tester/e1bc050552-ios.md).

  • Draft without an agent: unchanged.
  • Agent row: the agent's name and full route are readable in their own row.
  • Slash menu: it covers both draft rows, and tapping a skill drawn over them inserts it, with no tap intercepted.
  • Remove: it brings back the picker and the model control.
  • Started persona thread: its composer and slash menu keep their old geometry.
    No paid turn was sent.

Android: PASS at dddd037 (wave-2 Android tester, report test-reports/mobile-wave2-android/dddd03738f.md). The same checks pass: the agent row is readable, the slash menu covers the draft controls and a skill tapped over them inserts, Remove brings back the picker and model control, and a started thread's composer and menu are unchanged. A real Luna helper turn completed on both heads, in Current checkout mode on the isolated repo.

Not covered: dark theme (both platforms ran light, on a phone), tablet layouts, and the disabled, error and loading states. There's no video, because the Device panel can't be recorded; the change has no motion.

Upstream impact

  • apps/mobile/src/features/threads/NewTaskDraftScreen.tsx: the draft controls render DraftAgentRow instead of AgentDraftPicker (case 100; the draft-as-agent record is updated).
  • apps/mobile/src/features/threads/ThreadComposer.tsx: the persona lock control only for a started thread, and the popover wrapper (case 100).

Both are in the seams test.

Checklist

  • One concern: the description has no "also". Both changes are the draft rows' layout, as one item in Mobile: saved-agent chip below the checkout row, and the slash menu covers that row #866.
  • Tests cover the changed behavior: layout only, so captures instead of tests (AGENTS.md). The seams test pins both edits.
  • UI changes: iOS and Android before/after above; limits listed under Live testing
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: each one is recorded in FORK.md (case 100 and file-table rows) in this PR
  • Upstream product: this changes upstream's composer at Jackson's direction (Mobile: saved-agent chip below the checkout row, and the slash menu covers that row #866). The register entry comes in the wave-2 docs PR.
  • Surfaces: mobile new-task composer. Started threads are unchanged. Web has its own composer, already laid out this way.
  • Docs: the register entry is in the docs PR

Built by Claude Opus 5.5 in Claude Code (J5 Code crew seat builder-composer).

🤖 Generated with Claude Code

…enu covers the draft rows

In the new-task composer, a chosen saved agent showed as a chip inside the
input row, where it crowded the editor and truncated. It now has its own
row under the checkout row (J5 DraftAgentRow: the picker, then the agent's
persona, route and remove action), and a draft's input row no longer shows
it; a started thread's composer still does. The slash menu now anchors at
the top of the input, so it covers the checkout and agent rows instead of
opening above them.

Recorded as FORK.md case 100; the register entry comes in the wave-2 docs PR.

Closes #866

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 1, 2026 8:16pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 5 billable files and costs up to $1.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 10 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 3 included reviews currently available. Your 43 included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between edc4350 and dddd037.

Files selected for processing: 5
  • FORK.md
  • apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
  • apps/mobile/src/features/threads/ThreadComposer.tsx
  • apps/mobile/src/j5/agents/DraftAgentRow.tsx
  • apps/mobile/src/j5/upstreamSeams.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Jacksondr5 Jacksondr5 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined panel review (reviewer-opus + reviewer-sol) at e1bc050

Verdict: no findings, and the panel approves the source. Still pending: device captures and interaction checks (below). Also pending: the register entry for this divergence in upstream's product (Jackson's direction at Checkpoint 1), which the PR leaves to the wave-2 docs PR. It must land there.

  • Agent row. DraftAgentRow shows the picker, keeping its disabled state, until an agent is chosen. Then it shows the existing AgentPersonaAssignmentControls with the draft's draftKey, so remove still clears it. ThreadComposer hides the persona control only for a draft (props.isDraft ? null : …). A started thread keeps its lock, its handoff and drift chips, and the route in its shell.
  • Slash menu. The new relative wrapper holds only the absolutely positioned anchor, so it's zero-height, and it sits after draftControls.
    • On iOS, bottom-full now measures from the top of the input.
    • On Android, the anchor's absolute inset-0 is measured with measureLayout from that same origin into the popover host.
    • Either way, the menu draws over the checkout and agent rows. A started thread has no draft controls, so its menu opens where it did.
    • No new geometry or animation code.
  • Records. FORK.md case 100 is free: trunk's last case is 99, and the sibling wave-2 PRs claim no competing 100. The draft-as-agent and persona records are updated, and the ledger rows and seams-test reaches are added.
  • Reviewer-run: upstreamSeams.test.ts passes (46), mobile vp run typecheck exits 0, and lint is clean on the changed files.

Device checks for the tester (Android, plus iOS at Checkpoint 2)

  • Choose an agent: it appears in its own row under the checkout row, and removing it brings the picker back.
  • Type / in a draft with the agent row showing. The menu covers the checkout and agent rows, and tapping an item that sits over those rows inserts it rather than hitting the row underneath. The menu now lies entirely outside its zero-height parent, so this is the one behaviour to confirm by hand.
  • In a started persona thread, the lock control and the slash menu position are unchanged.

Reviewed by Claude Opus 5.5 (reviewer-opus) and Sol 6.1 (reviewer-sol) in J5 Code.

@github-actions github-actions Bot added size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Nov 1, 2026
@Jacksondr5
Jacksondr5 merged commit 0f8b8e8 into j5/main Nov 1, 2026
33 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/mobile-agent-chip-row branch November 1, 2026 20:47

This branch was successfully deployed

1 active deployment
Preview — dddd0373 Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: saved-agent chip below the checkout row, and the slash menu covers that row

1 participant