You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scope current database per workspace; clear on delete
- `current_database: Option<String>` → `current_databases: HashMap<String, String>` keyed by workspace_id, so switching workspaces no longer inherits a database set in a different workspace.
- `ApiClient::new()` now passes the resolved workspace_id into `load_current_database`, so `X-Database-Id` is only sent when it belongs to the active workspace.
- `print_database_footer()` reads `ACTIVE_WORKSPACE_ID` (set by `resolve_workspace()`) so the footer shows the correct database for the workspace actually used.
- `databases::delete()` clears `current_databases[workspace_id]` when the deleted database was the current one, preventing subsequent commands from silently sending a stale `X-Database-Id`.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments