Repository navigation
improve(ios): isolate typing updates in slash-command suggestions - #198246
Conversation
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
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR defers slash-command query reads and panel construction into the existing SwiftUI section body. Example: Open slash-command suggestions and type
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests +44. Total +47 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 13, 2026, 7:02 AM ET / 12:02 UTC. |
…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]>
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
ChatComposerSectionbody 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:a7ade8e4cb20730377ac57d25a3a0cb133d99ce0. This is an incremental composite experiment, not current-main or published-head performance proof./help, closing suggestions, showing Send, and clearing back to Talk. Native screenshots were inspected.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.
Published PR head, after choosing Help: the panel closed and the draft retained the selected command.
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