Skip to content

storage tables command return empty results when a non-main branch is active #207

Description

@jakubsebek-kosik

Describe the bug

When a dev branch is set as the active branch, the storage tables command returns no results despite branched storage being active and tables existing in the project.

Steps to reproduce

  1. Create a dev branch and set it as active (e.g. via branch commands)
  2. Run:
kbagent storage tables --project <project-name>

Observe output:

   Info: Using active branch (ID: 15931) for project '<project-name>'
   No tables found.
  1. Run kbagent branch reset --project
  2. Run storage tables again — tables are now listed correctly

Expected behavior

When a dev branch is active, storage tables should correctly reflect the state of branched storage — or at minimum, fall back to the main branch data. The user should not need to reset the branch to retrieve table listings.

Actual behavior

With an active dev branch, storage command return empty results. The workaround is resetting the branch (branch reset), which defeats the purpose of working on a dev branch from the start.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions