Warp: Cloud Agent Setup Commands Can Persist Environment Variables

WarpView original changelog

Warp now lets cloud agent setup commands write KEY=VALUE lines to $WARP_VARS_FILE so the variables persist for the rest of the run. Setup scripts can export values once and have the agent use them afterward. Warp also fixed setup commands timing out when text from an earlier command was left in the input.

Key Takeaways

  • Setup commands can now persist environment variables by writing KEY=VALUE lines to $WARP_VARS_FILE.
  • Variables apply to the entire cloud agent run, not only the setup shell.
  • Computed values such as paths, versions or fetched tokens no longer need to be re-derived in later steps.
  • Warp fixed setup command timeouts caused by leftover text from a previous command.
  • The change makes multi-step setup scripts more predictable for cloud agents.
  • It is most useful for teams running Oz cloud agents against custom tooling.

Environment variables that survive setup

Warp updated how cloud agent runs handle setup. A setup command can now write KEY=VALUE lines to the file referenced by $WARP_VARS_FILE. Warp then applies those variables to the whole run, not just to the shell that executed the setup step.

Before this change, values computed during setup, such as a generated path, a resolved version or a token fetched from a script, had to be re-derived or hard-coded in later steps. Now one setup command can compute a value and write it to the file, and the agent and later commands see it automatically.

A related setup fix

Warp also fixed a reliability problem in the same area. Cloud agent setup commands could time out when text from an earlier command remained in the input buffer. With that fixed, multi-step setup scripts start more predictably.

Why it matters

Cloud agents depend on a repeatable environment. Passing state from setup to the run through a documented file is simpler and less fragile than relying on shell state. Teams that run Oz cloud agents against private tooling or generated configuration gain the most.

Warp Cloud Agents Persist Env Vars From Setup | Yet Another Changelog