Skip to content

Commit 0d32fb9

Browse files
authored
Fix Claude Code session resume flag from --session-id to --resume (#185)
1 parent e836d29 commit 0d32fb9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/agents/claude-code.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
236236
const 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
265265
follow_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

0 commit comments

Comments
 (0)