Repository navigation
feat(apple): return replies from Ask OpenClaw - #147668
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 5, 2026, 11:35 AM ET / 15:35 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds an Ask OpenClaw action to iOS and macOS Shortcuts that returns the selected run’s recorded reply preview or status, spoken dialog, and chat continuation. Merge readiness⛔ Blocked before merge - 3 items remain This PR still provides a distinct native capability absent from current main. No introduced correctness defect was identified; the maintainer-owned stack remains unqualified for landing. Priority: P2 Review scores
Verification
How this fits togetherApple’s Siri and Shortcuts actions submit questions through OpenClaw’s authenticated native chat connection. The Gateway records run completion and replies, which the new action converts into text and a continuation to the selected chat. flowchart TD
A[Siri or Shortcuts question] --> B[Selected conversation]
B --> C[Authentication and confirmation]
C --> D[Prepared native submission]
D --> E[Gateway run completion]
E --> F[Exact run and connection checks]
F --> G[Reply preview or explicit status]
G --> H[Selected chat continuation]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +16, Other +363. Total +379 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep reply selection with the canonical Gateway run owner and qualify the native action on the composed stack before exposing it in packaged apps. Do we have a high-confidence way to reproduce the issue? Not applicable: this adds a native reply-returning capability rather than repairing a demonstrated shipped bug; installed invocation remains pending. Is this the best way to solve the issue? Yes: reusing prepared submission and canonical exact-run completion avoids a competing reply-selection mechanism or guessing from recent chat history. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fb84dd57fd57. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
a262d02 to
e87d1c7
Compare
5084f0b to
77b3bcd
Compare
Current refactored stack — unqualified update
Shares prepared destination/message confirmation with Send. Ask submits once, preserves the original continuation, and returns only the accepted exact run’s bounded recorded response. Its base is now the voice layer.
Head:
e87d1c778897067b905119d2191187039c451a28Base:
ad6c8a11755e7b89d9ee41dfc80f2dbf9e429b01iOS #143610 → macOS #143615 → Voice #143631 → Ask #147668 → Status #192503 → Preview #192504
Independent exact-head source re-review resolved the voice API blockers and found no additional blocking finding. This is not GitHub approval, full-app qualification, or merge/release clearance. Existing draft/open state is preserved; a lower PR’s non-draft state is not readiness evidence.
Available proof: shared OpenClawKit build; six focused shared tests; shared-intent metadata validation; ten shared boundary assertions. The corrected binding and seven affected call expressions typecheck with real shared Gateway types and explicit ChatUI/media shims; both original-defect negative controls fail as expected. Twelve extracted lifetime assertions and 47 syntax checks pass. These limited harnesses do not compile or run the full voice/app sources.
Still unverified: full iOS/macOS builds and native/voice/Gateway/status suites; installed Shortcuts, real confirmation/approval and device audio; SDK 27.3 macro-active compilation, compiled/packaged Skills and release archives. Six inherited lint errors and documented warnings remain. Old CI below is historical, not current-head qualification.
Previous description and historical evidence — superseded where inconsistent above
Related: #142950
What Problem This Solves
Siri and Shortcuts can send a message to OpenClaw, but the existing Send Message action returns an accepted run instead of its answer. Ask OpenClaw now returns the exact run's recorded reply preview on iOS and macOS, with a spoken summary and a continuation to that chat.
Why This Change Was Made
The new public App Intent reuses the selected conversation's prepared submission, local-device authentication, destination confirmation, and captured Gateway connection/profile. It observes canonical
agent.waitcompletion; it never chooses the newest history message. Waiting or cancelling the shortcut does not abort accepted work or resend the question.This draft is stacked on #143615 and depends on the Gateway reply projection repair in #147656. The stack must be composed and qualified before landing. Generated-file results will follow in a separate layer.
User Impact
Ask OpenClaw is discoverable in both apps' Shortcuts catalog. It waits up to 25 seconds and returns the Gateway's bounded 4,096 UTF-16-unit reply preview. Long-running, silent, empty, unavailable, and failed outcomes produce an explicit status with the exact-run continuation. Open the chat for the full response.
Evidence