Skip to content

fix(ui): keep duplicate session rename errors in the modal - #168034

Merged
RomneyDa merged 3 commits into
mainfrom
openclaw/duplicate-session-name-error-display
Oct 10, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
openclaw/duplicate-session-name-error-display

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Related: #152762 (duplicate-name sidebar error only; overlong-name handling is outside this PR).

What Problem This Solves

Fixes the raw sidebar error banner and lost input when a session rename uses an existing name.

User Impact

The rename dialog stays open, preserves the attempted name, and shows “A session with this name already exists.” Unrelated mutation failures remain visible in the sidebar. No migration or configuration change is required.

Why This Change Was Made

Use the existing dialog submit contract to present duplicate validation locally. Classify the rejection synchronously for its own patch attempt instead of reading or clearing the shared sidebar error, so an overlapping mutation cannot discard the rename input or lose its own error.

Evidence

  • Reproduced the original sidebar-banner defect on the rebased main implementation; the browser regression fails there.

  • Fresh review identified a shared-error race. The concurrent pin/rename browser case failed on the first fix and passes with attempt-local handling. Independent corrected-candidate review found no P0–P2 findings.

  • Focused shipped-bundle/mock-Gateway E2E: 6 checks passed, covering isolated/concurrent duplicate rejection, subsequent generic errors, successful rename, and replacement-session protection across Sessions/sidebar/header. Invocation wall time: 63.30 s. The two rejection cases took 2.23 s and 2.00 s; suite startup is shared. This checks real UI routing, dialog rendering, and Gateway response ordering, not just a helper.

  • Formatting, i18n, UI typecheck, UI/script lint, and diff checks pass. Patch ownership and rename proof were mechanically split to satisfy file-size budgets; both runtime owners select the moved rename E2E through the actual CI selection contract. Independent review found no remaining P0–P2 findings.

  • Post-extraction session-management.rename.e2e.test.ts: all 3 browser cases pass (12.17 s of test execution; measured invocation wall time 1,054.95 s, including inflated setup/host time). No extra per-test process boots. Final-head CI passed; hosted CI wall time was 527 s, with 6,956 aggregate job-seconds (parallel lanes, not additional local test time).

  • Rebased onto b1c3004f73cad1c1b68786e592d025fcdc048f68 because main repaired the three unrelated avatar-test failures from the first CI run in feat: let themes customize Control UI branding #168027. Corrected-head CI (99e40bb0c94606bd21b9304b071c3d30e1e010a8) passed. Final mechanical cleanup head 684912ccb141322b2bbf1603edabde138f028f1a passed current-head CI. No merge requested.

  • Exact-head ClawSweeper review: no findings; patch quality and proof confidence are diamond lobster (5/6). Overall is gold shrimp (3/6) solely because this is an explicitly scoped partial fix of the broader linked issue.

Before

The rejected name appears in a raw sidebar banner; the edit dialog is gone.

Before: duplicate rename closes the dialog and displays a raw sidebar error

After

The entered name is preserved with inline validation and no duplicate sidebar banner.

After: rename dialog preserves the entered name and displays inline validation

Concurrent failure

The duplicate remains editable while the unrelated pin rejection remains visible behind the modal.

Concurrent duplicate and pin failures retain their independent outcomes

@clawsweeper

clawsweeper Bot commented Oct 10, 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR keeps duplicate-name rename failures inside the sidebar dialog while preserving the entered name.

Example: Rename a sidebar session to the already-used name “Rejected rename”.

  • Before: The dialog closes and a raw duplicate-label error appears above the session list.
  • After: The dialog retains “Rejected rename” and shows “A session with this name already exists.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong visual proof and a focused, correct repair; overall scope remains partial relative to the linked issue.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots of the shipped Control UI with a mocked Gateway show retained duplicate input, inline validation, and independent concurrent pin-error feedback; browser coverage also exercises successful rename and subsequent generic rejection.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Partial
User problem: A duplicate session name closes the rename dialog, discards the attempted input, and moves the session list with a raw error banner.
Reason: The member-authored change repairs an established interaction defect using the existing dialog owner, while explicitly retaining the broader issue.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs a current rename-dialog defect, preserves unrelated errors, and has no actionable findings; it intentionally addresses only part of the linked issue.

Priority: P3
Reviewed head: 684912ccb141322b2bbf1603edabde138f028f1a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI session organizer submits scoped session patches to the Gateway and routes rejection feedback to either the originating dialog or the sidebar.

flowchart LR
  A[Sidebar Rename] --> B[Input dialog]
  B --> C[Session organizer]
  C --> D[Session patch capability]
  D --> E[Gateway validation]
  E --> F[Attempt error handling]
  F --> B
  F --> G[Sidebar error]
Loading

Technical review

Best possible solution:

Retain this focused duplicate-name repair and leave the broader rejection-feedback work with its existing issue owner.

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

Current-main source establishes the close-before-response failure, corroborated by the linked real-Gateway report and inspected before screenshot; no runtime reproduction was executed during this review.

Is this the best way to solve the issue?

The existing asynchronous dialog contract is the appropriate repair, and attempt-local classification avoids consuming or clearing a concurrent mutation's error.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Session organizer patch ownership keeps the original intent (b74f04a: Consolidate mutations and groups under one organizer controller while keeping interaction-only work behind its lazy runtime boundary.)
  • In-app rename and generated-title semantics keeps the original intent (fix: prefill generated session titles when renaming #139796: Share generated-title prefill and normalized no-op behavior while retaining connection scope and durable session identity.)
  • Rename browser coverage keeps the original intent (fix(ui): use in-app dialog for session rename #121255: Replace native prompts with an accessible in-app dialog and verify the submitted patch and visible renamed row.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d3605d9 adds ui/src/components/session-organizer-operations.runtime.ts:384 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d3605d9edaf2; files: ui/src/components/session-organizer-operations.runtime.ts)

PR surface

Source +30, Tests +91, Other +9. Total +130 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 125 95 +30
Tests 2 200 109 +91
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 9 0 +9
Total 6 334 204 +130

Labels

Label changes:

No label changes.

Label justifications:

  • P3: The change repairs recoverable rename-input and layout friction without changing saved titles, transcripts, configuration, or authorization.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (4 earlier review cycles)
  • reviewed 2026-10-10T00:16:31.629Z sha 722a4c0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T00:24:15.284Z sha 722a4c0 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T01:26:55.390Z sha 99e40bb :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T02:29:18.348Z sha 684912c :: needs maintainer review before merge. :: none

Reviewed October 9, 2026, 10:37 PM ET / October 10, 2026, 02:37 UTC (Revision 5).

@RomneyDa
RomneyDa marked this pull request as ready for review October 10, 2026 00:18
@RomneyDa
RomneyDa force-pushed the openclaw/duplicate-session-name-error-display branch from 722a4c0 to 99e40bb Compare October 10, 2026 01:19
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Current head: 99e40bb0c94606bd21b9304b071c3d30e1e010a8. Inspected before/after and concurrent-failure screenshots are now embedded in the PR body. The original defect and shared-error race were reproduced; attempt-local handling passes the focused browser checks and corrected-candidate independent review has no P0–P2 findings. Rebased onto the main-side avatar-test fix. Current-head CI is running. Please refresh the findings and rating; do not merge.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Oct 10, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L and removed size: S labels Oct 10, 2026
@RomneyDa
RomneyDa merged commit 33f4714 into main Oct 10, 2026
134 checks passed
@RomneyDa
RomneyDa deleted the openclaw/duplicate-session-name-error-display branch October 10, 2026 02:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
…168034)

* fix(ui): keep duplicate session rename errors in the modal

OpenClaw-Publication: 5ec9d965-426c-4316-ab0f-07070afeb4b5

* fix(ui): keep rename rejection handling scoped to its attempt

* refactor(ui): isolate session patch and rename proof owners

---------

Co-authored-by: RomneyDa <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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