Skip to content

Bug: agentctl peek/status times out on opencode sessions #97

@c-h-

Description

@c-h-

What happened

agentctl peek <id> and agentctl status <id> consistently time out (hit the 5s adapter timeout) when querying opencode sessions. The process is confirmed alive via ps -p.

What was expected

These commands should be near-instant — they read from a .jsonl session file, not a live API call.

How to reproduce

  1. agentctl launch opencode --cwd <dir> -p "<any prompt>"
  2. Wait for session to start working
  3. agentctl peek <id> -n 10 → times out
  4. ps -p <pid> → confirms process is alive

The agentctl list -a output also shows Warning: Adapter(s) timed out after 5000ms: ... opencode on every invocation.

Workaround

Use ps -p <pid> to check if the process is alive. Can't view session output until it completes.

Environment

agentctl from npm link (local build), opencode 1.2.11 (Homebrew), macOS arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions