Skip to content

feat: preview url idle retention - #16649

Open
isaacyu-warp wants to merge 2 commits into
masterfrom
isaac/preview-idle-retention
Open

isaacyu-warp wants to merge 2 commits into
masterfrom
isaac/preview-idle-retention

Conversation

@isaacyu-warp

@isaacyu-warp isaacyu-warp commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Namespace-hosted agent environments should still alive while they are serving unexpired preview URLs. To do this:

• After the agent's default idle window expires, check the run’s previews every 60 seconds. Allow idle exit when the server returns no previews or a different execution.
• Apply retention to native Oz runs, third-party harnesses, and post-failure debug windows.
• Allow idle exit if a preview request fails or exceeds five seconds, rather than retaining the environment indefinitely.
• Restrict this behavior to Namespace (only environment capable of exposing preview urls)

Preview validity is determined by the server’s filtered response, not by client-side expiration or reachability checks.

Testing

Added tests for platform eligibility, execution identity checks, preview rechecks, cancellation, immediate-exit bypasses, request failures/timeouts, and API authentication

  • I have manually tested my changes locally with ./script/run

Screenshots / Videos

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

@cla-bot cla-bot Bot added the cla-signed label Oct 26, 2026
@isaacyu-warp isaacyu-warp changed the title Isaac/preview idle retention feat: preview url idle retention Oct 26, 2026
Co-Authored-By: Warp <agent@warp.dev>
@isaacyu-warp
isaacyu-warp force-pushed the isaac/preview-idle-retention branch from 082bf6d to 5fae21c Compare October 26, 2026 20:33
@isaacyu-warp
isaacyu-warp requested a review from advait-m October 27, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant