Subagent workflow: PM agent cannot write to /tmp for comment posting #45
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
PM agent tried to post test results as issue comment but was blocked:
The subagent workflow uses
write_fileto create a temporary file, then posts viacurl -d @/tmp/file. But PM agent session has/tmp/*blocked.Options to Fix
Option 1: Write to kugetsu session folder instead
PM agent has access to
~/.kugetsu/which is where logs are written. Could write comment drafts there instead of/tmp/.Option 2: Use curl directly without file
The curl command could construct the JSON body inline instead of reading from file:
Option 3: Update PM agent session permissions
Allow
/tmp/*in PM agent session permissions.Recommendation
Option 1 (write to ~/.kugetsu/) seems cleanest - keeps temporary files within the kugetsu ecosystem rather than expanding /tmp permissions.
Could create a helper script at
~/.kugetsu/post-comment.shthat the PM agent calls instead of writing files directly.no longer relevant, there are other solution