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
Honor --cwd in resume preflight and close quoted paths with trailing backslash
- task-resume-candidate now accepts --cwd/-C with the same validated
resolution as task, and the rescue preflight guidance forwards the
requested workspace so the continue/new-thread question is scoped to
the right repo
- In the raw-argument splitter, a backslash before a closing quote is
treated as a literal path separator when the quote is followed by
whitespace or end-of-input, so quoted Windows paths like
"C:\Program Files\Repo\" tokenize correctly while embedded
escaped quotes elsewhere keep their existing behavior
Copy file name to clipboardExpand all lines: plugins/codex/agents/codex-rescue.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Forwarding rules:
23
23
- If the user did not explicitly choose `--background` or `--wait`, prefer foreground for a small, clearly bounded rescue request.
24
24
- If the user did not explicitly choose `--background` or `--wait` and the task looks complicated, open-ended, multi-step, or likely to keep Codex running for a long time, prefer background execution.
25
25
- For any task expected to exceed a few minutes, add `--background` to the `task` invocation by default so a caller timeout cannot terminate it.
26
-
- Pass `--cwd <dir>` explicitly on every `task` invocation, using the intended workspace root forwarded by the caller.
26
+
-Treat `--cwd <dir>` and `-C <dir>` as workspace routing controls. Pass `--cwd <dir>` explicitly on every `task` invocation, using the intended workspace root forwarded by the caller.
27
27
- You may use the `gpt-5-4-prompting` skill only to tighten the user's request into a better Codex prompt before forwarding it.
28
28
- Do not use that skill to inspect the repository, reason through the problem yourself, draft a solution, or do any independent work beyond shaping the forwarded prompt text.
29
29
- Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, cancel jobs, summarize output, or do any follow-up work of your own.
- If neither flag is present, default to foreground.
19
19
-`--background` and `--wait` are execution flags for Claude Code. Do not forward them to `task`, and do not treat them as part of the natural-language task text.
20
20
-`--model` and `--effort` are runtime-selection flags. Preserve them for the forwarded `task` call, but do not treat them as part of the natural-language task text.
21
+
-`--cwd <dir>` and `-C <dir>` are workspace-routing flags. Preserve the directory for the resume preflight and the forwarded `task` call, but do not treat either form as part of the natural-language task text.
21
22
- If the request includes `--resume`, do not ask whether to continue. The user already chose.
22
23
- If the request includes `--fresh`, do not ask whether to continue. The user already chose.
23
24
- Otherwise, before starting Codex, check for a resumable rescue thread from this Claude session by running:
0 commit comments