You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: remove cwd from ResumeSessionOptions (CLI-72) (#42)
cwd on resumeSession was misleading: it only controlled subprocess startup
and was never sent to droid.load_session, so it could not change the resumed
session's working directory. Remove it from ResumeSessionOptions to make the
contract explicit: createSession uses the caller's cwd; resumeSession uses
the persisted session's cwd.
BREAKING CHANGE: resumeSession() no longer accepts cwd. To run in a different
directory, create a new session or fork the existing one.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
forawait (const msg offork.stream('What phrase did I ask you to remember?')) {
277
275
if (msg.type===DroidMessageType.AssistantTextDelta) {
@@ -458,7 +456,7 @@ Session creation options used by `run()` and `createSession()` include:
458
456
-**`askUserHandler`** — callback for interactive questions
459
457
-**`abortSignal`** — standard `AbortSignal` for cancellation
460
458
461
-
`resumeSession()` accepts the process, transport, handler, `cwd`, `mcpServers`, and `abortSignal` options needed to reconnect to an existing session, but does not accept new-session-only options such as `modelId` or `interactionMode`.
459
+
`resumeSession()` accepts the process, transport, handler, `mcpServers`, and `abortSignal` options needed to reconnect to an existing session, but does not accept new-session-only options such as `modelId` or `interactionMode`. `cwd` is intentionally not accepted on resume: the persisted session's working directory is always used. To run in a different directory, create a new session or fork the existing one.
462
460
463
461
Message APIs (`run()` and `session.stream()`) also accept:
0 commit comments