Repository navigation
feat(ios): add the Control UI's wording for tool calls - #206463
Merged
Merged
Conversation
Contributor
|
🦞👀 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. |
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
…does The Control UI stopped saying "Message accepted for …" in #206048: an accepted send reads "Sent message to …". Regenerate tool-operations.json from the web catalogs and map the accepted status to the same words.
vyctorbrzezowski
marked this pull request as ready for review
November 27, 2026 16:43
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 28, 2026
* feat(ios): add the Control UI's wording for tool calls * fix(ios): call an accepted send "Sent message to", as the Control UI does The Control UI stopped saying "Message accepted for …" in openclaw#206048: an accepted send reads "Sent message to …". Regenerate tool-operations.json from the web catalogs and map the accepted status to the same words. * fix(ios): leave generated tool copy catalogs to locale refresh Co-authored-by: Vyctor H. Brzezowski <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
In iPhone chat, most tool calls show only the tool's title, such as "Session Send" or "Read", with a raw argument or path beside it. The Control UI describes what the call is doing or did, such as "Sent message to Release review" or "Couldn't read Header.swift". Anyone who uses both sees different descriptions of the same work, and on iPhone a collapsed row often leaves out the specific action or outcome until you expand it.
User Impact
The new tool wording is not shown on screen yet. This PR is part of a series that brings the iOS chat in line with the Control UI. It adds the catalog and copy logic, and a later PR wires them into tool rows, the activity group headline, and the step timeline.
One small change is visible right away. When a tool has no display entry in
tool-display.json, its fallback title now keeps the capital letters from the tool name, matching the Control UI. For example,listIssueschanges from "Listissues" to "ListIssues", andget_URLchanges from "Get Url" to "Get URL". Lowercase names such asknowledge_statuslook the same as before. BecauseToolDisplayRegistryis shared, the same fallback casing applies in the macOS app's work activity.Why This Change Was Made
The Control UI owns this wording. Its English catalogs (
en-chat-tool-operations.tsanden-chat-tool-labels.ts) hold about 2,250 strings. Most of them (1,959) are the base, running and completed forms for 206 tools. The rest are shared verbs, launch and delivery states, and activity summaries. The app does not copy them by hand.scripts/tool-operations.ts --writegeneratestool-operations.jsoninOpenClawKitfrom those catalogs, and--checkflags when the generated file falls behind.ToolOperationCatalogloadstool-operations.jsononce from the resource bundle and fills in placeholders such as{name}and{count}.ChatToolOperationCopyports the web'scatalogToolOperationand the named branches ofresolveToolOperationLabel. It turns a call (name, arguments, outcome, result receipt, exit code, and addressed chat) into row text.ToolDisplayRegistry.operationCallandoperationSummarynormalize a call the same way the web does before wording it: they strip only OpenClaw's loopback MCP prefixes, parse arguments that arrive as a JSON string, and unwrap dispatcher calls.displayCallkeeps its existing behavior because icon lookup depends on it.The wording is English only for now, as in the Control UI.
Evidence
main. The build's SwiftFormat lint and strict SwiftLint pass with 0 violations across 566 files.ToolDisplayRegistryTestspassed 7 of 7 on an iOS 27.2 simulator, including the new check thatoperationCallleaves third-party MCP names unchanged. SwiftFormat and strict SwiftLint pass on that test file.pnpm tool-display:checkreports the existing tool display snapshot as up to date, andnative-app-i18n verifyreportschanged=false. The i18n sync adds two entries (launch.subagent.limitReachedandlaunch.subagent.namedLimitReached) that the extractor picks up fromChatToolOperationCopy.swift; both are lookup keys and are never shown to users.chat-tool-purpose.test.tsassert on chat row titles through the row model, so they land with the later PR that wires up those rows.ChatToolOperationCopyitself is not exercised by unit tests in this PR.scripts/tool-operations.ts --checkpasses:tool-operations.jsonmatches the web catalogs as of PR fix: clarify sent-message labels and chat activity icons #206048, which removedsessionSend.acceptedandsessionSend.acceptedNamed. An accepted send reads "Sent message to …" here too, andChatToolOperationCopy.sessionSendmaps theacceptedstatus to it.OpenClawKitSwiftPM tests on macOS.🦞 Made with OpenClaw