fix(cli): honor --no-prefix-cwd in acp · openclaw/openclaw@d7b23d5
extrasmall0
·
2026-05-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ export function registerAcpCli(program: Command) {
|
22 | 22 | .option("--session-label <label>", "Default session label to resolve") |
23 | 23 | .option("--require-existing", "Fail if the session key/label does not exist", false) |
24 | 24 | .option("--reset-session", "Reset the session key before first use", false) |
25 | | -.option("--no-prefix-cwd", "Do not prefix prompts with the working directory", false) |
| 25 | +.option("--no-prefix-cwd", "Do not prefix prompts with the working directory") |
26 | 26 | .option("--provenance <mode>", "ACP provenance mode: off, meta, or meta+receipt") |
27 | 27 | .option("-v, --verbose", "Verbose logging to stderr", false) |
28 | 28 | .addHelpText( |
@@ -44,7 +44,7 @@ export function registerAcpCli(program: Command) {
|
44 | 44 | defaultSessionLabel: opts.sessionLabel as string | undefined, |
45 | 45 | requireExistingSession: Boolean(opts.requireExisting), |
46 | 46 | resetSession: Boolean(opts.resetSession), |
47 | | -prefixCwd: !opts.noPrefixCwd, |
| 47 | +prefixCwd: opts.prefixCwd !== false, |
48 | 48 | provenanceMode, |
49 | 49 | verbose: Boolean(opts.verbose), |
50 | 50 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。