Skip to content

Bug: OpenClaw adapter discover shows historical sessions as running #72

Closed

Description

@c-h-

What happened

agentctl list --adapter openclaw returns many old sessions (weeks old) as running.

Expected

Default list should show active sessions. Historical/idle/archive sessions should not all appear as running.

Repro

agentctl list --adapter openclaw --json | jq 'sort_by(.startedAt)[0:8] | map({id,status,startedAt,prompt})'

Observed rows from 2026-01-31 still marked running.

Suspected cause

src/adapters/openclaw.ts discover() currently maps all gateway sessions.list rows to status: "running".
Daemon session.list is discover-first, so default filters keep them.

Environment

  • agentctl 1.5.0
  • macOS Darwin 25.2.0 arm64
  • OpenClaw gateway reachable/authenticated
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