Repository navigation
feat: add slash command picker in chat composer - #99426
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 10:07 PM ET / 02:07 UTC. Summary PR surface: Other +805. Total +805 across 8 files. Reproducibility: not applicable. this is a feature PR rather than a bug report. Source review confirms current main lacks an iOS slash-command picker and this PR adds that new discovery surface. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the Gateway-backed iOS picker after current-head visual proof demonstrates the final UI and insertion flow, and maintainers accept the UX. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a feature PR rather than a bug report. Source review confirms current main lacks an iOS slash-command picker and this PR adds that new discovery surface. Is this the best way to solve the issue? Yes, conditionally: using the existing Gateway AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a1063aa4c83f. Label changesLabel justifications:
Evidence reviewedPR surface: Other +805. Total +805 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
23a0ba6 to
7af915e
Compare
6bf946d to
3aef1d8
Compare
c696ad5 to
c2c7a8f
Compare
c2c7a8f to
d235c3b
Compare
* feat: add iOS slash command picker * refine iOS slash command picker presentation * Fix iOS slash picker scroll affordance build * Preserve branded mono typography in slash picker * Refresh native i18n inventory * Remove slash picker row icons * Refresh native i18n inventory --------- Co-authored-by: Colin <[email protected]>



What Problem This Solves
OpenClaw has many slash commands, but the iOS chat composer did not provide an in-context way to discover, filter, and select them. Users had to know command names ahead of time, and the composer did not have enough local slash-command awareness to present the Gateway command catalog cleanly.
This PR adds a slash command picker that opens when the user types
/, shows a unified command/skill list, filters results as the user types, and inserts the selected command into the composer. It also wires the iOS Gateway command catalog transport through the active agent/session context so the picker reflects the correct command surface.Why This Change Was Made
The composer is the right place for command discovery because it keeps the user in message context while they choose a command. The current UI intentionally preserves monospace command names for scanability, but routes the text through
OpenClawChatTypography.mono(...)so it follows the iOS branded typography policy.User Impact
Users can type
/in chat and pick a command without memorizing command names. The picker now avoids category tabs/badges, keeps command rows compact, and includes a bottom scroll affordance when more commands are available.Evidence
Current iOS simulator proof from head
437a7ba6b67c9a503d3625f753e50b355dbf7a60:Local verification:
ai.openclawfoundation.app.test.solvely-2ql5khqak5.swift test --package-path apps/shared/OpenClawKit --filter 'slash command'passed: 3 tests.-only-testing:OpenClawTests/OpenClawTypographyTestspassed: 9 tests.git diff --checkpassed.Coverage added/updated:
apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatViewModelTests.swiftcovers slash command catalog loading, filtering, and send behavior.apps/ios/Tests/IOSGatewayChatTransportTests.swiftcovers the command catalog transport surface.OpenClawChatTypography.mono(...); no new font files are added. JetBrains Mono licensing is already covered byapps/ios/Resources/Licenses/JetBrains Mono.txtandapps/ios/THIRD_PARTY_FONTS.md.