Commit Graph

2 Commits

Author SHA1 Message Date
e529e20a04 fix(dog): export env vars in startup command and add dog identity detection
Some checks failed
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Successful in 26s
CI / Test (push) Failing after 1m40s
CI / Lint (push) Successful in 25s
CI / Integration Tests (push) Successful in 1m30s
CI / Coverage Report (push) Has been skipped
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
The previous fix only added the "dog" case to AgentEnv but dogs still couldn't
find their mail because:

1. BuildAgentStartupCommand doesn't pass AgentName, so BD_ACTOR was empty
2. detectSenderFromRole had no "dog" case, falling back to "overseer"

Fixes:
- Add BuildDogStartupCommand that properly passes dog name to AgentEnv
- Update dog dispatch to use BuildDogStartupCommand
- Add "dog" case to detectSenderFromRole that reads BD_ACTOR

The env vars are now exported in the startup command (via exec env) so the
agent inherits them when it starts, rather than relying on tmux setenv which
only affects new shells.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 21:00:58 -08:00
gastown/crew/dennis
b60f016955 refactor(beads,mail): split large files into focused modules
Break down monolithic beads.go and mail.go into smaller, single-purpose files:

beads package:
- beads_agent.go: Agent-related bead operations
- beads_delegation.go: Delegation bead handling
- beads_dog.go: Dog pool operations
- beads_merge_slot.go: Merge slot management
- beads_mr.go: Merge request operations
- beads_redirect.go: Redirect bead handling
- beads_rig.go: Rig bead operations
- beads_role.go: Role bead management

cmd package:
- mail_announce.go: Announcement subcommand
- mail_check.go: Mail check subcommand
- mail_identity.go: Identity management
- mail_inbox.go: Inbox operations
- mail_queue.go: Queue subcommand
- mail_search.go: Search functionality
- mail_send.go: Send subcommand
- mail_thread.go: Thread operations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 23:01:55 -08:00