[{"data":1,"prerenderedAt":274},["ShallowReactive",2],{"docs-page:\u002Fdocs\u002Fresuming-chats":3,"docs-navigation-links":242},{"id":4,"title":5,"body":6,"description":234,"extension":235,"meta":236,"navigation":237,"path":238,"seo":239,"stem":240,"__hash__":241},"docs\u002Fdocs\u002Fresuming-chats.md","Resuming chats",{"type":7,"value":8,"toc":227},"minimark",[9,13,18,26,91,98,102,105,127,130,134,137,140,144,147,169,172,176,179,211,223],[10,11,12],"p",{},"A chat is designed for multi-turn work. Each turn runs in the chat's sandbox,\nthen the sandbox is stopped until the next turn.",[14,15,17],"h2",{"id":16},"resume-request","Resume request",[10,19,20,21,25],{},"Send the previous ",[22,23,24],"code",{},"chat_id",", a new prompt, and the provider credential needed\nfor this run:",[27,28,33],"pre",{"className":29,"code":30,"language":31,"meta":32,"style":32},"language-json shiki shiki-themes github-dark","{\n  \"chat_id\": \"01K...\",\n  \"prompt\": \"Review your previous change and simplify the implementation.\",\n  \"provider_api_key\": \"sk-proj-...\"\n}\n","json","",[22,34,35,44,61,74,85],{"__ignoreMap":32},[36,37,40],"span",{"class":38,"line":39},"line",1,[36,41,43],{"class":42},"s95oV","{\n",[36,45,47,51,54,58],{"class":38,"line":46},2,[36,48,50],{"class":49},"sDLfK","  \"chat_id\"",[36,52,53],{"class":42},": ",[36,55,57],{"class":56},"sU2Wk","\"01K...\"",[36,59,60],{"class":42},",\n",[36,62,64,67,69,72],{"class":38,"line":63},3,[36,65,66],{"class":49},"  \"prompt\"",[36,68,53],{"class":42},[36,70,71],{"class":56},"\"Review your previous change and simplify the implementation.\"",[36,73,60],{"class":42},[36,75,77,80,82],{"class":38,"line":76},4,[36,78,79],{"class":49},"  \"provider_api_key\"",[36,81,53],{"class":42},[36,83,84],{"class":56},"\"sk-proj-...\"\n",[36,86,88],{"class":38,"line":87},5,[36,89,90],{"class":42},"}\n",[10,92,93,94,97],{},"Do not create a second turn until the current one reaches a terminal status.\nConcurrent turns in the same chat return ",[22,95,96],{},"409",".",[14,99,101],{"id":100},"what-carries-over","What carries over",[10,103,104],{},"The chat retains:",[106,107,108,112,115,118,121,124],"ul",{},[109,110,111],"li",{},"harness and model;",[109,113,114],{},"system prompt;",[109,116,117],{},"MCP servers;",[109,119,120],{},"CPU, memory, and disk selection;",[109,122,123],{},"sandbox filesystem while that sandbox remains available;",[109,125,126],{},"agent session context from earlier turns.",[10,128,129],{},"The harness is launched in resume mode after the first turn.",[14,131,133],{"id":132},"sandbox-replacement","Sandbox replacement",[10,135,136],{},"Cloud sandboxes are not assumed to live forever. If Epho cannot restart the\noriginal sandbox, it creates a replacement and restores the most recent agent\nsession snapshot uploaded by an earlier turn.",[10,138,139],{},"This lets the harness recover its conversational session even when the original\ncompute environment is gone. Files that only existed in an unavailable sandbox\nare not guaranteed to be reconstructed; use repositories and output artifacts\nfor durable inputs and outputs.",[14,141,143],{"id":142},"per-turn-values","Per-turn values",[10,145,146],{},"These values may change on every turn:",[106,148,149,154,159,164],{},[109,150,151],{},[22,152,153],{},"prompt",[109,155,156],{},[22,157,158],{},"provider_api_key",[109,160,161],{},[22,162,163],{},"repos",[109,165,166],{},[22,167,168],{},"input_files",[10,170,171],{},"Repository tokens are therefore easy to refresh on a resumed run, and new\nrepositories or attachments can be introduced later in the conversation.",[14,173,175],{"id":174},"chat-level-values","Chat-level values",[10,177,178],{},"Treat these as creation-time settings:",[106,180,181,186,191,196,201,206],{},[109,182,183],{},[22,184,185],{},"harness",[109,187,188],{},[22,189,190],{},"model",[109,192,193],{},[22,194,195],{},"system_prompt",[109,197,198],{},[22,199,200],{},"instance",[109,202,203],{},[22,204,205],{},"env",[109,207,208],{},[22,209,210],{},"mcp_servers",[10,212,213,214,216,217,219,220,222],{},"The existing values are inherited on resume. ",[22,215,205],{}," and ",[22,218,210],{}," are\nexplicitly rejected if supplied with ",[22,221,24],{},"; omit the other chat-level\nfields because they do not reconfigure the existing chat.",[224,225,226],"style",{},"html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":32,"searchDepth":46,"depth":46,"links":228},[229,230,231,232,233],{"id":16,"depth":46,"text":17},{"id":100,"depth":46,"text":101},{"id":132,"depth":46,"text":133},{"id":142,"depth":46,"text":143},{"id":174,"depth":46,"text":175},"Continue a coding-agent session across turns and sandbox replacements.","md",{},true,"\u002Fdocs\u002Fresuming-chats",{"title":5,"description":234},"docs\u002Fresuming-chats","WK8EKVxuseN_ufY6LK1QVzMls1UFT-TCFmEgaNPA9Ww",[243,246,249,252,255,258,261,264,267,270,271],{"path":244,"title":245},"\u002Fdocs","Overview",{"path":247,"title":248},"\u002Fdocs\u002Fauthentication","Authentication",{"path":250,"title":251},"\u002Fdocs\u002Fchats-and-turns","Chats and turns",{"path":253,"title":254},"\u002Fdocs\u002Ferrors","Errors and statuses",{"path":256,"title":257},"\u002Fdocs\u002Ffiles-and-repositories","Files and repositories",{"path":259,"title":260},"\u002Fdocs\u002Fharnesses-and-models","Harnesses and models",{"path":262,"title":263},"\u002Fdocs\u002Fmcp-and-environment","MCP and environment",{"path":265,"title":266},"\u002Fdocs\u002Fquickstart","Quickstart",{"path":268,"title":269},"\u002Fdocs\u002Fresources-and-billing","Resources and billing",{"path":238,"title":5},{"path":272,"title":273},"\u002Fdocs\u002Frunning-agents","Running agents",1785310516454]