Skip to content

Bug: --adapter opencode launch starts claude-code session instead #74

Closed

Description

@c-h-

What happened

Running agentctl launch --adapter opencode --model togetherai/zai-org/GLM-5 ... launches a claude-code session (not opencode).

Repro

agentctl launch --adapter opencode --model togetherai/zai-org/GLM-5 --cwd /tmp/opencode-smoke -p "Reply with exactly OK"

Observed:

  • CLI prints Launched session pending- ...
  • agentctl list -a shows adapter claude-code with model togetherai/zai-org/GLM-5

Expected

Adapter should be opencode and process should be OpenCode harness.

Notes

Direct opencode run --model togetherai/zai-org/GLM-5 "Reply with exactly OK" works correctly, so provider/model config is valid. This appears to be adapter routing/launch selection in agentctl.

Environment

  • agentctl 1.5.0
  • macOS Darwin 25.2.0 arm64

Activity

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