Skip to content

mocactl: the Sessions view shows only a session's first prompt, and 0 turns after a headless run #417

Done

Description

@pdettori

Found on the VM demo's live run (#370, docs/demos/vm-multi-user-demo.md, fix list 6; reported in the #412 review).

The Sessions overlay (ctrl+x l) titles each session by its first prompt only. Two users ran the same research prompt, and their lists looked identical:

› This is a research task. Use your bash tool for… 11m ago · 0 turns · local history

So the demo's 3a, which shows the session lists are disjoint, can't be shown in the TUI. The runbook lists ids with curl /v1/sessions instead.

The same rows read 0 turns · local history after a headless mocactl run, although each session had run a turn. The count appears to come from the local transcript store, which the headless run path doesn't seem to write. That's unconfirmed; check packages/mocactl/src/headless.ts against the TUI's transcript writes.

Proposed:

  • show a short session id (first 8 characters) on each row;
  • count turns from the server's session summary, or have headless run write the transcript.

Related: #406 adds a headless mocactl sessions [--json], which would also cover 3a.

Activity

  1. added a commit that references this issue on Oct 1, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions