Skip to content

Bug: opencode launch can return stopped session with no peekable logs #158

@c-h-

Description

@c-h-

What happened

agentctl launch opencode returned Launched session ed204dc4, but the session immediately showed Status: stopped, agentctl peek ed204dc4 -n 80 returned Session not found: ed204dc4, and no code changes were made in the target worktree.

What was expected

The launch should create a runnable session with inspectable logs/output, or at minimum surface a concrete failure reason instead of a stopped session with no peekable transcript.

How to reproduce

Run from a mono worktree:

agentctl launch opencode \
  --callback-session "agent:kindo:orgloop:github:pr:8745" \
  --callback-agent "kindo" \
  --cwd /Users/ms/code/mono-conversation-compaction \
  -p "Address PR #8745 review feedback ..."

agentctl status ed204dc4
agentctl peek ed204dc4 -n 80

Observed:

  • launch prints a session id
  • status reports stopped
  • peek says Session not found

Workaround

Handled the fix directly in the worktree instead of relying on agentctl.

Environment

  • agentctl: 1.9.0
  • OS: macOS Darwin 25.2.0 arm64
  • Working dir: /Users/ms/code/mono-conversation-compaction
  • Adapter: opencode

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