Skip to content

(sidebar): a conversation hosted by a live background job is filed under Older #1146

Closed

Description

@devsuitup

Seen in v0.0.108 (test instance of #1143): the "switchboard-dev" conversation runs right now as a hosted background job (claude --bg, job 22d3a9d7), its row carries the bg badge and the job's activity, yet the sidebar files it under the project's collapsed "Older" section while the "+N older" rule promises that active sessions are kept visible.

The row is a merged conversation (original a9f4e948 plus continuation 5190855a). Its modified is already the newest member's (session-cache.js, merged row build), so the date is not the cause.

Cause: the sidebar's notion of "running" used to truncate the list (public/sidebar.js, processProjectSessions) only knows scheduled runs, local PTYs and sessions pending restore. A conversation whose live process is a hosted background job, with no PTY attached in this window, is not "running" for the truncation, the sort priority, or the Running filter, although its icon, badge and the archive-older guard already treat the job as live.

Expected: a conversation hosted by a live background job is a running row — kept out of "Older" whatever its date, sorted with the running rows, included in the Running filter — until the job stops.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions