Skip to content
TheChatArchiveThe Chat Archive
composer-2.5· unknownHugging Face ibragim-bad/swe_rebench_07_2026_trajectories

Cron sessions do not appear under their assigned project Non-empty cron or background…

  1. 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.

  2. Assistant

    I'll investigate how cron sessions are retrieved and filtered by project assignment.

  3. Assistant

    Implementing the fix: include non-empty cron sessions in API responses and add client-side project-scoped visibility filtering.

  4. Assistant

    Cron sessions are CLI-classified, so they were filtered out on the WebUI tab even with a project selected. I'll include project-matching sessions across source tabs when a project chip is active.

  5. Assistant

    Cron sessions were being dropped before the sidebar could apply project filters. They’re now kept in the session payload and shown only when the matching project chip is selected.

    Root cause

    Cron/background sessions were stripped at the server (_hide_from_default_sidebar and the /api/sessions CLI merge), so the client never received them — even when the Cron Jobs project was selected. The original #1079 design assumed project-chip filtering, but #1143 hid cron rows entirely.

    Fix

    Server (api/models.py)

    • _hide_from_default_sidebar now hides only empty cron/background rows; non-empty ones stay in the payload.
    • Added _sidebar_background_session_visible() for scoped list projections (MCP).
    • Added _enrich_cron_session_project_ids() so cron rows always carry the profile-scoped Cron Jobs project_id.

    API (api/routes.py)

    • Enriches cron project_ids before returning /api/sessions.

    Client (static/sessions.js)

    • _shouldShowBackgroundSessionInSidebar() hides cron rows in default, unassigned, and unrelated-project views.
    • Shows them when _activeProject matches their project_id.
    • When a project chip is active, bypasses the WebUI/CLI source-tab split so cron rows aren’t hidden on the WebUI tab.

    MCP (mcp_server.py)

    • list_sessions uses the same background-session visibility rules and project enrichment.

    Behavior

    ViewNon-empty cron with project
    All (default)Hidden
    UnassignedHidden
    Matching projectVisible
    Other projectHidden
    Empty cronHidden everywhere

    Tests added in tests/test_cron_session_project_visibility.py; existing gateway sync tests updated to match the new contract.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.