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 contract and all retrieval modes, then patch the smallest shared logic and add regression coverage. I’ll first read the repository guidance required for this subsystem.
- Assistant
The initial combined read was truncated, so I’m narrowing to the session/sidebar contracts and locating the cron/background filtering implementation and its tests before editing.
- Assistant
I found the core mismatch: the server discards cron rows before the existing client-side project filter can select them. The fix needs to preserve only project-assigned, non-empty background rows in the retrieval payload, then apply background visibility after project selection so default and unassigned views stay clean. I’m checking source-mode classification now to cover both indexed WebUI rows and agent/CLI rows.
- Assistant
The implementation now covers both scheduler-originated rows and
/backgroundruns: background runs are explicitly tagged and inherit the parent project, while the shared projection only retains assigned rows with messages. I’ve added regression checks for the server projection, the exact-project client gate, and the indexed/agent-backed paths; I’m running the focused suite now. - Assistant
The focused suite passes across both session-index paths and both agent-session setting modes. I’m doing the repository-wide test run now to catch any assumptions elsewhere about the old server-side hiding behavior.
- Assistant
Repository-wide verification completed: 6,356 passed, including all new and affected coverage. The remaining 82 failures are environment-only baseline failures (primarily the unavailable
nodeexecutable, plus sandbox/permission-dependent bootstrap tests); none are in the changed session/project paths. I’m doing a final diff and syntax check before handing off.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.