fix: Use correct beads paths for molecule and statusline

- molecule.go: Use findLocalBeadsDir() for project-level beads
- statusline.go: Use findMailWorkDir() for mail count (town beads)

Part of two-level beads architecture cleanup.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-20 18:30:45 -08:00
parent c16324b713
commit 5f206348a5
2 changed files with 6 additions and 6 deletions

View File

@@ -145,7 +145,7 @@ func init() {
}
func runMoleculeList(cmd *cobra.Command, args []string) error {
workDir, err := findBeadsWorkDir()
workDir, err := findLocalBeadsDir()
if err != nil {
return fmt.Errorf("not in a beads workspace: %w", err)
}
@@ -288,7 +288,7 @@ func runMoleculeExport(cmd *cobra.Command, args []string) error {
func runMoleculeShow(cmd *cobra.Command, args []string) error {
molID := args[0]
workDir, err := findBeadsWorkDir()
workDir, err := findLocalBeadsDir()
if err != nil {
return fmt.Errorf("not in a beads workspace: %w", err)
}
@@ -382,7 +382,7 @@ func runMoleculeShow(cmd *cobra.Command, args []string) error {
func runMoleculeParse(cmd *cobra.Command, args []string) error {
molID := args[0]
workDir, err := findBeadsWorkDir()
workDir, err := findLocalBeadsDir()
if err != nil {
return fmt.Errorf("not in a beads workspace: %w", err)
}
@@ -462,7 +462,7 @@ func runMoleculeParse(cmd *cobra.Command, args []string) error {
func runMoleculeInstantiate(cmd *cobra.Command, args []string) error {
molID := args[0]
workDir, err := findBeadsWorkDir()
workDir, err := findLocalBeadsDir()
if err != nil {
return fmt.Errorf("not in a beads workspace: %w", err)
}
@@ -532,7 +532,7 @@ func runMoleculeInstantiate(cmd *cobra.Command, args []string) error {
func runMoleculeInstances(cmd *cobra.Command, args []string) error {
molID := args[0]
workDir, err := findBeadsWorkDir()
workDir, err := findLocalBeadsDir()
if err != nil {
return fmt.Errorf("not in a beads workspace: %w", err)
}

View File

@@ -133,7 +133,7 @@ func runMayorStatusLine(t *tmux.Tmux) error {
// Fast path - returns 0 on any error.
func getUnreadMailCount(identity string) int {
// Find workspace
workDir, err := findBeadsWorkDir()
workDir, err := findMailWorkDir()
if err != nil {
return 0
}