Repository navigation
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.
Description
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
- Bug: Windows companion app may create a new fork instead of reusing the existing session #952 — fork-instead-of-reuse bug that triggers the duplicate name.
Context
Surfaced during chat-session review (2026-07-09).
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateThis issue is about session, memory, transcript, context, or agent state drift.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.
Type
Fields
Priority
Medium
Projects
- StatusShow more project fieldsLocal Gateway
Activity
clawsweeper commentedon Jul 9, 2026
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.DisplayNameor key, so two active sessions with the same display name can remain indistinguishable.Reproducibility: yes. source-level: feed the Sessions page two
SessionInforows with the sameDisplayNameand different keys, andToViewModelgives 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
SessionInforows with the sameDisplayNameand different keys, andToViewModelgives 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:
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.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.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:
What I checked:
AGENTS.md:42, c8cd9869d828)ToViewModelsets the rowDisplayNametoSessionInfo.DisplayNamewhen present and otherwise to the key, with no collision check or qualifier. (src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs:262, c8cd9869d828)DisplayNameas the primary title, so equal display names are not made unique in that list. (src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml:137, c8cd9869d828)BuildSessionTitle, which appends an agent/slot qualifier for non-mainagent:*:*keys; this supports a narrow reuse/extraction path rather than a new product direction. (src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:5807, c8cd9869d828)displayNamedirectly toSessionInfo.DisplayName; uniqueness is not enforced before UI projection. (src/OpenClaw.Shared/OpenClawGatewayClient.cs:3549, c8cd9869d828)Likely related people:
src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs,src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml,src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs)src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs,tests/OpenClaw.Tray.Tests/OpenClawChatDataProviderTests.cs)src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs,src/OpenClaw.Tray.WinUI/Services/SessionVisibilityFilter.cs,tests/OpenClaw.Tray.Tests/SessionVisibilityFilterTests.cs)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 re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.karkarl commentedon Jul 9, 2026
Closing as a duplicate of #951.
karkarl commentedon Jul 9, 2026
Reopening — closed in error. This is not a duplicate of #951.
clawsweeper commentedon Jul 9, 2026
🦞⚠️
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