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:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user