Skip to content

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

Closed

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

Activity

  1. added 2 commits that reference this issue on Mar 5, 2026
    e2a31e7
    360ea3d
  2. c-h- commented on Mar 5, 2026

    @c-h-
    CollaboratorAuthor

    Fixed in PR #100

  3. added 3 commits that reference this issue on Mar 5, 2026
    d4a1f57
    1391ff3
    6d1be38
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