Skip to content

Bug: Chat session names are not unique (fork creates duplicate "OpenClaw Windows Tray") #954

Closed

Description

@karkarl

Summary

Chat session names are not guaranteed to be unique. When #952 occurs (the app forks instead of reusing the existing session), it spins up a fork with the same name as the original — e.g. two sessions both named OpenClaw Windows Tray. This makes sessions indistinguishable in the list.

Expected

Session names are unique. A forked/new session cannot collide with an existing session's name.

Actual

Forking (see #952) produces a duplicate session with an identical name (OpenClaw Windows Tray), so users can't tell them apart.

Acceptance criteria

  • Session names are unique across active sessions.
  • Creating/forking a session that would collide with an existing name disambiguates it (e.g. suffix/counter or a distinct generated name).
  • Duplicates are visually distinguishable in the session list.

Related

Context

Surfaced during chat-session review (2026-07-09).

Activity

  1. clawsweeper commented on Jul 9, 2026

    @clawsweeper

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

    Summary
    Keep open: current main has one chat-title disambiguation path, but the Sessions page still renders row names directly from SessionInfo.DisplayName or key, so two active sessions with the same display name can remain indistinguishable.

    Reproducibility: yes. source-level: feed the Sessions page two SessionInfo rows with the same DisplayName and different keys, and ToViewModel gives both the same rendered title. I did not run a live WinUI repro in this read-only review.

    Next step
    Queue a focused fix PR because the source-level failure is clear, the likely formatter/UI files are bounded, and no product or security decision is needed.

    Review details

    Best possible solution:

    Use one stable session-title formatter for both native chat and the Sessions page so duplicate display names get a key-derived qualifier while action routing still uses the original session key.

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

    Yes, source-level: feed the Sessions page two SessionInfo rows with the same DisplayName and different keys, and ToViewModel gives both the same rendered title. I did not run a live WinUI repro in this read-only review.

    Is this the best way to solve the issue?

    Yes. The narrow maintainable fix is to reuse or extract the existing chat session-title qualifier and cover duplicate display-name rows with focused tests, while leaving the fork root cause to the linked issue.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

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

    Label changes

    Label changes:

    • add P2: This is a normal-priority native chat/session-list bug with limited blast radius and a source-level reproduction path.
    • add impact:session-state: Duplicate visible names can make users select or manage the wrong active chat session.
    • add impact:ux-friction: The issue creates avoidable confusion in the session list without fully blocking users from continuing.
    • add issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.
    • add clawsweeper:source-repro: Current issue advisory state selects this label.
    • add clawsweeper:queueable-fix: Current issue advisory state selects this label.
    • add clawsweeper:fix-shape-clear: Current issue advisory state selects this label.

    Label justifications:

    • P2: This is a normal-priority native chat/session-list bug with limited blast radius and a source-level reproduction path.
    • impact:session-state: Duplicate visible names can make users select or manage the wrong active chat session.
    • impact:ux-friction: The issue creates avoidable confusion in the session list without fully blocking users from continuing.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
    • Collect current-head Windows Sessions page visible proof or UIA output showing duplicate raw display names are disambiguated.

    What I checked:

    Likely related people:

    • shanselman: Blame ties the Sessions page row projection, XAML binding, and chat title formatter to the 4166e0f current-main landing history. (role: introduced current display surface; confidence: high; commits: 4166e0fd63f8; files: src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs, src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs)
    • TurboTheTurtle: PR Remember selected native chat session #950 changed remembered native chat session selection and tests around the same session title/defaulting surfaces immediately before this issue. (role: recent adjacent contributor; confidence: high; commits: c1bd9ae58b9e; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs)
    • steipete: Recent merged Sessions-page work preserved channel selection and helped define current Sessions list behavior around visibility and filtering. (role: recent Sessions page contributor; confidence: medium; commits: 499fd23a3eae; files: src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs, src/OpenClaw.Tray.WinUI/Services/SessionVisibilityFilter.cs, tests/OpenClaw.Tray.Tests/SessionVisibilityFilterTests.cs)
    • calebeden: Recent merged chat provider/root/test changes touched the same native chat session surfaces and provider tests. (role: recent adjacent chat contributor; confidence: medium; commits: c9b5476a873f, 02f2421a5e75; files: src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs, src/OpenClaw.Tray.WinUI/Chat/OpenClawChatRoot.cs, tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs)
    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.
  2. karkarl commented on Jul 9, 2026

    @karkarl
    CollaboratorAuthor

    Closing as a duplicate of #951.

  3. karkarl commented on Jul 9, 2026

    @karkarl
    CollaboratorAuthor

    Reopening — closed in error. This is not a duplicate of #951.

  4. reopened this on Jul 9, 2026
  5. added
    P2
    impact:session-state
    impact:ux-friction
    no-stale
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    clawsweeper:queueable-fix
    clawsweeper:fix-shape-clear
    on Jul 9, 2026
  6. clawsweeper commented on Jul 9, 2026

    @clawsweeper

    🦞⚠️
    Automatic implementation stopped before completion.
    Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
    Worker: https://github.com/openclaw/clawsweeper/actions/runs/29049607934

  7. locked as resolved and limited conversation to collaborators on Jul 12, 2026
  8. moved this from Channels to Connection and Pairing in Windows Companion Appon Jul 13, 2026
  9. moved this from Connection and Pairing to Local Gateway in Windows Companion Appon Jul 13, 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

    P2clawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:session-stateimpact:ux-frictionissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    Medium

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions