fix(relay): guard QR smoke mode

This commit is contained in:
Peter Steinberger committed 2026-01-07 02:42:55 +00:00
1 parent ff102e2afa
commit 59cc15f3cc
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ async function main() {
// Smoke test for QR modules in bun-compiled binaries.
// Verifies that QR code generation works in the bundled relay.
if (process.env.CLAWDBOT_SMOKE_QR === "1") {
if (process.env.CLAWDBOT_SMOKE_QR === "1" && args.length === 0) {
try {
const { renderQrPngBase64 } = await import("../web/qr-image.js");
await renderQrPngBase64("smoke-test");