fix(convoy): pass specific convoy ID in ConvoyWatcher check

When an issue closes, the daemon ConvoyWatcher now passes the specific
convoy ID to gt convoy check instead of running check on all open convoys.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
furiosa
2026-01-20 21:53:15 -08:00
committed by beads/crew/emma
parent 405d40ee4b
commit 35abe21c50

View File

@@ -218,11 +218,11 @@ func (w *ConvoyWatcher) checkConvoyCompletion(convoyID string) {
return // Already closed
}
// Run gt convoy check to handle the completion
// Run gt convoy check with specific convoy ID for targeted check
// This reuses the existing logic which handles notifications, etc.
w.logger("convoy watcher: running completion check for %s", convoyID)
checkCmd := exec.Command("gt", "convoy", "check")
checkCmd := exec.Command("gt", "convoy", "check", convoyID)
checkCmd.Dir = w.townRoot
var checkStdout, checkStderr bytes.Buffer
checkCmd.Stdout = &checkStdout