Skip to content

Session history lost when adding/removing folders in multi-root workspace #9650

Description

@wei4j

Before opening, please confirm:

Operating System

Windows 11

Kiro Version

1.0.0

Bug Description

In a multi-root workspace, session history is lost whenever a folder is added to or removed from the workspace, even though the workspace name itself remains unchanged.

It appears that Kiro associates session history with the exact set of workspace folder paths rather than the workspace identity (i.e., the .code-workspace file name or an internal workspace ID). This means any structural change to the workspace — adding a new project folder or removing one — causes all previous session history to disappear.

Steps to Reproduce

  1. Open a multi-root workspace (.code-workspace file) containing folders A, B, and C.
  2. Have several Kiro sessions with conversation history.
  3. Add a new folder D to the workspace (or remove an existing folder).
  4. Observe that all previous session history is gone — no prior conversations are listed.

Expected Behavior

Session history should be associated with the workspace identity (e.g., the workspace name or the .code-workspace file path), not the exact list of folder paths within the workspace.

Adding or removing folders from a multi-root workspace should NOT cause existing session history to disappear. Users frequently adjust which project folders are included in a workspace without intending to lose their conversation history.

Conversation ID

No response

Additional Context

This is particularly disruptive for users who work with multi-root workspaces as their primary development setup. Multi-root workspaces are dynamic by nature — project folders are added/removed as work shifts between projects. Losing all session history each time this happens makes it very difficult to reference prior conversations.

Suggested fix: Use the workspace name (or .code-workspace file path) as the key for session history association, rather than a hash or composite of the contained folder paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions