Skip to content

macOS WebChat: Session rename/delete buttons in sidebar are non-functional #106960

Closed

Description

@keepwhatsyours

Bug Report: macOS WebChat session rename/delete buttons are non-functional

Title

macOS WebChat: Session rename/delete buttons in sidebar are non-functional

Version

2026.7.1 (npm install, stable channel)

Environment

  • macOS 26.5.2 (arm64)
  • OpenClaw gateway running on port 18789
  • Shell Node: v22.20.0
  • Gateway service Node: /opt/homebrew/opt/node/bin/node

Steps to reproduce

  1. Open OpenClaw macOS app.
  2. Open WebChat (Lobster menu → Open Chat).
  3. Look at the left sidebar sessions list.
  4. Hover over a session — rename and delete buttons appear.
  5. Click either button.

Expected behavior

  • Rename: should allow editing the session title.
  • Delete: should remove the session (likely with a confirmation).

Actual behavior

Buttons are visible in the sidebar, but clicking them does nothing. No rename field appears, no delete confirmation, and the session remains unchanged.

Additional context

  • The gateway is healthy and running on port 18789.
  • openclaw update --dry-run resolves to 2026.7.1.
  • openclaw update --channel beta --dry-run also resolves to 2026.7.1, so no newer build is available to test.
  • Backend session operations still work via CLI (e.g., openclaw sessions list, openclaw sessions delete <key>), confirming this is specifically a UI/frontend bug in the macOS WebChat sidebar.

Impact

Users cannot organize or clean up sessions from the WebChat UI and must fall back to CLI/API calls.

Activity

  1. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.
    issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.
    clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.
    on Jul 14, 2026
  2. clawsweeper commented on Jul 14, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 13, 2026, 9:40 PM ET / July 14, 2026, 01:40 UTC.

    Summary
    Keep open: stable v2026.7.1 exposes documented session actions, and the current UI controller uses browser-native confirmation for deletion; the report provides a precise macOS-only failure path, but focused embedded-WebView proof is still needed to distinguish dialog suppression from event wiring.

    Likely related people

    • @BunsDev — medium confidence; introduced recent multi-session deletion behavior.
    • @tyler6204 — medium confidence; contributed to the session-management implementation.
    • @steipete — medium confidence; recently maintained session deletion and refresh behavior.

    Reproducibility: no. live current-main reproduction is available, but the stable-release steps are concrete and the source shows dialog-dependent session actions consistent with an embedded-WebView failure.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.
    • Include redacted logs or terminal output.

    Next step
    The report describes a bounded existing-behavior regression with clear UI and controller boundaries, but the repair should first confirm which native dialog or click path fails on macOS.

    Review details

    Best possible solution:

    Use the Control UI’s in-product dialog primitives for rename and delete instead of browser-native dialogs, preserve the existing gateway mutation APIs, and prove both actions in browser automation plus a real macOS app run.

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

    No live current-main reproduction is available, but the stable-release steps are concrete and the source shows dialog-dependent session actions consistent with an embedded-WebView failure.

    Is this the best way to solve the issue?

    Yes, replacing browser-native rename and confirmation dialogs with existing in-app modal components is the narrowest cross-platform fix; a macOS-only gateway or session-policy change would target the wrong boundary.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The failure has not been reproduced on current main in the native macOS WebView, so the precise cause could be suppressed prompt/confirm dialogs, lost click events, or another macOS embedding difference.

    Codex review notes: model internal, reasoning high; reviewed against e330e4a17d3c.

    Label changes

    Label changes:

    • add P2: Session organization is broken for macOS WebChat users, but chat and backend session operations remain available.
    • add impact:session-state: The issue directly affects user operations on persisted session labels and records.
    • add impact:ux-friction: Users must leave the app and use CLI session commands because the visible in-product controls do nothing.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.

    Label justifications:

    • P2: Session organization is broken for macOS WebChat users, but chat and backend session operations remain available.
    • impact:session-state: The issue directly affects user operations on persisted session labels and records.
    • impact:ux-friction: Users must leave the app and use CLI session commands because the visible in-product controls do nothing.
    Evidence reviewed

    Acceptance criteria:

    • pnpm test ui
    • pnpm check:changed -- ui/src/ui/controllers/sessions.ts ui/src/ui/app-render.ts ui/src/ui/views
    • Run a Control UI Playwright scenario that renames and deletes a sidebar session
    • Record a redacted native macOS app run showing rename, cancel, delete confirmation, and successful deletion

    What I checked:

    • Documented behavior: Current Control UI documentation describes sidebar rename and delete actions as supported session-management operations, so the report concerns broken established behavior rather than a new feature. citeturn233330view0. Public docs: docs/web/control-ui.md. (docs/web/control-ui.md, e330e4a17d3c)
    • UI mutation path: The current session controller exposes sessions.patch for labels and sessions.delete followed by a refresh; deletion is gated by window.confirm, making embedded-browser dialog handling a concrete suspect for the macOS-only symptom. citeturn596367view0turn103494view0. (ui/src/ui/controllers/sessions.ts, e330e4a17d3c)
    • Stable-release reproduction: The reporter supplies deterministic steps on v2026.7.1 and confirms that CLI session operations still work, narrowing the failure to the macOS WebChat frontend rather than the session backend. citeturn587920search0. (2d2ddc43d0dc)
    • Related history: A prior report covered rename/delete operations being rejected through the webchat mutation policy, but that report was closed as not planned; it partially overlaps the user-visible operations without proving the same current root cause. citeturn587920search0turn233330view0. (src/gateway/server-methods/sessions.ts)
    • Feature history: Recent file history associates multi-session deletion and session-management work with commits 36c6d44, 7b61ca1, and b8c4cf3, providing routing candidates for the affected area. citeturn482976search0. (ui/src/ui/controllers/sessions.ts)

    Likely related people:

    • BunsDev: GitHub file history attributes the recent multi-session selection and deletion implementation to commit 36c6d44. citeturn482976search0. (role: introduced behavior; confidence: medium; commits: 36c6d44; files: ui/src/ui/controllers/sessions.ts)
    • tyler6204: Recent session-management history includes commit 7b61ca1, which touched the central controller path. citeturn482976search0. (role: recent area contributor; confidence: medium; commits: 7b61ca1; files: ui/src/ui/controllers/sessions.ts)
    • steipete: Recent history includes deletion-refresh maintenance in commit b8c4cf3, adjacent to the reported behavior. citeturn482976search0. (role: recent area contributor; confidence: medium; commits: b8c4cf3; files: ui/src/ui/controllers/sessions.ts)
    How this review workflow works
    • 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.
  3. steipete commented on Jul 27, 2026

    @steipete
    Contributor

    Fixed on main by #110019 (75697ad). I traced the exact reported Lobster menu → Open Chat path through the native WebChat manager and shared SwiftUI session sidebar: Rename now opens its edit dialog and calls sessions.patch; Delete opens a confirmation and calls sessions.delete. The native code also has explicit rename and deletion regression coverage. Independent native validation passed all 3 WebChatManagerTests and all 11 WebChatSwiftUISmokeTests. Closing as completed on current main; please reopen with the current app version and exact reproduction if the behavior persists after updating.

  4. locked as resolved and limited conversation to collaborators on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions