fix: preserve cron delivery awareness for target sessions (#93580) · openclaw/openclaw@81abc2b
scotthuang
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,8 +5,8 @@ import fs from "node:fs/promises";
|
5 | 5 | import { createServer, type Server } from "node:http"; |
6 | 6 | import os from "node:os"; |
7 | 7 | import path from "node:path"; |
8 | | -import { createPnpmRunnerSpawnSpec } from "../../../scripts/pnpm-runner.mjs"; |
9 | 8 | import { afterEach, describe, expect, it } from "vitest"; |
| 9 | +import { createPnpmRunnerSpawnSpec } from "../../../scripts/pnpm-runner.mjs"; |
10 | 10 | import { createNodeEvalArgs } from "../../../src/test-utils/node-process.js"; |
11 | 11 | |
12 | 12 | type CommandResult = { |
@@ -123,8 +123,9 @@ function runPnpmCommand(
|
123 | 123 | pnpmArgs: args, |
124 | 124 | stdio: ["ignore", "pipe", "pipe"], |
125 | 125 | }); |
| 126 | +const cwd = typeof spec.options.cwd === "string" ? spec.options.cwd : options.cwd; |
126 | 127 | return runCommand(spec.command, spec.args, { |
127 | | -cwd: spec.options.cwd ?? options.cwd, |
| 128 | + cwd, |
128 | 129 | env: spec.options.env, |
129 | 130 | shell: spec.options.shell, |
130 | 131 | timeoutMs: options.timeoutMs, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。