@fnclaude/cli 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/args/preserve.ts +6 -0
package/package.json
CHANGED
package/src/args/preserve.ts
CHANGED
|
@@ -106,6 +106,12 @@ export function preserveArgs(
|
|
|
106
106
|
while (i < origArgs.length) {
|
|
107
107
|
const tok = origArgs[i] as string;
|
|
108
108
|
|
|
109
|
+
// `--` separates flags from the original session's initial prompt
|
|
110
|
+
// (everything after is the prompt body). Carrying it across a
|
|
111
|
+
// relaunch shadows the transfer's @summary file or re-prompts after
|
|
112
|
+
// --resume on restart — drop the separator and the entire tail.
|
|
113
|
+
if (tok === '--') break;
|
|
114
|
+
|
|
109
115
|
// Equals-form (--flag=value): match by the flag-prefix-before-= part.
|
|
110
116
|
if (deny !== null) {
|
|
111
117
|
const eq = tok.indexOf('=');
|