Skip to content

improve(ios): isolate typing updates in slash-command suggestions - #198246

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/ios-slash-panel-observation
Nov 14, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
openclaw/ios-slash-panel-observation

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #194235 (separate editor/footer isolation; not included here and not a technical dependency).

What Problem This Solves

Addresses unnecessary composer work when typing with slash-command suggestions open.

User Impact

Command suggestions should continue updating without subscribing the surrounding composer-content construction to every query edit. No visual or interaction change is intended.

Why This Change Was Made

Keep the slash query, matching, and panel rendering inside the existing ChatComposerSection body boundary. Preserve presentation, the 340-point panel, placement/height preferences, selection, and all Send/Stop/Talk draft semantics. No cache or parallel state is added.

The adjacent audit found the other slash-query reads in presentation/keyboard callbacks, not eager view construction. Model menus already defer their catalog projection. Editor/footer isolation remains separate in #194235; keyboard-transition cost remains unproven.

Evidence

Maintainer verification on published head 4e58de90adbde10ce36ce7d94d99f319d5ace210:

  • The iOS build and 21 source-selected iOS tests passed, with no skips. The baseline control failed the expected eager-observation assertion; its temporary access-only change and selected-source manifest were restored.
  • Separately, five interleaved native-keyboard A/B comparisons applied only this panel change over perf(ios): stop redrawing the model menu and buttons on every keystroke #194235 at a7ade8e4cb20730377ac57d25a3a0cb133d99ce0. This is an incremental composite experiment, not current-main or published-head performance proof.
  • Per 14 confirmed key edits, outer composer evaluations decreased from 14 to zero and model-control evaluations from 28 to zero. Slash-list, editor, and primary-control evaluations remained 14 each. There were no catalog requests during the measured edits.
  • The published-head app separately passed visible suggestions, no-match feedback, selecting /help, closing suggestions, showing Send, and clearing back to Talk. Native screenshots were inspected.
  • The inherited fixed-height panel/header overlap remained visible in both comparison variants. No message delivery, audio execution, latency, CPU, or memory improvement is claimed.

Native screenshots

The pair below belongs to the separately described incremental experiment: A is the editor-isolation build from #194235; B is the identical build plus this PR's slash-panel boundary. It is not a comparison against today's main. The same inherited panel/header overlap is present in both. Screenshots demonstrate presentation parity; the work counts above come from instrumentation.

A: without slash-panel isolation B: with slash-panel isolation
Incremental baseline Incremental candidate

Published PR head, after choosing Help: the panel closed and the draft retained the selected command.

Published head after choosing Help

The final independent review covered the complete two-file change and full composer source, with no actionable P0–P2 findings.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 13, 2026 05:34
Worked on by:
- @mikengyn
- @vyctorbrzezowski

Co-authored-by: mikengyn <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d73ce1ae-045f-4a0e-b79f-55404db10b0d
Worked on by:
- @mikengyn
- @vyctorbrzezowski

Co-authored-by: mikengyn <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d28b92e8-82f2-4791-914d-2a1ae85fc213
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR defers slash-command query reads and panel construction into the existing SwiftUI section body.

Example: Open slash-command suggestions and type /compact.

  • Before: Constructing the panel eagerly reads the draft and computes command matches.
  • After: Those reads occur when the panel section evaluates its body, preserving the same suggestions and selection actions.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source change is focused and has no identified defect, but native validation and evidence for its performance premise remain pending.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Typing with command suggestions open may perform unnecessary surrounding composer work.
Reason: The maintainer-authored direction is a narrow extension of an established evaluation boundary with preserved interactions and minimal production growth.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open: it proposes a focused observation-boundary improvement that current main lacks, and no actionable correctness or security defect was found.

Priority: P2
Reviewed head: 4e58de90adbde10ce36ce7d94d99f319d5ace210

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply the declared mounted slash-edit comparison and exact-head native interaction evidence, plus baseline-red/candidate-green observation output, with IPs, keys, phone numbers, and non-public endpoints redacted.
Agent review details

How this fits together

The shared native composer consumes observable draft and command-catalog state and renders the editor, suggestions, and message controls for iOS and macOS.

flowchart TD
  A[Native chat view] --> B[Shared composer]
  C[Observable draft] --> D[Slash panel section]
  E[Command catalog] --> D
  B --> D
  D --> F[Command suggestions]
  F --> G[Selection updates draft]
Loading

Technical review

Best possible solution:

Keep slash-query evaluation inside the existing panel body boundary while preserving presentation, selection, and draft actions.

Do we have a high-confidence way to reproduce the issue?

Current-main source exposes eager draft reads during panel construction, but the resulting mounted composer invalidation has not been demonstrated; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete proposed change: it reuses the established section owner, preserves the panel subtree, and adds no cache, state, or parallel renderer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c0a4b4bf6496.

Provenance checked

  • Slash-command panel presentation and selection keeps the original intent (7acfb63: Provide in-context command discovery, filtering, selection, compact rows, and a scroll affordance.)
  • Shared macOS slash-command panel keeps the original intent (bb658d0: Expose the shared command picker on macOS with keyboard navigation and suppress it for transports without a command catalog.)
  • Composer section evaluation keeps the original intent (04fdb54: Split nested composer evaluation into separate SwiftUI bodies to reduce Debug main-thread stack usage.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Marvinthebored: Raw commit 04fdb54 adds apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatComposer.swift:71 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 04fdb5425a2f; files: apps/shared/OpenClawKit/Sources/OpenClawChatUI/ChatComposer.swift)

PR surface

Source +3, Tests +44. Total +47 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 78 75 +3
Tests 1 44 0 +44
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 122 75 +47

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +3 lines; tests +44 lines The production growth reuses one existing observation boundary; the regression checks construction isolation and continued child-body observation.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a narrow native typing-performance improvement without evidence of an urgent availability or message-delivery regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 13, 2026, 7:02 AM ET / 12:02 UTC.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Nov 14, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 14, 2026 16:58
@vyctorbrzezowski
vyctorbrzezowski merged commit 9c3e22c into main Nov 14, 2026
160 of 162 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/ios-slash-panel-observation branch November 14, 2026 18:57
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…enclaw#198246)

Defer slash query and catalog reads into the existing composer section body, preserving suggestion rendering, selection, and keyboard behavior.

Co-authored-by: mikengyn <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants