fix(kugetsu): call fix_session_permissions before forking #109

Merged
shoko merged 1 commits from fix/prefork-permissions into main 2026-04-02 13:10:54 +02:00
Owner

Summary

  • Call fix_session_permissions in cmd_start before forking
  • Add debug logging to show forked session directory and permissions after creation

Problem

The base session was created without proper external_directory permissions, causing forked sessions to fail when accessing worktrees.

Solution

Call fix_session_permissions BEFORE forking to ensure base has correct permissions.
Add debug output to see forked session directory and permissions.

Testing

kugetsu start --debug git.fbrns.co/shoko/jigaido#2 "message"

## Summary - Call fix_session_permissions in cmd_start before forking - Add debug logging to show forked session directory and permissions after creation ## Problem The base session was created without proper external_directory permissions, causing forked sessions to fail when accessing worktrees. ## Solution Call fix_session_permissions BEFORE forking to ensure base has correct permissions. Add debug output to see forked session directory and permissions. ## Testing kugetsu start --debug git.fbrns.co/shoko/jigaido#2 "message"
shoko added 1 commit 2026-04-02 13:08:59 +02:00
- Call fix_session_permissions in cmd_start before forking to ensure
  base session has correct permissions for external_directory access
- Add debug logging to show forked session's directory and permissions
  after creation to help diagnose permission inheritance issues
han approved these changes 2026-04-02 13:10:19 +02:00
han left a comment
First-time contributor

lgtm

lgtm
shoko merged commit 2e9081f4f5 into main 2026-04-02 13:10:54 +02:00
Sign in to join this conversation.