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 session filtering and retrieval paths first, then patch the shared project-visibility logic and verify every supported retrieval mode with focused tests.
- Assistant
rgisn’t installed in this checkout, so I’m using the repository’s available text-search tools. The likely fault is at the boundary where cron/background sessions are merged with ordinary session metadata, so I’m checking both indexed and scan-based retrieval paths. - Assistant
The defect is confirmed in the sidebar metadata layer: both index-backed and full-scan retrieval discard cron rows before the browser can apply its existing project filter. I’m changing that boundary so only non-empty, project-assigned background rows reach the browser cache, while the browser still suppresses them unless that exact project is selected.
- Assistant
The focused run exposed one older regression test that equated “not in the default sidebar” with “absent from
/api/sessionsentirely.” That assumption prevents project selection from ever revealing the row. I’m updating the test boundary to match the actual invariant: the existing payload may carry an assigned row, but rendering must hide it outside its exact project. - Assistant
The metadata and rendering invariants now pass in both retrieval paths, including profile/project regressions. I’ve also broadened cron detection to the normalized source fields used by gateway rows, so opaque session IDs behave the same as
cron_*IDs. I’m doing the final diff review and a wider test run now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.