Cron sessions do not appear under their assigned project Non-empty cron or background…
- User
Cron sessions do not appear under their assigned project
Non-empty cron or background sessions assigned to a project must be shown when that project is selected. They remain hidden in default, unassigned, empty, and unrelated-project views. The behavior must be consistent across supported session retrieval modes.
Interface
No new interfaces are introduced.
- Assistant
I’ll trace the sidebar/session filtering contracts and retrieval modes, then patch the smallest shared layer and verify it with focused tests.
- Assistant
The fast search utility isn’t installed here, so I’m using the repository’s available shell tools. I’m narrowing this to the project-membership rule for externally sourced sessions (cron/background) and the mode-specific listing paths.
- Assistant
I found the mismatch: project metadata is already assigned to cron rows, but both indexed/full-scan server paths and the merged agent-session path discard those rows before the client can apply its project filter. I’m preserving only non-empty, project-assigned background rows in retrieval, then making the existing client-side project filter the sole gate that reveals them.
- Assistant
The fix now covers all three data origins: indexed WebUI metadata, full JSON scans, and state.db/agent sessions. I’ve also made project selection override the WebUI-vs-CLI source tab only for the matching background row, so selecting the assigned project is sufficient while all broader views remain clean.
- Assistant
Focused coverage is green (84 tests). I’ve started the full local suite now; the main remaining risk is an older test or mock assuming agent-session scanning never occurs when the general CLI-session toggle is off.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.