Skip to content

Conversation

@kcoopermiller
Copy link
Member

@kcoopermiller kcoopermiller commented Jan 14, 2026

# Takes 5 seconds (backgrounded process inherits pipes, blocks until exit)
prime sandbox run <sandbox_id> "nohup sh -c 'sleep 5 &'"
# Returns immediately (redirections prevent pipe inheritance)
prime sandbox run <sandbox_id> "nohup sh -c 'sleep 5 > /dev/null 2>&1 &'"

Note

Adjusts how background jobs capture output and exit codes for reliability.

  • In start_background_job and async counterpart, redirect stdout/stderr within the inner sh -c subshell to *.stdout.log/*.stderr.log while always writing exit code to *.exit
  • Change outer nohup to < /dev/null > /dev/null 2>&1 since logging is handled inside the quoted command

Written by Cursor Bugbot for commit 7864869. This will update automatically on new commits. Configure here.

@kcoopermiller kcoopermiller marked this pull request as ready for review January 14, 2026 21:25
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.

2 participants