Skip to content

fix(ui): use in-app dialog for session rename - #121255

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
pe/fix-session-rename
Aug 9, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
pe/fix-session-rename

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

Summary

  • replace native window.prompt() for session rename with an accessible in-app modal
  • use the same dialog from the sidebar and Sessions page
  • cover submit, cancel, abort, reentrancy, rejected mutations, and visible sidebar updates

Red / green proof

{
  "surface": "Control UI session rename",
  "harness": "Playwright + mocked Gateway WebSocket",
  "gatewayMethod": "sessions.patch",
  "assertions": [
    "accessible Rename session dialog is visible",
    "existing label is prefilled",
    "sessions.patch receives the exact renamed label",
    "sidebar row updates to the renamed label"
  ],
  "result": "pass"
}

Validation

  • pnpm test ui/src/components/input-dialog.test.ts ui/src/components/app-sidebar.test.ts ui/src/pages/sessions/sessions-page.test.ts — 277 passed
  • full session-management.groups.e2e.test.ts — 11 passed
  • changed-surface typecheck/dead-export/format/plugin-boundary gates passed; targeted oxlint passed after keeping the sidebar test within its line cap
  • exact-base autoreview — clean, no accepted/actionable findings

@clawsweeper

clawsweeper Bot commented Aug 9, 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: M maintainer Maintainer-authored PR labels Aug 9, 2026
@Patrick-Erichsen Patrick-Erichsen self-assigned this Aug 9, 2026
@Patrick-Erichsen
Patrick-Erichsen merged commit ce133d4 into main Aug 9, 2026
170 of 172 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the pe/fix-session-rename branch August 9, 2026 22:24
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant