Skip to content

feat: add slash command picker in chat composer - #99426

Merged
Solvely-Colin merged 7 commits into
openclaw:mainfrom
VicZhang6:assets/slash-screenshots
Jul 4, 2026
Merged

Solvely-Colin merged 7 commits into
openclaw:mainfrom
VicZhang6:assets/slash-screenshots

Conversation

@VicZhang6

@VicZhang6 VicZhang6 commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

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:

Current iOS slash command picker

Local verification:

  • Fresh XcodeBuildMCP simulator build/install/launch passed on iPhone 17 for bundle ai.openclawfoundation.app.test.solvely-2ql5khqak5.
  • swift test --package-path apps/shared/OpenClawKit --filter 'slash command' passed: 3 tests.
  • Xcode simulator -only-testing:OpenClawTests/OpenClawTypographyTests passed: 9 tests.
  • git diff --check passed.

Coverage added/updated:

  • apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatViewModelTests.swift covers slash command catalog loading, filtering, and send behavior.
  • apps/ios/Tests/IOSGatewayChatTransportTests.swift covers the command catalog transport surface.
  • The picker UI uses the existing bundled JetBrains Mono via OpenClawChatTypography.mono(...); no new font files are added. JetBrains Mono licensing is already covered by apps/ios/Resources/Licenses/JetBrains Mono.txt and apps/ios/THIRD_PARTY_FONTS.md.

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: ios App: ios size: L triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jul 3, 2026
@clawsweeper

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 10:07 PM ET / 02:07 UTC.

Summary
The PR adds a Gateway-backed iOS slash-command picker in the chat composer, shared Swift command-catalog models and view-model logic, iOS commands.list transport support, native i18n updates, and Swift tests.

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.

  • Shared Swift command API: 2 public command types added, 2 defaulted transport members added. This is the new native command-catalog surface for shared chat transports, and the default implementations are what keep existing transports source-compatible.

Stored data model
Persistent data-model change detected: persistent cache schema: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatViewModel.swift. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Post a current-head iOS simulator screenshot or short recording showing typing /, final command rows, scroll affordance, and command insertion.
  • Ask for maintainer UX acceptance after the current-head proof is posted.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: Screenshot proof is real but stale: it is tied to older head 437a7ba6... and visibly does not match current head d235c3b0...; post current-head screenshot or recording proof with private details redacted, then update the PR body or ask a maintainer for @clawsweeper re-review.

Mantis proof suggestion
A current-head iOS visual proof would materially help maintainers verify the picker presentation, scroll affordance, and command insertion behavior. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: capture current-head iOS slash command picker after typing /, including command rows, scroll affordance, and command selection insertion.

Risk before merge

  • [P1] Current-head visual behavior is not proven: the only screenshot is from older head 437a7ba6... and shows UI elements removed before current head d235c3b0....
  • [P1] This is a new user-facing iOS composer feature, so final picker layout, scroll affordance, and command insertion still need maintainer UX/product acceptance.

Maintainer options:

  1. Decide the mitigation before merge
    Land the Gateway-backed iOS picker after current-head visual proof demonstrates the final UI and insertion flow, and maintainers accept the UX.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] Remaining action is contributor-supplied current-head visual proof plus maintainer UX/product acceptance; no narrow automated code repair is identified.

Security
Cleared: The diff touches Swift chat UI/transport/tests and native i18n inventory only; no new dependency, workflow, secret, package, or executable supply-chain surface was found.

Review details

Best 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 commands.list contract is the right owner boundary, and defaulted shared transport members protect existing transports. The remaining blockers are current-head real behavior proof and maintainer UX acceptance.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a1063aa4c83f.

Label changes

Label justifications:

  • P2: This is a bounded iOS app feature with real user-facing value and normal maintainer review urgency, but it still needs current-head proof before merge.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Screenshot proof is real but stale: it is tied to older head 437a7ba6... and visibly does not match current head d235c3b0...; post current-head screenshot or recording proof with private details redacted, then update the PR body or ask a maintainer for @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Screenshot proof is real but stale: it is tied to older head 437a7ba6... and visibly does not match current head d235c3b0...; post current-head screenshot or recording proof with private details redacted, then update the PR body or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

PR surface:

Other +805. Total +805 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 8 832 27 +805
Total 8 832 27 +805

What I checked:

Likely related people:

  • Solvely-Colin: Merged history shows this person authored the iOS Pro chat and Gateway flow that introduced or heavily shaped IOSGatewayChatTransport and the shared chat surfaces this PR extends. (role: original iOS gateway/chat flow contributor; confidence: high; commits: f6e51ff99af4; files: apps/ios/Sources/Chat/IOSGatewayChatTransport.swift, apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatViewModel.swift)
  • marvkr: Recent native iOS interface work touched ChatComposer.swift and adjacent chat UI surfaces immediately involved in this picker. (role: recent iOS chat UX contributor; confidence: high; commits: 5370f64cf09c; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatComposer.swift, apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatView.swift)
  • joshavant: Recent history includes iOS branded typography and chat composer fixes that overlap the typography-sensitive picker rows and shared chat UI. (role: recent iOS typography and composer contributor; confidence: medium; commits: 37a9b9a91c91, 9942428df001; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatComposer.swift)
  • vincentkoc: The commands.list/chat metadata work established the command inventory contract that the iOS transport now consumes. (role: adjacent Gateway command-catalog contributor; confidence: medium; commits: c0b05a2100d3; files: src/gateway/server-methods/commands-list-result.ts, ui/src/ui/chat/slash-commands.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jul 3, 2026
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Jul 3, 2026
@vyctorbrzezowski

vyctorbrzezowski commented Jul 3, 2026 •

Copy link
Copy Markdown
Member
image

It would be really nice if you added a small fade at the bottom of the list here.

E.g.:

image

The idea is to give a softer hint that it's scrollable, rather than a hard visual cut. Think a thin scrollbar could be useful?

Overall, the design is beautiful, you did a great job here. Another small nit is the icon you used for skills, I don't think it conveys the right idea. Something more fitting here would make it perfect.

I missed a screenshot showing what appears when we click the filter icon at the top right of the list component.

One more thing: can't skills coexist with commands in the same list?

Cursor does this, for example:

image

Not necessarily making a section for each, I think the icons do the job of differentiating them.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 3, 2026
@Solvely-Colin
Solvely-Colin force-pushed the assets/slash-screenshots branch from 23a0ba6 to 7af915e Compare July 3, 2026 19:11
@openclaw-barnacle openclaw-barnacle Bot removed the docs Improvements or additions to documentation label Jul 3, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 3, 2026
@Solvely-Colin
Solvely-Colin force-pushed the assets/slash-screenshots branch 3 times, most recently from 6bf946d to 3aef1d8 Compare July 3, 2026 23:47
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 3, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Jul 3, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 4, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 4, 2026
@Solvely-Colin
Solvely-Colin force-pushed the assets/slash-screenshots branch from c696ad5 to c2c7a8f Compare July 4, 2026 01:22
@Solvely-Colin
Solvely-Colin force-pushed the assets/slash-screenshots branch from c2c7a8f to d235c3b Compare July 4, 2026 01:53
@Solvely-Colin
Solvely-Colin merged commit 7acfb63 into openclaw:main Jul 4, 2026
129 of 130 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 4, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants