fix(sessions): keep kanban worker runs out of the session lists

Exclude the source from the desktop sidebar and project tree, the TUI
resume picker, session_search, and the CLI session listings.
This commit is contained in:
Brooklyn Nicholson
2026-07-31 13:49:36 -05:00
parent 9fe36aecb1
commit e41d2029b7
7 changed files with 27 additions and 23 deletions
+2 -2
View File
@@ -1324,7 +1324,7 @@ def _sessions_list(_engine: HermesConsoleEngine, args: list[str]) -> str:
db = SessionDB()
try:
sessions = db.list_sessions_rich(
exclude_sources=["tool"],
exclude_sources=["kanban", "tool"],
limit=ns.limit,
order_by_last_active=True,
)
@@ -1340,7 +1340,7 @@ def _sessions_stats(_engine: HermesConsoleEngine, args: list[str]) -> str:
db = SessionDB()
try:
total = db.session_count()
listable = db.session_count(exclude_children=True, exclude_sources=["tool"])
listable = db.session_count(exclude_children=True, exclude_sources=["kanban", "tool"])
messages = db.message_count()
lines = [
f"Total sessions: {total}",