Skip to content

Commit 1dffd0d

Browse files
authored
Merge pull request #411 from depot/fix/resume-local-session
fix: resuming a local session should not create a new session
2 parents d050c75 + d239f6a commit 1dffd0d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cmd/claude/claude.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ Subcommands:
221221
orgID = config.GetCurrentOrganization()
222222
}
223223

224+
if resumeSessionID != "" && sessionID == "" {
225+
sessionID = resumeSessionID
226+
}
227+
224228
opts := &ClaudeSessionOptions{
225229
SessionID: sessionID,
226230
OrgID: orgID,
@@ -233,10 +237,6 @@ Subcommands:
233237
Stderr: os.Stderr,
234238
}
235239

236-
if resumeSessionID != "" && sessionID == "" {
237-
sessionID = resumeSessionID
238-
}
239-
240240
if !local {
241241
// Check if we're already in a sandbox - prevent recursive remote sessions
242242
if sandboxID != "" {

0 commit comments

Comments
 (0)