Skip to content

Duplicate tabs — same room opens multiple tab entries #795

Closed

Description

@joelteply

Problem

Clicking on the same room (e.g., General) in the room list can create duplicate tabs in the tab bar. Both tabs go to the correct URL but the tab bar shows two "General" entries.

Root Cause

contentItemsMatch() in UserStateEntity.ts may fail to match when the same room is opened with slightly different field values (UUID entityId vs string uniqueId). Tab persistence in localStorage may also restore stale entries.

Files

  • system/data/entities/UserStateEntity.ts:40-64 — contentItemsMatch() function
  • system/state/ContentStateService.ts:160-195 — addItem() deduplication

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions