Skip to content

fix(core): hide scheduler background sessions - #1497

Closed
AaronZ345 wants to merge 1 commit into
chenhg5:mainfrom
AaronZ345:fix/background-session-list-20260705
Closed

fix(core): hide scheduler background sessions#1497
AaronZ345 wants to merge 1 commit into
chenhg5:mainfrom
AaronZ345:fix/background-session-list-20260705

Conversation

@AaronZ345

Copy link
Copy Markdown
Contributor

Summary

  • Mark cron/timer new_per_run sessions as background sessions.
  • Hide scheduler background agent sessions from normal /list, /switch, and /delete filtering by default, including current and past agent session IDs.
  • Add a compatibility opt-out via core.hide_scheduler_sessions = false, plus config docs, changelog, and tests.

Fixes #1077.

Tests

  • go test ./core
  • go test -tags no_web ./cmd/cc-connect

Supersedes #1417. This is the same rebased patch on a fresh PR branch, including the requested compatibility opt-out.

@AaronZ345
AaronZ345 requested a review from chenhg5 as a code owner July 5, 2026 04:50
@AaronZ345
AaronZ345 force-pushed the fix/background-session-list-20260705 branch 2 times, most recently from d7a8a2e to 35b3c82 Compare July 8, 2026 14:40
@AaronZ345
AaronZ345 force-pushed the fix/background-session-list-20260705 branch 2 times, most recently from 34cb04b to 0a16e82 Compare July 14, 2026 03:05
@AaronZ345

Copy link
Copy Markdown
Contributor Author

Hi @chenhg5, I’ve rebased this PR onto the latest main and all five CI checks are green. Could you please take another look and merge it when you have a chance? Thanks!

@AaronZ345
AaronZ345 force-pushed the fix/background-session-list-20260705 branch 2 times, most recently from 95d79ea to 4cc6970 Compare July 19, 2026 14:43
@AaronZ345
AaronZ345 force-pushed the fix/background-session-list-20260705 branch from 4cc6970 to 63fc319 Compare July 23, 2026 14:43
@AaronZ345
AaronZ345 force-pushed the fix/background-session-list-20260705 branch from 63fc319 to cfad1a5 Compare July 25, 2026 14:41
@AaronZ345

Copy link
Copy Markdown
Contributor Author

Superseded by #1650, which carries the same patch rebased onto the latest main on a fresh branch.

@AaronZ345 AaronZ345 closed this Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] new_per_run cron sessions remain visible in /list after completion

1 participant