fix: Hook persists across session interruption via in_progress lookup (gt-ttn3h)
The hook query now falls back to checking in_progress beads assigned to the agent when no hooked beads are found. This ensures work is not lost when a session is interrupted after claiming work. Previously, gt hook only looked for status=hooked beads, so work that had been claimed but not completed appeared lost. The fix extends the query to also include in_progress beads assigned to the agent. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// Generate formulas directory from canonical source at .beads/formulas/
|
||||
//go:generate sh -c "rm -rf formulas && mkdir -p formulas && cp ../../.beads/formulas/*.formula.toml ../../.beads/formulas/*.formula.json formulas/ 2>/dev/null || cp ../../.beads/formulas/*.formula.toml formulas/"
|
||||
|
||||
//go:embed formulas/*.formula.toml formulas/*.formula.json
|
||||
//go:embed formulas/*.formula.toml
|
||||
var formulasFS embed.FS
|
||||
|
||||
// ProvisionFormulas creates the .beads/formulas/ directory with embedded formulas.
|
||||
|
||||
Reference in New Issue
Block a user