fix: keep merged and resolved threads out of the draft queue (#33) (#34)
build / test (push) Successful in 3m9s
build / image (push) Successful in 17s

Co-authored-by: David Gwilliam <dhgwilliam@gmail.com>
Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #34.
This commit is contained in:
2026-11-05 04:38:02 +00:00
committed by david
parent 45f966d44f
commit 87eb47ca3c
4 changed files with 38 additions and 9 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ func NewMCPServer(kdb *db.KnoxDB) *mcp.Server {
}
selected := make([]db.Thread, 0, len(threads))
for _, t := range threads {
if strings.Contains(t.Provenance, "auto_thread") || strings.HasPrefix(t.Motivation, "Auto-detected") {
if t.IsDraft() {
selected = append(selected, t)
}
if len(selected) >= limit {