Feature: kugetsu delegate should be fire-and-forget #41
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
kugetsu delegateis blocking - user waits for PM to respond.Expected: Fire-and-Forget
Testing (VERIFIED WORKING - 2026-03-31)
Result: Background execution works, output captured, immediate return.
Implementation
Notes
Related
Status
if PM session dead, and command fails silently in background, it will just confusing. what are the options to handle this? should we have log or something somewhere so all the delegation can pick it up. or even the kugetsu delegate command can pick it up before delgating to see if oh previous command fails because the PM session is dead, or something. what do you think? what are the simplest way to periodically clean KUGETSU_DIR/logs/ ? should we clean it up during init?
Tradeoffs for Dead PM Session Handling
Option 1: Pre-check before delegating
Option 2: Marker file (PM removes on success)
Option 3: Log-based feedback (Simplest)
Simplest Log Rotation
Recommended Approach
kugetsu logscommand to view recent delegation logskugetsu initor separatekugetsu prune-logsDont over-engineer it - logs capture everything, user can check if something seems wrong.