fix: keep SMS smoke progress visible with artifact output

This commit is contained in:
Codex
2026-07-03 23:38:15 +08:00
parent 03f9aa7ee8
commit bafaee48d5
2 changed files with 16 additions and 4 deletions

View File

@@ -229,8 +229,7 @@ async function runRemoteSmsLoginSmoke(inputConfig, options = {}) {
async function main() {
const options = parseArgs(process.argv.slice(2));
try {
const machineOutput = options.json || Boolean(options.writePath);
const result = await runRemoteSmsLoginSmoke({ ...buildConfig(), jsonOutput: machineOutput }, { quiet: options.quiet || machineOutput });
const result = await runRemoteSmsLoginSmoke({ ...buildConfig(), jsonOutput: options.json }, { quiet: options.quiet || options.json });
if (options.writePath) {
const resolvedPath = path.resolve(process.cwd(), options.writePath);
fs.mkdirSync(path.dirname(resolvedPath), { recursive: true });