Make delegate synchronous when no issue ref is provided #254
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Currently when 'kugetsu delegate' is called without an issue ref, it runs fire-and-forget (async) with nohup. This means:
User Request
When no issue ref is provided, delegate should run synchronously - waiting for PM response immediately. This is because:
Current Behavior
In cmd_delegate (kugetsu-session.sh:211-231):
Desired Behavior
When no issue ref is detected:
Implementation
Remove nohup and '&' from line 230 in kugetsu-session.sh:
Current:
nohup sh -c "GITEA_TOKEN='' opencode run '@' --session ''" >> "" 2>&1 &
Change to:
sh -c "GITEA_TOKEN='' opencode run '@' --session ''" 2>&1 | tee ""
This runs synchronously and logs to both terminal and file.
Status
READY - No dependencies
Files
Related Issue
Parent: #235