Skip to content

fix: include username in temp directory names to prevent collisions#54

Open
akaihola wants to merge 1 commit intonicobailon:mainfrom
akaihola:fix/user-scoped-tmp-dirs
Open

fix: include username in temp directory names to prevent collisions#54
akaihola wants to merge 1 commit intonicobailon:mainfrom
akaihola:fix/user-scoped-tmp-dirs

Conversation

@akaihola
Copy link

@akaihola akaihola commented Mar 12, 2026

Fixes #53

When pi-subagents is installed for multiple user accounts on the same machine, both users compete for the same /tmp/pi-async-subagent-* directories. The second user to start Pi gets an EACCES error because the directory was created by the first user.

Using os.userInfo().username makes the paths user-scoped:

  • /tmp/pi-async-subagent-results-alice
  • /tmp/pi-async-subagent-runs-alice

No new imports needed — os is already imported in this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Temporary paths collide between users

1 participant