fix: opencode message argument must come before flags #54

Merged
shoko merged 1 commits from fix/opencode-arg-order into main 2026-03-31 23:35:34 +02:00
Owner

Summary

opencode CLI requires message BEFORE flags:

opencode run "message" --session sid --workdir /path  # CORRECT
opencode run --session sid "message" --workdir /path  # WRONG - shows help

kugetsu was placing message AFTER flags, causing ALL commands to fail.

Changes

Fixed argument order in:

  • cmd_delegate (line 561): nohup sh -c with message first
  • cmd_start (lines 862, 864): --fork --session with message first
  • fork_session_for_issue (lines 944, 946, 950, 952): --continue --session with message first

Impact

  • kugetsu delegate - BROKEN (was fixed earlier but now fully fixed)
  • kugetsu start - BROKEN (now fixed)
  • All task delegation - BROKEN (now fixed)

Closes #53

## Summary opencode CLI requires message BEFORE flags: ```bash opencode run "message" --session sid --workdir /path # CORRECT opencode run --session sid "message" --workdir /path # WRONG - shows help ``` kugetsu was placing message AFTER flags, causing ALL commands to fail. ## Changes Fixed argument order in: - **cmd_delegate** (line 561): nohup sh -c with message first - **cmd_start** (lines 862, 864): --fork --session with message first - **fork_session_for_issue** (lines 944, 946, 950, 952): --continue --session with message first ## Impact - `kugetsu delegate` - BROKEN (was fixed earlier but now fully fixed) - `kugetsu start` - BROKEN (now fixed) - All task delegation - BROKEN (now fixed) Closes #53
shoko added 1 commit 2026-03-31 23:29:58 +02:00
opencode CLI requires: opencode run "message" --session sid --workdir /path
But kugetsu was placing message AFTER flags, causing all commands to fail.

Fixed in:
- cmd_delegate: nohup sh -c with message first
- cmd_start: --fork --session with message first
- fork_session_for_issue: --continue --session with message first

Closes #53
han approved these changes 2026-03-31 23:34:58 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit d126cf0f00 into main 2026-03-31 23:35:34 +02:00
Sign in to join this conversation.