fix: opencode message argument must come before flags in init #58

Merged
shoko merged 1 commits from fix/kugetsu-init-opencode-arg-order into main 2026-04-01 02:44:54 +02:00
Owner

Summary

PR #54 fixed opencode arg order in cmd_delegate and cmd_start, but kugetsu init function still had message AFTER flags.

Fixed in:

  • kugetsu_init function: message before --fork --session
  • Similar patterns in session creation code

Changes

# BEFORE (broken):
opencode run --fork --session "$base" "PM prompt here"
opencode run --fork --session "$new_session_id" "$pm_prompt"

# AFTER (correct):
opencode run "PM prompt here" --fork --session "$base"
opencode run "$pm_prompt" --fork --session "$new_session_id"

Impact

## Summary PR #54 fixed opencode arg order in cmd_delegate and cmd_start, but kugetsu init function still had message AFTER flags. Fixed in: - kugetsu_init function: message before --fork --session - Similar patterns in session creation code ## Changes ```bash # BEFORE (broken): opencode run --fork --session "$base" "PM prompt here" opencode run --fork --session "$new_session_id" "$pm_prompt" # AFTER (correct): opencode run "PM prompt here" --fork --session "$base" opencode run "$pm_prompt" --fork --session "$new_session_id" ``` ## Impact - kugetsu init now works correctly - PM session can be created properly - Related to #53
shoko added 1 commit 2026-04-01 02:01:13 +02:00
PR #54 fixed opencode arg order in cmd_delegate and cmd_start,
but kugetsu init function still had message AFTER flags.

Fixed in:
- kugetsu_init function: message before --fork --session
- Similar patterns in session creation code

Closes related to #53
shoko merged commit 0d408e8fd8 into main 2026-04-01 02:44:54 +02:00
Sign in to join this conversation.