Skip to content

API server should exclude cron sessions from /api/sessions by default #732

Description

@aoio-design

Feature request

The list_sessions_rich() method in hermes_state.py already supports exclude_sources=["cron"], but the API server's _handle_list_sessions handler in gateway/platforms/api_server.py doesn't pass this parameter.

Why it matters: Users who run cron jobs see hundreds of cron sessions mixed with their chat sessions in the Workspace sidebar with no way to filter them out.

Suggested fix: In gateway/platforms/api_server.py, add exclude_sources=["cron"] to the db.list_sessions_rich() call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions