{"id":58206,"date":"2026-08-01T20:01:47","date_gmt":"2026-08-01T10:01:47","guid":{"rendered":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/"},"modified":"2026-08-01T20:03:01","modified_gmt":"2026-08-01T10:03:01","slug":"understanding-run-state-session-state-and-secure-sandbox-snapshots","status":"publish","type":"post","link":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/","title":{"rendered":"Understanding Run State Session State and Secure Sandbox Snapshots"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this blog post Understanding Run State Session State and Secure Sandbox Snapshots we will explain why an AI agent can remember a conversation yet still lose its work, repeat an action or resume from the wrong point.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">At a high level, these three types of state preserve different parts of an AI workflow. Run state remembers where the task stopped, session state reconnects the agent to an existing work environment, and a sandbox snapshot creates a reusable copy of that environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Getting these layers right is what turns an impressive AI demonstration into a reliable business system. It reduces repeated work, limits unnecessary cloud costs and gives your team a safer recovery path when an agent, application or approval process is interrupted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why AI agents lose work even when they remember the conversation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine an AI agent preparing a monthly management report. It has opened spreadsheets, cleaned data, generated charts and created a draft document before stopping to request approval from the finance director.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The director responds the next morning. The conversation is still visible, but the generated files are gone, the temporary environment has expired or the agent starts the process again and creates different figures.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This happens because conversation history is only one part of the system. As we covered in why session management keeps AI automation reliable, the application must preserve enough context to continue safely. An agent that works with files and commands also needs its execution environment managed correctly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The technology behind sandboxed AI agents<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A sandbox is an isolated workspace where an AI agent can read and write files, run approved commands, install permitted software packages and produce outputs such as reports, spreadsheets or application code. Isolation helps prevent the agent from freely accessing the server, business network or other users&#8217; work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The AI model does not manage this environment by itself. An agent framework controls the model calls, tools, approvals and workflow, while a sandbox provider controls the workspace where files and commands exist.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This separation matters. Business credentials, audit records and approval rules should remain in trusted systems, while the sandbox receives only the files, permissions and temporary access required for the task.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run state remembers where the workflow stopped<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Run state is a checkpoint for the agent&#8217;s current workflow. It can preserve information such as completed model steps, tool requests, generated results, agent handovers and actions waiting for human approval.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of it as the agent&#8217;s place in a process rather than its entire workplace. If an agent pauses before sending a supplier payment file, run state can record that the file has been prepared but the send action has not been approved.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This creates several business benefits:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Safer approvals:<\/strong> sensitive actions can pause until an authorised person approves or rejects them.<\/li>\n<li><strong>Fewer duplicate actions:<\/strong> the agent is less likely to repeat an email, transaction or system update after restarting.<\/li>\n<li><strong>Better auditability:<\/strong> your application can record why the workflow paused and what decision allowed it to continue.<\/li>\n<li><strong>Improved recovery:<\/strong> an interrupted process can resume instead of starting again from the first step.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Run state is especially useful for human-in-the-loop workflows, meaning processes where a person must review a decision before the AI continues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Session state reconnects to the same working environment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sandbox session state contains the information needed to reconnect to an existing sandbox managed by a particular provider. That sandbox may already contain downloaded documents, installed dependencies, working files and partially completed outputs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is different from a conversational session. A conversational session remembers messages and user interactions. A sandbox session represents the live environment where the work is being performed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our guide to multi-turn state for OpenAI agents explains how an agent continues a conversation without repeatedly requesting the same details. Sandbox session state extends that continuity to the agent&#8217;s workspace.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use session state when the agent must return to the same environment. For example, a developer may ask an agent to update an application, review the first result and then request another change using the files and installed tools already present.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The trade-off is lifecycle cost. Keeping hundreds of sandbox sessions alive while users wait for hours or days can waste compute resources. Sessions also need expiry rules so abandoned environments do not remain accessible indefinitely.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sandbox snapshots create reusable recovery points<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A sandbox snapshot is a saved copy of workspace contents that can be used to create a fresh sandbox later. Instead of reconnecting to the original live environment, the system starts a new environment using the saved files and configuration as its starting point.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A useful comparison is the difference between returning to the same desk and setting up a new desk from a carefully packed archive. The second desk starts with the required materials but has its own lifecycle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Snapshots are useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Long-running tasks:<\/strong> save progress, shut down idle compute and continue later.<\/li>\n<li><strong>Recovery:<\/strong> return to a known good workspace after an agent produces an incorrect change.<\/li>\n<li><strong>Branching:<\/strong> create two fresh sandboxes from the same point and test different approaches.<\/li>\n<li><strong>Standardisation:<\/strong> give each task a clean environment with approved files, packages and templates.<\/li>\n<li><strong>Cost control:<\/strong> avoid paying to keep every temporary environment running while it waits for a user.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A snapshot is not automatically a complete business backup. Its contents, retention period and restoration behaviour depend on the sandbox provider, so restoration must be tested rather than assumed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the three layers work together<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For a reliable workflow, these mechanisms are normally combined rather than treated as competing options.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>The agent starts a task inside an isolated sandbox.<\/li>\n<li>Run state tracks workflow progress, tool activity and pending approvals.<\/li>\n<li>Session state allows a later run to reconnect to the same sandbox when short-term continuity is required.<\/li>\n<li>A snapshot saves the workspace when the live sandbox should be closed, copied or rolled back.<\/li>\n<li>Conversation history separately preserves what the user and agent have discussed.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The following simplified TypeScript-style example shows the overall pattern. Exact interfaces may change because sandbox agent features are still developing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { run, RunState } from &#39;@openai\/agents&#39;;\n\n\/\/ Start the task in an isolated sandbox.\nconst result = await run(agent, task, {\n sandbox: { client }\n});\n\n\/\/ Save the workflow if it pauses for approval.\nconst savedRunState = result.state.toString();\n\n\/\/ Later, rebuild trusted services and restore the workflow.\nconst restoredState = await RunState.fromString(\n agent,\n savedRunState\n);\n\nrestoredState.approve(pendingAction);\n\nconst resumedResult = await run(agent, restoredState, {\n sandbox: { client }\n});\n\n\/\/ Depending on the requirement, the sandbox layer can\n\/\/ reconnect with session state or create a fresh session\n\/\/ from a previously saved snapshot.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The important design decision is not the individual method name. It is deciding exactly which workflow, conversation and workspace information must survive an interruption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A practical business scenario<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Consider a 200-person professional services firm using an AI agent to prepare client review packs. Each pack requires document collection, spreadsheet analysis, draft recommendations and manager approval.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run state records that the recommendations are waiting for approval. Session state lets the manager request a quick correction using the existing workspace. Once the approved template is ready, a snapshot provides a clean starting point for similar future jobs without keeping the original environment running.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The result is less repeated processing, faster turnaround and a clearer approval record. Client work also remains separated rather than being mixed into one long-lived workspace.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Security and governance rules to put in place<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Saved state can contain sensitive information. Run state may include tool inputs and approval details, while sessions and snapshots may contain customer files, source code, reports or temporary credentials.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Encrypt saved state and snapshots both when stored and transferred.<\/li>\n<li>Apply expiry and deletion rules based on the sensitivity of the task.<\/li>\n<li>Keep passwords, API keys and privileged credentials outside saved state wherever possible.<\/li>\n<li>Recreate clients, access policies and credentials from trusted configuration when resuming.<\/li>\n<li>Log who created, restored, approved, downloaded or deleted a snapshot.<\/li>\n<li>Test failure, expiry and restoration scenarios before production use.<\/li>\n<li>Keep sandbox images patched and minimal. The same principles discussed in building lean and reliable Docker images also reduce unnecessary software and security exposure.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These controls support broader security programs, but they do not replace the Essential 8, the Australian Government&#8217;s baseline cybersecurity framework. Application control, patching, restricted administrative access and other Essential 8 measures still need to cover the systems surrounding the AI agent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choose state based on the outcome you need<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use run state when the question is, \u201cWhere did the process stop?\u201d Use session state when the question is, \u201cHow do we return to the same environment?\u201d Use a snapshot when the question is, \u201cHow do we start a fresh environment from saved work?\u201d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">CloudProInc brings more than 20 years of enterprise IT experience to these decisions, combining practical AI delivery with Microsoft Azure, security and governance knowledge. As a Microsoft Partner and Wiz Security Integrator, we look beyond whether an agent works in a demonstration and focus on whether it can recover safely, control costs and protect business data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you are unsure whether your AI agent can reliably pause, recover and resume without losing work or exposing sensitive information, we are happy to review the design with you \u2014 no strings attached.<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Run state, session state and sandbox snapshots solve different AI reliability problems. Learn when to use each and how to control cost, security and recovery.<\/p>\n","protected":false},"author":1,"featured_media":58208,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_opengraph-title":"Sandbox Snapshots: Run State and Session State","_yoast_wpseo_opengraph-description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","_yoast_wpseo_twitter-title":"Sandbox Snapshots: Run State and Session State","_yoast_wpseo_twitter-description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[80,121,13,124],"tags":[],"class_list":["post-58206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-agents","category-ai-governance-risk-management","category-blog","category-cloud-cost-finops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v28.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Sandbox Snapshots: Run State and Session State<\/title>\n<meta name=\"description\" content=\"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sandbox Snapshots: Run State and Session State\" \/>\n<meta property=\"og:description\" content=\"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/\" \/>\n<meta property=\"og:site_name\" content=\"CPI Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T10:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-01T10:03:01+00:00\" \/>\n<meta name=\"author\" content=\"CPI Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Sandbox Snapshots: Run State and Session State\" \/>\n<meta name=\"twitter:description\" content=\"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CPI Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/\"},\"author\":{\"name\":\"CPI Staff\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\"},\"headline\":\"Understanding Run State Session State and Secure Sandbox Snapshots\",\"datePublished\":\"2026-08-01T10:01:47+00:00\",\"dateModified\":\"2026-08-01T10:03:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/\"},\"wordCount\":1443,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png\",\"articleSection\":[\"AI Agents\",\"AI Governance &amp; Risk Management\",\"Blog\",\"Cloud Cost &amp; FinOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/\",\"name\":\"Sandbox Snapshots: Run State and Session State\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#primaryimage\"},\"thumbnailUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png\",\"datePublished\":\"2026-08-01T10:01:47+00:00\",\"dateModified\":\"2026-08-01T10:03:01+00:00\",\"description\":\"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#primaryimage\",\"url\":\"\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png\",\"width\":1536,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/2026\\\/08\\\/01\\\/understanding-run-state-session-state-and-secure-sandbox-snapshots\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Understanding Run State Session State and Secure Sandbox Snapshots\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#website\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"name\":\"Cloud Pro Inc - CPI Consulting Pty Ltd\",\"description\":\"Cloud, AI &amp; Cybersecurity Consulting | Melbourne\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#organization\",\"name\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\",\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"contentUrl\":\"\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/favfinalfile.png\",\"width\":500,\"height\":500,\"caption\":\"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/#\\\/schema\\\/person\\\/192eeeb0ce91062126ce3822ae88fe6e\",\"name\":\"CPI Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g\",\"caption\":\"CPI Staff\"},\"sameAs\":[\"http:\\\/\\\/www.cloudproinc.com.au\"],\"url\":\"https:\\\/\\\/www.cloudproinc.com.au\\\/index.php\\\/author\\\/cpiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Sandbox Snapshots: Run State and Session State","description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/","og_locale":"en_US","og_type":"article","og_title":"Sandbox Snapshots: Run State and Session State","og_description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","og_url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/","og_site_name":"CPI Consulting","article_published_time":"2026-08-01T10:01:47+00:00","article_modified_time":"2026-08-01T10:03:01+00:00","author":"CPI Staff","twitter_card":"summary_large_image","twitter_title":"Sandbox Snapshots: Run State and Session State","twitter_description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","twitter_misc":{"Written by":"CPI Staff","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#article","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/"},"author":{"name":"CPI Staff","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e"},"headline":"Understanding Run State Session State and Secure Sandbox Snapshots","datePublished":"2026-08-01T10:01:47+00:00","dateModified":"2026-08-01T10:03:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/"},"wordCount":1443,"commentCount":0,"publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2026\/08\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png","articleSection":["AI Agents","AI Governance &amp; Risk Management","Blog","Cloud Cost &amp; FinOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/","url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/","name":"Sandbox Snapshots: Run State and Session State","isPartOf":{"@id":"https:\/\/www.cloudproinc.com.au\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#primaryimage"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2026\/08\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png","datePublished":"2026-08-01T10:01:47+00:00","dateModified":"2026-08-01T10:03:01+00:00","description":"Sandbox snapshots, run state and session state help AI agents resume work safely, avoid duplicate actions, control costs and recover after interruptions.","breadcrumb":{"@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#primaryimage","url":"\/wp-content\/uploads\/2026\/08\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png","contentUrl":"\/wp-content\/uploads\/2026\/08\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png","width":1536,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/08\/01\/understanding-run-state-session-state-and-secure-sandbox-snapshots\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudproinc.com.au\/"},{"@type":"ListItem","position":2,"name":"Understanding Run State Session State and Secure Sandbox Snapshots"}]},{"@type":"WebSite","@id":"https:\/\/www.cloudproinc.com.au\/#website","url":"https:\/\/www.cloudproinc.com.au\/","name":"Cloud Pro Inc - CPI Consulting Pty Ltd","description":"Cloud, AI &amp; Cybersecurity Consulting | Melbourne","publisher":{"@id":"https:\/\/www.cloudproinc.com.au\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudproinc.com.au\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cloudproinc.com.au\/#organization","name":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd","url":"https:\/\/www.cloudproinc.com.au\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/","url":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","contentUrl":"\/wp-content\/uploads\/2022\/01\/favfinalfile.png","width":500,"height":500,"caption":"Cloud Pro Inc - Cloud Pro Inc - CPI Consulting Pty Ltd"},"image":{"@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.cloudproinc.com.au\/#\/schema\/person\/192eeeb0ce91062126ce3822ae88fe6e","name":"CPI Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2d96eeb53b791d92c8c50dd667e3beec92c93253bb6ff21c02cfa8ca73665c70?s=96&d=mm&r=g","caption":"CPI Staff"},"sameAs":["http:\/\/www.cloudproinc.com.au"],"url":"https:\/\/www.cloudproinc.com.au\/index.php\/author\/cpiadmin\/"}]}},"jetpack_featured_media_url":"\/wp-content\/uploads\/2026\/08\/understanding-run-state-session-state-and-secure-sandbox-snapshots.png","jetpack-related-posts":[{"id":57419,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/04\/09\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk\/","url_meta":{"origin":58206,"position":0},"title":"What Claude Managed Agents Means for Enterprise AI Governance and Vendor Risk","author":"CPI Staff","date":"April 9, 2026","format":false,"excerpt":"Anthropic just revealed the architecture behind Claude Managed Agents. For any organisation deploying AI agents in production, the engineering decisions they made carry real implications for governance, security, and vendor risk. Here is what Australian IT leaders need to understand \u2014 and what questions they should be asking right now.\u2026","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png 1x, \/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png 1.5x, \/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png 2x, \/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png 3x, \/wp-content\/uploads\/2026\/04\/what-claude-managed-agents-means-for-enterprise-ai-governance-and-vendor-risk-cover.png 4x"},"classes":[]},{"id":57813,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/08\/why-session-management-keeps-ai-business-automation-reliable\/","url_meta":{"origin":58206,"position":1},"title":"Why Session Management Keeps AI Business Automation Reliable","author":"CPI Staff","date":"July 8, 2026","format":false,"excerpt":"AI automation fails when it loses context, mixes tasks or forgets approvals. Session management keeps AI workflows reliable, secure, auditable and cost-controlled.","rel":"","context":"In &quot;Blog&quot;","block_context":{"text":"Blog","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/blog\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png 1x, \/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png 1.5x, \/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png 2x, \/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png 3x, \/wp-content\/uploads\/2026\/07\/why-session-management-keeps-ai-business-automation-reliable.png 4x"},"classes":[]},{"id":58166,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/30\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster\/","url_meta":{"origin":58206,"position":2},"title":"How Exposed Ports Make AI App and Report Reviews Safer and Faster","author":"CPI Staff","date":"July 30, 2026","format":false,"excerpt":"Exposed ports give stakeholders a secure, browser-based preview of AI-generated apps and reports before production, helping teams catch errors, reduce risk and approve useful ideas faster.","rel":"","context":"In &quot;AI Coding Agents&quot;","block_context":{"text":"AI Coding Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-coding-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png 1x, \/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png 1.5x, \/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png 2x, \/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png 3x, \/wp-content\/uploads\/2026\/07\/how-exposed-ports-make-ai-app-and-report-reviews-safer-and-faster.png 4x"},"classes":[]},{"id":58085,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/27\/what-multi-turn-state-means-for-your-openai-agent-in-practice\/","url_meta":{"origin":58206,"position":3},"title":"What Multi-Turn State Means for Your OpenAI Agent in Practice","author":"CPI Staff","date":"July 27, 2026","format":false,"excerpt":"Multi-turn state helps an OpenAI agent continue a task without repeatedly asking for the same information. Here is what it means for cost, security and reliability.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png 1x, \/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png 1.5x, \/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png 2x, \/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png 3x, \/wp-content\/uploads\/2026\/07\/what-multi-turn-state-means-for-your-openai-agent-in-practice.png 4x"},"classes":[]},{"id":58008,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/23\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents\/","url_meta":{"origin":58206,"position":4},"title":"High Availability and Disaster Recovery for Microsoft Foundry Agents","author":"CPI Staff","date":"July 23, 2026","format":false,"excerpt":"Learn how to keep Microsoft Foundry agents available during outages, protect their data and build a practical recovery plan without creating unnecessary cost or complexity.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png 1x, \/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png 1.5x, \/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png 2x, \/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png 3x, \/wp-content\/uploads\/2026\/07\/high-availability-and-disaster-recovery-for-microsoft-foundry-agents.png 4x"},"classes":[]},{"id":58170,"url":"https:\/\/www.cloudproinc.com.au\/index.php\/2026\/07\/31\/why-hosted-agents-make-production-ai-easier-for-small-businesses\/","url_meta":{"origin":58206,"position":5},"title":"Why Hosted Agents Make Production AI Easier for Small Businesses","author":"CPI Staff","date":"July 31, 2026","format":false,"excerpt":"Hosted agents remove much of the infrastructure burden behind production AI, helping smaller businesses launch secure, reliable agents without building an enterprise-sized operations team.","rel":"","context":"In &quot;AI Agents&quot;","block_context":{"text":"AI Agents","link":"https:\/\/www.cloudproinc.com.au\/index.php\/category\/ai-agents\/"},"img":{"alt_text":"","src":"\/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png","width":350,"height":200,"srcset":"\/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png 1x, \/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png 1.5x, \/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png 2x, \/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png 3x, \/wp-content\/uploads\/2026\/07\/why-hosted-agents-make-production-ai-easier-for-small-businesses.png 4x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/58206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=58206"}],"version-history":[{"count":1,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/58206\/revisions"}],"predecessor-version":[{"id":58207,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/posts\/58206\/revisions\/58207"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media\/58208"}],"wp:attachment":[{"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=58206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=58206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudproinc.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=58206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}