From 34b7d0a1b81660db295a8ac6a891ec20e7f529bc Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Sat, 31 Jan 2026 13:10:34 -0500 Subject: [PATCH 1/3] Pin beads to v0.49.2 in generated mise config The beads `owner` column was added in v0.47.0. When co queries the beads database directly via sqlc, it expects this column to exist. Using "latest" can resolve to older cached versions on new machines, causing schema mismatch errors. Pinning to v0.49.2 ensures schema compatibility across all environments. Co-Authored-By: Claude Opus 4.5 --- internal/mise/template/mise.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/mise/template/mise.tmpl b/internal/mise/template/mise.tmpl index 5a8c02cd..0cc1c440 100644 --- a/internal/mise/template/mise.tmpl +++ b/internal/mise/template/mise.tmpl @@ -8,7 +8,8 @@ [tools] # Beads - Git-backed issue tracker for multi-session work # Used for tracking issues, dependencies, and persistent memory -"aqua:steveyegge/beads" = "latest" +# Pinned to ensure schema compatibility with co's database queries +"aqua:steveyegge/beads" = "v0.49.2" # Claude Code - Anthropic's CLI for Claude # Used to run AI-powered coding sessions From 4eb010bae4edae5c84a37021644b0e613d9a4977 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Sat, 31 Jan 2026 13:11:57 -0500 Subject: [PATCH 2/3] Also update co's mise.toml to beads v0.49.2 Aligns co's own version with the generated template. Co-Authored-By: Claude Opus 4.5 --- mise.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mise.toml b/mise.toml index 71b1aae3..5e0aad34 100644 --- a/mise.toml +++ b/mise.toml @@ -1,6 +1,6 @@ [tools] go = "1.25" -"aqua:steveyegge/beads" = "v0.49.0" +"aqua:steveyegge/beads" = "v0.49.2" "go:golang.org/x/tools/cmd/deadcode" = "0.40.0" "aqua:sqlc-dev/sqlc" = "1.28.0" "aqua:golangci/golangci-lint" = "v2.8.0" From 3651640fea7630f6612ab8725487b06b67714ad3 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Sat, 31 Jan 2026 13:13:07 -0500 Subject: [PATCH 3/3] Document beads version alignment requirement Add note to CLAUDE.md that mise.toml and the generated template must use the same beads version to avoid schema mismatches. Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 12936cb2..3be9cf06 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,6 +53,8 @@ go test ./... Uses CLI tools: `bd`, `claude`, `gh`, `git`, `mise` (optional), `zellij` +**Important**: The beads (`bd`) version in `mise.toml` must stay aligned with the version in `internal/mise/template/mise.tmpl`. Co queries the beads database directly via sqlc and expects specific schema columns. Version mismatches cause errors like "no such column: owner". + ## Context Usage Functions that execute external commands or perform I/O should accept `context.Context` as their first parameter: