Repository navigation
Fix agent resume when saved cwd is deleted #4859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f2f1302
739e349
05146ab
900eabf
b45f0ff
24721ce
d67a2f0
cffd214
da06cd8
bb5c757
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -47,7 +47,8 @@ extension CMUXCLI { | |||||||||||||||||||
|
|
||||||||||||||||||||
| var pieces: [String] = [] | ||||||||||||||||||||
| if let trimmedCwd, !trimmedCwd.isEmpty { | ||||||||||||||||||||
| pieces.append("cd -- \(tmuxShellQuote(resolvePath(trimmedCwd)))") | ||||||||||||||||||||
| let quotedCwd = tmuxShellQuote(resolvePath(trimmedCwd)) | ||||||||||||||||||||
| pieces.append("cd -- \(quotedCwd)") | ||||||||||||||||||||
| } | ||||||||||||||||||||
| if !commandText.isEmpty { | ||||||||||||||||||||
| pieces.append(commandText) | ||||||||||||||||||||
|
|
@@ -202,7 +203,8 @@ extension CMUXCLI { | |||||||||||||||||||
| "rm -f -- \"$0\" 2>/dev/null || true" | ||||||||||||||||||||
| ] | ||||||||||||||||||||
| if let cwd = cwd?.trimmingCharacters(in: .whitespacesAndNewlines), !cwd.isEmpty { | ||||||||||||||||||||
| lines.append("cd -- \(tmuxShellQuote(resolvePath(cwd))) || exit $?") | ||||||||||||||||||||
| let quotedCwd = tmuxShellQuote(resolvePath(cwd)) | ||||||||||||||||||||
| lines.append("cd -- \(quotedCwd) || exit $?") | ||||||||||||||||||||
| } | ||||||||||||||||||||
|
Comment on lines
205
to
208
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
| lines.append("exec \"${SHELL:-/bin/sh}\" -lc \(tmuxShellQuote(commandText))") | ||||||||||||||||||||
| do { | ||||||||||||||||||||
|
|
||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.