fix: bd ready excludes ephemeral (wisp) issues (hq-t15s)
Wisps are ephemeral issues used for patrol/operational cycles and should not appear in `bd ready` output as trackable work items. Added ephemeral exclusion filter to both the GetReadyWork() function and ready_issues VIEW. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,8 @@ import (
|
|||||||
// Excludes pinned issues which are persistent anchors, not actionable work (bd-92u)
|
// Excludes pinned issues which are persistent anchors, not actionable work (bd-92u)
|
||||||
func (s *SQLiteStorage) GetReadyWork(ctx context.Context, filter types.WorkFilter) ([]*types.Issue, error) {
|
func (s *SQLiteStorage) GetReadyWork(ctx context.Context, filter types.WorkFilter) ([]*types.Issue, error) {
|
||||||
whereClauses := []string{
|
whereClauses := []string{
|
||||||
"i.pinned = 0", // Exclude pinned issues (bd-92u)
|
"i.pinned = 0", // Exclude pinned issues (bd-92u)
|
||||||
|
"(i.ephemeral = 0 OR i.ephemeral IS NULL)", // Exclude wisps (hq-t15s)
|
||||||
}
|
}
|
||||||
args := []interface{}{}
|
args := []interface{}{}
|
||||||
|
|
||||||
|
|||||||
@@ -230,6 +230,7 @@ WITH RECURSIVE
|
|||||||
SELECT i.*
|
SELECT i.*
|
||||||
FROM issues i
|
FROM issues i
|
||||||
WHERE i.status = 'open'
|
WHERE i.status = 'open'
|
||||||
|
AND (i.ephemeral = 0 OR i.ephemeral IS NULL)
|
||||||
AND NOT EXISTS (
|
AND NOT EXISTS (
|
||||||
SELECT 1 FROM blocked_transitively WHERE issue_id = i.id
|
SELECT 1 FROM blocked_transitively WHERE issue_id = i.id
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user