Repository navigation
fix(ui): submit selected slash arguments in new sessions - #137571
Conversation
Refs openclaw-2dc.2
OpenClaw-Publication: efca2cbc-4662-4cf4-aab3-4da1dc7ff97b
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 5:48 PM ET / 21:48 UTC. ClawSweeper reviewWhat this changesThis PR separates top-level slash-command submission from inline command dispatch so selecting a fixed non-skill argument in New Session completes and submits the command. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. This is a focused, net-zero Control UI bug fix with no blocking correctness finding, but it is marked Priority: P2 Review scores
Verification
How this fits togetherThe Control UI slash menu converts typed commands into command and argument selections. New Session sends the completed draft to create a session, while an existing chat can additionally dispatch eligible inline commands through its connected handler. flowchart LR
A[Typed slash command] --> B[Shared slash menu]
B --> C[Argument selection]
C --> D{Inline command?}
D --> E[New Session submission]
D --> F[Chat inline dispatch]
E --> G[Session creation]
F --> H[Existing chat]
Decision needed
Why: Repository policy prevents automated cleanup or merge of a PR marked Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +81. Total +81 across 5 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the shared permission split after the required maintainer decision, retaining New Session’s top-level submission capability and Chat’s connected inline-dispatch guard in one canonical menu flow. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible. Before this change, New Session always returned false from the shared execution gate, which caused non-skill fixed-argument selection to return before committing or submitting; the added test models both keyboard and pointer paths, though this read-only review did not execute it. Is this the best way to solve the issue? Yes. The shared host contract is the narrow owner boundary: it preserves Chat’s inline guard while allowing New Session’s distinct top-level submission path, avoiding duplicate New Session menu logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 194b7f2a1619. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…date-command * origin/main: fix(ci): retry transient npm advisory timeouts (#137716) fix: keep restored Usage navigation from being replaced by Chat (#137402) fix: keep Usage day totals within the selected session scope (#137396) refactor: reduce live digest scheduling allocations (#137655) fix(ui): submit selected slash arguments in new sessions (#137571) fix(ui): expand collapsed task progress on final (#137569) fix(test): prevent auth discovery from stalling MCP replacement proof (#137639) test(cli): reuse canonical directory mock call helper (#137640)
What Problem This Solves
Fixes an issue where users starting a new session could select a fixed argument for a non-skill slash command, but keyboard Enter and pointer selection were silently consumed instead of updating and submitting the draft.
Why This Change Was Made
The shared slash-menu host contract now distinguishes top-level command submission from inline command dispatch. New Session owns top-level submission but not inline dispatch, while Chat retains both its inline execution behavior and its disconnected-menu guard for top-level and inline argument selections.
User Impact
Users can select a non-skill slash-command argument in the New Session composer with either Enter or a click and reliably start the session with the completed command.
Evidence
/moderemained unchanged and submission was not called./mode fastthroughsessions.create.node scripts/check-changed.mjs -- ...: passed all changed-file checks, UI/core typechecks, lint, formatting, i18n, and dead-export scans.View the OpenClaw team session