File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ sandbox.kill()
212212
213213## Resume a session
214214
215- Claude Code persists conversations that can be resumed with follow-up tasks using ` --session-id ` .
215+ Claude Code persists conversations that can be resumed with follow-up tasks using ` --resume ` .
216216
217217<CodeGroup >
218218``` typescript JavaScript & TypeScript
@@ -234,7 +234,7 @@ const sessionId = response.session_id
234234
235235// Continue with a follow-up task
236236const followUp = await sandbox .commands .run (
237- ` cd /home/user/repo && claude --dangerously-skip-permissions --session-id ${sessionId } -p "Now implement step 1 of the plan" ` ,
237+ ` cd /home/user/repo && claude --dangerously-skip-permissions --resume ${sessionId } -p "Now implement step 1 of the plan" ` ,
238238 { onStdout : (data ) => process .stdout .write (data ) }
239239)
240240
@@ -263,7 +263,7 @@ session_id = response["session_id"]
263263
264264# Continue with a follow-up task
265265follow_up = sandbox.commands.run(
266- f ' cd /home/user/repo && claude --dangerously-skip-permissions --session-id { session_id} -p "Now implement step 1 of the plan" ' ,
266+ f ' cd /home/user/repo && claude --dangerously-skip-permissions --resume { session_id} -p "Now implement step 1 of the plan" ' ,
267267 on_stdout = lambda data : print (data, end = " " ),
268268)
269269
You can’t perform that action at this time.
0 commit comments