Repository navigation
feat(mobile): a draft's saved agent gets its own row, and the slash menu covers the draft rows - #881
Conversation
…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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 5 billable files and costs up to $1.25.
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. View limit details
|
Jacksondr5
left a comment
There was a problem hiding this comment.
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.
DraftAgentRowshows the picker, keeping its disabled state, until an agent is chosen. Then it shows the existingAgentPersonaAssignmentControlswith the draft'sdraftKey, so remove still clears it.ThreadComposerhides 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
relativewrapper holds only the absolutely positioned anchor, so it's zero-height, and it sits afterdraftControls.- On iOS,
bottom-fullnow measures from the top of the input. - On Android, the anchor's
absolute inset-0is measured withmeasureLayoutfrom 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.
- On iOS,
- 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.tspasses (46), mobilevp run typecheckexits 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.
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
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.ComposerPopoverAnchorsits in a zero-heightrelativewrapper placed after the draft controls. Itsbottom-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.mdcomes 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, 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:
Android, captured by the wave-2 Android tester on the same test home: before on
j5/main(edc4350), after on this branch (dddd037).Live testing
iOS: PASS at e1bc050 (crew tester, report
test-reports/j5code-mobile-wave1b-tester/e1bc050552-ios.md).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 renderDraftAgentRowinstead ofAgentDraftPicker(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
FORK.md(case 100 and file-table rows) in this PRBuilt by Claude Opus 5.5 in Claude Code (J5 Code crew seat builder-composer).
🤖 Generated with Claude Code