Skip to content

fix(ui): submit selected slash arguments in new sessions - #137571

Merged
jalehman merged 2 commits into
mainfrom
openclaw/fix-new-session-slash-args
Sep 4, 2026
Merged

jalehman merged 2 commits into
mainfrom
openclaw/fix-new-session-slash-args

Conversation

@jalehman

@jalehman jalehman commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

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

  • Reproduced before the fix with focused keyboard and pointer tests: /mode remained unchanged and submission was not called.
  • Focused Vitest suites: 402 tests passed across New Session and Chat.
  • Bundled real-browser proof: keyboard and pointer flows both submitted /mode fast through sessions.create.
  • node scripts/check-changed.mjs -- ...: passed all changed-file checks, UI/core typechecks, lint, formatting, i18n, and dead-export scans.
  • Required autoreview: scoped clean at P0–P2 after addressing its disconnected top-level Chat finding.
  • Production LOC: +12 / -12, net 0. Test LOC: +81.

View the OpenClaw team session

OpenClaw-Publication: efca2cbc-4662-4cf4-aab3-4da1dc7ff97b
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 3, 2026
@jalehman
jalehman marked this pull request as ready for review September 3, 2026 21:27
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 3, 2026, 5:48 PM ET / 21:48 UTC.

ClawSweeper review

What this changes

This 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 maintainer and the repository state identifies its author as a MEMBER, so it requires an explicit maintainer merge decision rather than automated cleanup.

Priority: P2
Reviewed head: 0ef2d4e152a4f1bd88dc19e7a62d1fc0989ecd4e
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, net-neutral owner-boundary repair with behavioral coverage and no blocking review finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The changed production owner is the shared slash-menu selection flow, exercised by New Session through its submission callback; repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The PR body additionally reports real-browser verification, but its linked team session was not inspectable in this read-only environment.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed production owner is the shared slash-menu selection flow, exercised by New Session through its submission callback; repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The PR body additionally reports real-browser verification, but its linked team session was not inspectable in this read-only environment.
Evidence reviewed 7 items Shared owner repair: The argument-selection path now asks whether the current completion is inline before applying the run gate; permitted top-level selections commit the completed draft and invoke the host submission callback.
New Session caller: New Session allows top-level execution only and continues to exclude local-only commands, so it gains argument submission without acquiring inline command dispatch.
Chat sibling preserved: Chat still requires a connected dispatch state for every command and additionally requires an inline handler for inline execution; the new predicate preserves the disconnected-menu guard.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should this protected member-authored Control UI repair be landed after normal maintainer review? Land after maintainer review: Accept the focused shared-menu repair and its keyboard, pointer, and disconnected-Chat coverage.

Why: Repository policy prevents automated cleanup or merge of a PR marked maintainer and authored by a repository member, even when the patch is otherwise ready.

Before merge

  • Complete next step (P2) - A maintainer must make the explicit merge decision required for this protected member-authored PR.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
Agent review details

Security

None.

PR surface

Source 0, Tests +81. Total +81 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 12 12 0
Tests 2 81 0 +81
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 93 12 +81

Review metrics

Metric Value Why it matters
Production versus test LOC production +12/-12 (net 0); tests +81/-0 The shared behavior change is net-neutral in production and adds focused coverage for the repaired New Session path plus the Chat guard.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs a user-visible Control UI command-submission failure with limited scope.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed production owner is the shared slash-menu selection flow, exercised by New Session through its submission callback; repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The PR body additionally reports real-browser verification, but its linked team session was not inspectable in this read-only environment.

Label justifications:

  • P2: This repairs a user-visible Control UI command-submission failure with limited scope.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The changed production owner is the shared slash-menu selection flow, exercised by New Session through its submission callback; repository state identifies this as a member-authored PR, so the external-contributor proof gate does not apply. The PR body additionally reports real-browser verification, but its linked team session was not inspectable in this read-only environment.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • krzyszchweski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jesse-merhi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@jalehman
jalehman merged commit 5c353d5 into main Sep 4, 2026
183 checks passed
@jalehman
jalehman deleted the openclaw/fix-new-session-slash-args branch September 4, 2026 00:11
vincentkoc added a commit that referenced this pull request Sep 4, 2026
…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)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant