fix(kugetsu): session detection ordering bug and debugging #108
Reference in New Issue
Block a user
Delete Branch "fix/session-detection-v2"
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?
Summary
Problem
The previous code broke out of the polling loop if the forked process exited, before running session detection. Since
opencode run --forkcompletes quickly (it spawns a child session and exits), the detection was being skipped entirely.This is why the 10-second retry wasn't helping - we were exiting early on every iteration.
Also Note
For the permission issue (external_directory auto-rejecting), run:
This updates base and PM agent sessions to allow
external_directoryaccess to kugetsu directories.Testing
Test with:
kugetsu start git.fbrns.co/shoko/jigaido#2 "your message"lgtm