Skip to content

Workspace left panel selection should be manual-only #1974

Description

@openai0229

Chat2DB Edition

Chat2DB Community

Chat2DB Version

d3e7574

Deployment

Web

Operating System

macOS

Operating System Version

27.0

Database and Version

No response

Problem Summary

Workspace tab activation is coupled to the Files / Data Browser selector. Activating a console, local file, or database object can switch the left panel even after the user explicitly selected the other panel.

Panel selection and active-tab location are separate concerns. Files / Data Browser selection must be manual-only; active workspace tabs should only be located inside the currently selected panel.

Steps to Reproduce

  1. Start Chat2DB Community Web with the Files panel available.
  2. Manually select Files in the Workspace left panel.
  3. Activate a console or database-object workspace tab.
  4. Observe that active-tab auto-follow can switch the left panel to Data Browser.
  5. Manually select Data Browser and activate a local SQL file tab.
  6. Observe that active-tab auto-follow can switch the left panel to Files.

Expected Behavior

Only explicit user clicks may switch the Workspace left panel between Files and Data Browser.

Active-tab changes may locate content only inside the currently selected panel:

  • Files + console: locate the console in Active Sessions.
  • Files + local file: locate the file in the file tree.
  • Files + database object: keep Files selected and do not locate.
  • Data Browser + console: locate its datasource/database/schema context.
  • Data Browser + local file: keep Data Browser selected and do not locate.
  • Data Browser + database object: locate the database object.

After the user manually switches the left panel, Chat2DB should immediately attempt to locate the current workspace tab in the selected panel without switching panels again.

Actual Behavior

The active-tab locator calls the panel setter and derives the panel from a single target surface. The manual override added for the current tab is cleared on the next tab activation, so workspace navigation can still override the user's explicit Files / Data Browser choice.

Logs

N/A - no runtime error is emitted.

Screenshots or Additional Context

Follow-up to #1973 and #1969. The final interaction rule supersedes per-tab manual override behavior: left-panel selection is manual-only, while auto-follow is limited to locating within the selected panel.

Impact

Degrades a core workflow

Workaround

A partial workaround exists

Submission Checklist

  • I reproduced this on the selected Chat2DB edition.
  • I searched existing issues for duplicates.
  • I removed credentials and private data.

Activity

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

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions