Skip to content

Gate sandbox pull behind sync flag#413

Merged
robinaugh merged 2 commits intomainfrom
jason/rwx-66-sandbox-pull-runs-unconditionally
Mar 11, 2026
Merged

Gate sandbox pull behind sync flag#413
robinaugh merged 2 commits intomainfrom
jason/rwx-66-sandbox-pull-runs-unconditionally

Conversation

@robinaugh
Copy link
Contributor

@robinaugh robinaugh commented Mar 11, 2026

Summary

  • pullChangesFromSandbox in ExecSandbox was called unconditionally, even when cfg.Sync was false
  • Wraps the pull (and its telemetry) inside the same if cfg.Sync guard that already gates the push
  • Users who explicitly opt out of sync no longer get unexpected pull attempts or related errors/slowness

Test plan

  • Existing sandbox pull tests updated to set Sync: true and all pass
  • Full unit test suite passes
  • Manual: rwx sandbox exec without --sync no longer attempts to pull changes back

pullChangesFromSandbox was called unconditionally after exec, even when
sync was disabled. This wraps the pull in the same cfg.Sync check that
already gates the push, so users who opt out of sync don't get
unexpected pull attempts.
@robinaugh robinaugh self-assigned this Mar 11, 2026
@robinaugh robinaugh marked this pull request as ready for review March 11, 2026 14:34
@robinaugh robinaugh merged commit ad312b3 into main Mar 11, 2026
1 check passed
@robinaugh robinaugh deleted the jason/rwx-66-sandbox-pull-runs-unconditionally branch March 11, 2026 15:58
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