Files
hermes-webui/api
mysoul12138 71e6eabb29 fix: let cron sessions bypass CLI_VISIBLE_SESSION_LIMIT for project chips (#3172)
When state.db has many non-cron sessions, the normal sidebar query caps
at CLI_VISIBLE_SESSION_LIMIT (20) rows ordered by latest activity. Older
cron runs get squeezed out before _include_project_hidden_background_sidebar_sessions
can rescue them, making them invisible under their project chip.

Add a second-pass cron-only query with a higher cap (CRON_PROJECT_CHIP_LIMIT=200)
that merges into the CLI session list.  The project-chip rescue layer then
marks them default_hidden so they stay addressable without polluting the
default sidebar window.

Verification: regression test seeds 25+ newer non-cron sessions and asserts
the older messageful cron session still appears with project_id set.
2026-05-30 23:25:41 +08:00
..
2026-05-28 13:38:50 -04:00
2026-05-29 23:22:15 +00:00
2026-04-29 19:54:07 -07:00
2026-05-28 13:38:50 -04:00
2026-05-25 00:14:38 +00:00
2026-05-28 17:47:33 +00:00
2026-05-29 22:15:46 +00:00
2026-05-15 16:39:45 -07:00
2026-05-28 08:33:50 -04:00