Skip to content

iOS Chat: clean UI noise and format tool outputs#22122

Merged
mbelinky merged 2 commits intomainfrom
pr/ios-chat-ux-cleanup
Feb 20, 2026
Merged

iOS Chat: clean UI noise and format tool outputs#22122
mbelinky merged 2 commits intomainfrom
pr/ios-chat-ux-cleanup

Conversation

@mbelinky
Copy link
Copy Markdown
Contributor

@mbelinky mbelinky commented Feb 20, 2026

Summary

  • hide inbound untrusted metadata blocks and timestamp prefixes from rendered chat text
  • add structured tool-result formatter to suppress raw JSON noise and show concise summaries/errors
  • compact composer while typing and dismiss keyboard by tapping chat area
  • remove redundant "thinking..." text while keeping typing indicator dots

Files

  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatComposer.swift
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatMarkdownPreprocessor.swift
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatMessageViews.swift
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatView.swift
  • apps/shared/OpenClawKit/Sources/OpenClawChatUI/ToolResultTextFormatter.swift
  • apps/shared/OpenClawKit/Tests/OpenClawKitTests/ChatMarkdownPreprocessorTests.swift
  • apps/shared/OpenClawKit/Tests/OpenClawKitTests/ToolResultTextFormatterTests.swift

Validation

  • cd apps/shared/OpenClawKit && swift test

Greptile Summary

Cleaned up iOS chat UI by hiding inbound metadata blocks and timestamp prefixes, added structured tool-result formatter to suppress raw JSON noise, compacted composer while typing with keyboard dismiss on chat tap, and removed redundant "thinking..." text while keeping typing indicator.

  • Added ChatMarkdownPreprocessor filters to strip untrusted metadata context blocks and timestamp prefixes from rendered chat text
  • Introduced ToolResultTextFormatter to format raw JSON tool results into concise summaries (e.g., nodes list, error messages)
  • Modified ChatComposer to compact UI on iOS when focused (hides toolbar, connection pill, and divider)
  • Added tap-to-dismiss keyboard gesture on ChatView for iOS
  • Removed "OpenClaw is thinking..." text from typing indicator bubble
  • All changes include corresponding test coverage

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Clean UI improvements with comprehensive test coverage. All changes are isolated to iOS chat UI components with proper platform conditionals. New formatter logic is well-tested and defensive (returns original text on parse failures). No breaking changes or security concerns.
  • No files require special attention

Last reviewed commit: 3e4e1f7

@openclaw-barnacle openclaw-barnacle bot added size: M maintainer Maintainer-authored PR labels Feb 20, 2026
@mbelinky mbelinky self-assigned this Feb 20, 2026
@mbelinky mbelinky force-pushed the pr/ios-chat-ux-cleanup branch from 3e4e1f7 to 34dd87b Compare February 20, 2026 19:00
@mbelinky mbelinky merged commit 9476dda into main Feb 20, 2026
10 checks passed
@mbelinky mbelinky deleted the pr/ios-chat-ux-cleanup branch February 20, 2026 19:01
@mbelinky
Copy link
Copy Markdown
Contributor Author

Merged via squash.

Thanks @mbelinky!

MisterGuy420 pushed a commit to MisterGuy420/openclaw-dev that referenced this pull request Feb 20, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
rodrigogs pushed a commit to rodrigogs/openclaw that referenced this pull request Feb 20, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
Hansen1018 added a commit to Hansen1018/openclaw that referenced this pull request Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
vincentkoc pushed a commit that referenced this pull request Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
dgarson pushed a commit to dgarson/clawdbot that referenced this pull request Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
mmyyfirstb pushed a commit to mmyyfirstb/openclaw that referenced this pull request Feb 21, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
obviyus pushed a commit to guirguispierre/openclaw that referenced this pull request Feb 22, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
mreedr pushed a commit to mreedr/openclaw-custom that referenced this pull request Feb 24, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
hughdidit pushed a commit to hughdidit/DAISy-Agency that referenced this pull request Mar 1, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky

(cherry picked from commit 9476dda)
hughdidit pushed a commit to hughdidit/DAISy-Agency that referenced this pull request Mar 3, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky

(cherry picked from commit 9476dda)

# Conflicts:
#	apps/shared/MoltbotKit/Sources/MoltbotChatUI/ChatComposer.swift
#	apps/shared/MoltbotKit/Sources/MoltbotChatUI/ChatMessageViews.swift
#	apps/shared/MoltbotKit/Sources/MoltbotChatUI/ToolResultTextFormatter.swift
#	apps/shared/MoltbotKit/Tests/MoltbotKitTests/ToolResultTextFormatterTests.swift
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Merged via /review-pr -> /prepare-pr -> /merge-pr.

Prepared head SHA: 34dd87b
Co-authored-by: mbelinky <[email protected]>
Co-authored-by: mbelinky <[email protected]>
Reviewed-by: @mbelinky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant