chore: remove issue ID references from comments and changelogs
Strip (bd-xxx), (gt-xxx) suffixes from code comments and changelog entries. The descriptions remain meaningful without the ephemeral issue IDs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,16 +16,11 @@ import (
|
||||
// localVersionFile is the gitignored file that stores the last bd version used locally.
|
||||
// This prevents the upgrade notification from firing repeatedly when git operations
|
||||
// reset the tracked metadata.json file.
|
||||
//
|
||||
// bd-tok: Fix upgrade notification persisting after git operations
|
||||
const localVersionFile = ".local_version"
|
||||
|
||||
// trackBdVersion checks if bd version has changed since last run and updates the local version file.
|
||||
// This function is best-effort - failures are silent to avoid disrupting commands.
|
||||
// Sets global variables versionUpgradeDetected and previousVersion if upgrade detected.
|
||||
//
|
||||
// bd-loka: Built-in version tracking for upgrade awareness
|
||||
// bd-tok: Use gitignored .local_version file instead of metadata.json
|
||||
func trackBdVersion() {
|
||||
// Find the beads directory
|
||||
beadsDir := beads.FindBeadsDir()
|
||||
@@ -61,7 +56,7 @@ func trackBdVersion() {
|
||||
// No config file yet - create one
|
||||
cfg = configfile.DefaultConfig()
|
||||
|
||||
// bd-afd: Auto-detect actual JSONL file instead of using hardcoded default
|
||||
// Auto-detect actual JSONL file instead of using hardcoded default
|
||||
// This prevents mismatches when metadata.json gets deleted (git clean, merge conflict, etc.)
|
||||
if actualJSONL := findActualJSONLFile(beadsDir); actualJSONL != "" {
|
||||
cfg.JSONLExport = actualJSONL
|
||||
@@ -155,8 +150,6 @@ func maybeShowUpgradeNotification() {
|
||||
// findActualJSONLFile scans .beads/ for the actual JSONL file in use.
|
||||
// Prefers issues.jsonl over beads.jsonl (canonical name), skips backups and merge artifacts.
|
||||
// Returns empty string if no JSONL file is found.
|
||||
//
|
||||
// bd-6xd: Auto-detect JSONL file to prevent metadata.json mismatches
|
||||
func findActualJSONLFile(beadsDir string) string {
|
||||
entries, err := os.ReadDir(beadsDir)
|
||||
if err != nil {
|
||||
@@ -192,7 +185,7 @@ func findActualJSONLFile(beadsDir string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// bd-6xd: Prefer issues.jsonl over beads.jsonl (canonical name)
|
||||
// Prefer issues.jsonl over beads.jsonl (canonical name)
|
||||
for _, name := range candidates {
|
||||
if name == "issues.jsonl" {
|
||||
return name
|
||||
@@ -209,8 +202,6 @@ func findActualJSONLFile(beadsDir string) string {
|
||||
//
|
||||
// IMPORTANT: This must be called AFTER determining we're in direct mode (no daemon)
|
||||
// and BEFORE opening the database, to avoid: 1) conflicts with daemon, 2) opening DB twice.
|
||||
//
|
||||
// bd-jgxi: Auto-migrate database on CLI version bump
|
||||
func autoMigrateOnVersionBump(dbPath string) {
|
||||
// Only migrate if version upgrade was detected
|
||||
if !versionUpgradeDetected {
|
||||
|
||||
Reference in New Issue
Block a user