* fix: rebind target workspace for db commands
* fix: isolate rebinding from caller workspace state
* fix: restore no-db target selection semantics
* fix: honor no-db target precedence consistently
* test: restore db flag state in context rebinding tests
Use doltserver.DefaultConfig to resolve the actual runtime port
(from port file, env var, etc.) instead of the static config default.
PR: https://github.com/steveyegge/beads/pull/2560
Co-authored-by: matt wilkie <maphew@users.noreply.github.com>
Add bd context command showing effective backend identity (beads dir, repo
root, dolt mode, server endpoint, database, project ID, role) without requiring
DB open -- useful for degraded-state diagnostics. Supports --json.
Update error messages across 13 commands to suggest bd doctor for diagnosis
before bd init for reset, preventing unsafe destructive recovery paths.
Fix: use cfg.GetDoltServerPort() instead of doltserver.DefaultConfig() for
correct port resolution in context command. Add env var isolation in tests
to prevent BEADS_DOLT_PORT interference.
Co-Authored-By: matt wilkie <maphew@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>