Skip to content

feat(mobile): an Owner's Allow this once and Save persona on the phone - #1043

Merged
Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/mobile-1040
Nov 14, 2026
Merged

Jacksondr5 merged 2 commits into
j5/mainfrom
j5code/mobile-1040

Conversation

@Jacksondr5

@Jacksondr5 Jacksondr5 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Problem

On web, an Owner answers two kinds of ask with a button: Allow this once, for a blocked persona launch, and Save persona, for an agent's persona draft. The phone showed J5's record of either with no button but kept the answer box. So an Owner's typed reply closed the ask and granted or saved nothing, and the record couldn't move to a new ask. Closes #1040 (Jackson chose (a)).

What changed

  • The phone's Inbox and the Captain's pinned ask show the Owner button beside Answer, as web does. It's Owner-only, through the existing allowPersonaOnce and savePersonaDraft calls and their permission atoms. A retry after a lost reply reuses its request id, as on web. On success, the Inbox and its count are read again; on failure, an alert gives the reason.
  • What the button does ("Adds X to this server's persona library…", which web shows on hover) is the button's accessibility hint on the phone.
  • Which action an ask offers, and its wording, moves from web's OwnerAskAction into client-runtime j5/inbox as ownerAskAction, with a test. Web uses it unchanged.

Docs (for the wave docs PR)

  • docs/j5/user/personas.md line 73: remove "Allow this once is on the web and desktop apps; the mobile app shows the request without it."
  • personas.md line 79: remove "Save persona is on the web and desktop apps; the mobile app shows the request without it."
  • docs/j5/product/features/inbox.md line 34: replace "The mobile app shows these asks and J5's record as plain text, without the button." with "The mobile app shows the same button."
  • inbox.md History: "- — the mobile app's Inbox and pinned ask carry an Owner's Allow this once and Save persona (Jackson, #1040)."

UI changes

A blocked persona launch in the Inbox:

Android before Android after
A blocked persona launch in the Inbox, Android before A blocked persona launch in the Inbox, Android after

A persona draft in the Inbox:

Android before Android after
A persona draft in the Inbox, Android before A persona draft in the Inbox, Android after

A blocked persona launch on the Captain's pinned ask:

Android before Android after
A blocked persona launch on the Captain's pinned ask, Android before A blocked persona launch on the Captain's pinned ask, Android after

A persona draft on the Captain's pinned ask:

Android before Android after
A persona draft on the Captain's pinned ask, Android before A persona draft on the Captain's pinned ask, Android after

A Collaborator's persona draft ask, with no Owner button:

A Collaborator's persona draft ask, with no Owner button, Android after

A Collaborator's blocked launch ask, with no Owner button:

A Collaborator's blocked launch ask, with no Owner button, Android after

A failed save showing the server's reason:

A failed save showing the server's reason, Android after

The saved persona in Agent Setup:

The saved persona in Agent Setup, Android after

The saved persona's details:

The saved persona's details, Android after

The allowed Haiku launch, finished:

The allowed Haiku launch, finished, Android after

Live testing

Android: PASS at f31d8efde2 against base de65b7008c (crew tester, report test-reports/pr-1043/f31d8efde2.md, stills only), with real Haiku turns.

  • Allow this once in the Inbox closed the ask with its fixed reply. The same persona retried with the grant and ran on Haiku 5.5 (Low), and the grant shows as used.
  • Save persona on the pinned ask, under a temporary write refusal on the test home, failed with the server's PermissionDenied reason and stayed open. It then succeeded on retry, and the persona is in Agent Setup.
  • A Collaborator sees neither button in the Inbox.

The tester noticed the draft's "Recorded by J5" text still said the button is "in the web or desktop app". aa1190c885 drops that clause from the server's summary. A draft recorded before this change keeps its old wording, as the tester's base-made draft did.

Not exercised: a lost-reply retry, and dark theme.

iOS: not run on a Simulator for this wave: the Mac's swap is nearly full. Jackson checks iOS on his iPhone at Checkpoint 8. The code is the same JS on both platforms.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior: ownerAskAction (client-runtime)
  • UI changes: before/after above, and a video for motion or interaction
  • Live testing: the section above says what ran live and what did not
  • Upstream-owned files: none
  • Upstream product: no change
  • Surfaces: mobile Inbox and pinned ask (iOS and Android); web already has the buttons and now shares the logic; Owner-only on both
  • Docs: lines above, for the wave docs PR

Claude Opus 5.5 in J5 Code (Claude Code harness).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 14, 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 14, 2026 10:19pm UTC

Request Review

@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Nov 14, 2026
@github-actions github-actions Bot added the size:L 100-499 effective changed lines (test files excluded in mixed PRs). label Nov 14, 2026
@Jacksondr5

Copy link
Copy Markdown
Owner Author

Panel review: reviewer-opus and reviewer-sol, at f31d8efde2

Verdict: approved. No code findings.

Checked and fine

  • The move to client-runtime keeps web's behaviour. ownerAskAction is web's old actionOf, with the same precedence and wording; only title is renamed detail. Web passes it through as title. The new test covers both kinds, the closed states and the case where the block can't be lifted.
  • Owner-only: the button shows only with the allowPersonaOnce or savePersonaDraft permission atom for that environment, and it runs through the existing commands.
  • Retry after a lost reply:
    • The request id is set before the await, so a retry reuses it.
    • It is kept on a failure and cleared on success.
    • The dock keys the button by exchangeId, so an id never carries over to the next pinned ask. Inbox rows are already keyed per item.
  • No double taps: mobile Button disables itself while loading.
  • Closed asks: a closed ask shows its closed text and no action. The action also returns null once the escalation or draft is no longer open.
  • After success: it refreshes the bell count and runs readInboxSources(), which rereads the open and answered asks behind both the Inbox and the Captain's dock. On failure, a Dialog.alert shows the failure with the server's message.
  • Disabled while the source isn't ready or an answer is delivering.
  • Accessibility: web's tooltip text becomes the accessibility hint.
  • Scope: six J5-owned paths only. No server, contract or upstream edit.

Docs (not blocking; for the wave's docs PR)

docs/j5/product/features/inbox.md, under Owner actions, still ends with "The mobile app shows these asks and J5's record as plain text, without the button." That will be untrue once this merges. Following the wave docs PRs (#1021, #1038), the rewrite and its History line belong in this wave's docs PR, not here.

Checks run on the PR head

  • git diff --check: clean.
  • client-runtime inbox.test.ts: 21 passed.
  • Web src/j5/a2a: 59 passed.
  • Mobile reactCompilerCoverage and upstreamSeams: 1150 passed.
  • Typecheck of client-runtime, web and mobile: clean.
  • Lint: clean (reviewer-sol).

Still to come

The tester's device evidence: a real refused launch and a real draft, retry and failure, and Owner versus non-Owner. Also the delta when #1041's answer rows merge.

— Claude Opus 5.5 (reviewer-opus) and GPT 6.1 Sol (reviewer-sol), J5 Code

@Jacksondr5

Copy link
Copy Markdown
Owner Author

Panel re-check at aa1190c885: still approved. The delta is one line in agentPersonaDrafts.ts: the draft summary no longer sends the Owner to the web or desktop app, which the phone's new button made untrue. No other J5 server text names web or desktop for these asks. Drafts recorded earlier keep their stored text, which is fine. agentPersonaDrafts.test.ts (8 passed) and git diff --check pass.

Still to come: the rebase onto #1044, the tester and CI.

— Claude Opus 5.5 (reviewer-opus) for the panel, J5 Code

Jacksondr5 and others added 2 commits November 14, 2026 17:16
The phone showed J5's record of a blocked persona launch or an agent's
persona draft with no button, so an Owner's typed reply closed the ask
and granted or saved nothing. The Inbox and the Captain's pinned ask now
carry web's Owner button beside Answer, through the same calls and
permissions.

Which action an ask offers, and what it does, moves from web's component
into client-runtime, with a test, so both clients share it.

Closes #1040

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… desktop

The phone now has Save persona too. A draft recorded before this keeps its
old wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jacksondr5

Copy link
Copy Markdown
Owner Author

Panel re-check after the rebase onto 7fd4f8f (#1044), at cb3b1d7: still approved.

  • git range-diff shows both commits unchanged, apart from context. In client-runtime/src/j5/inbox.ts, ownerAskAction now sits after feat(mobile): attach photos and files to an Inbox answer #1044's answerAttachmentSupport, with both kept as they were.
  • Inbox row: the attach button and Open thread are on the left, and the Owner action and Answer on the right.
  • Captain's pinned ask: the attach button, then a spacer, then the Owner action and Answer.
  • The Owner action keeps its own disabled and its per-ask key.
  • git diff --check, mobile typecheck and client-runtime inbox.test.ts (21 passed) pass.

— Claude Opus 5.5 (reviewer-opus) for the panel, J5 Code

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 7 billable files and costs up to $1.75.

  • 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 19 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available. Your 55 included PR review attempts over the past 7 days set your current allowance at 2 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 7fd4f8f and cb3b1d7.

Files selected for processing: 7

  • apps/mobile/src/j5/a2a/AdjudicationDock.tsx
  • apps/mobile/src/j5/inbox/InboxScreen.tsx
  • apps/mobile/src/j5/inbox/OwnerAskAction.tsx
  • apps/server/src/j5/agents/agentPersonaDrafts.ts
  • apps/web/src/j5/a2a/OwnerAskAction.tsx
  • packages/client-runtime/src/j5/inbox.test.ts
  • packages/client-runtime/src/j5/inbox.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Jacksondr5
Jacksondr5 merged commit 684bf0a into j5/main Nov 14, 2026
38 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/mobile-1040 branch November 14, 2026 22:37

This branch was successfully deployed

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

Labels

size:L 100-499 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: an Owner can Allow this once and Save persona from the phone

1 participant