You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mobile: Tool approval and question cards in the DM #1718
In a mobile DM, a message that carries a Tool approval or a Human question shows only "Open the full client on your computer to respond to this." The Human has to leave the chat to decide. apps/mobile/DESIGN.md (Chat → Action cards) says these cards sit in the chat stream and are decided there. Activity can already decide them through src/host/requests.ts (#1653).
Smallest useful scope / 最小有用范围
Included:
A src/ui/chat/ action card with one shared layout: a title and explanation, an optional preview, then buttons. At most one button is primary.
Tool approval: Allow once / Always allow / Deny. Details open a form sheet showing the tool, cwd and input.
Question: lettered options, single or multiple choice, then Submit.
A decided card collapses to one line. A card decided on another device, or one that expired, says so.
The cards reuse loadApproval / loadQuestion and the decide calls in src/host/requests.ts. There are no new Host bridge methods, so no CLI change.
Opening an Activity item jumps to its card in the chat.
Private input requests still open the full client.
How to verify / 如何验收
Fake-Host tests cover each card kind: pending, decided here, decided elsewhere and expired.
Against an isolated Host (MOBILE_LIVE_HOST_URL), a real PersonaBot asks for an approval and a question in a DM. Both are decided from the chat, and the Bot continues.
Activity
Stack the approval decisions in one column and make Details a link (#…
Merge main into the DM cards branch (#1718)
Give the approval details sheet its own title and Done button, and a …
Merge main (voice composer) into the DM cards branch (#1718)
Simplify the mobile approval and question cards (#1718)
Write the action card rules into the mobile design guide (#1718)
Retake the mobile card screenshots with the pill buttons (#1718)
Simplify the mobile approval and question cards (#1795)
Answer Inbox questions and approvals in place, one post at a time (#1765
Give mobile fills one layer model that mirrors the Web Client (#1774)
Add filter chips and pinned section headers to the mobile Activity tab (