ruvnet/ruflo · error

bd stderr output

Error message

bd stderr output

What it means

Log warning in execBd: the bd child process wrote to stderr (non-empty output) after being executed with validated args and shell:false; stderr is logged for diagnostics while stdout parsing continues.

Source

Thrown at v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts:482

        });

        const { stdout, stderr } = await execFileAsync(
          this.config.bdPath,
          validatedArgs,
          {
            cwd: this.config.cwd,
            env: this.config.env,
            timeout: this.config.timeout,
            maxBuffer: this.config.maxBuffer,
            shell: false, // CRITICAL: Never use shell
            windowsHide: true,
          }
        );

        const durationMs = Date.now() - startTime;

        if (stderr && stderr.trim()) {
          this.logger.warn('bd stderr output', { stderr });
        }

        const result: BdResult<string> = {
          success: true,
          data: stdout.trim(),
          command: 'bd',
          args: validatedArgs,
          durationMs,
        };

        // Cache successful results
        if (isCacheable && result.success) {
          staticCache.set(cacheKey, result);
        }

        return result;
      } catch (error: unknown) {
        const durationMs = Date.now() - startTime;

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Inspect the bd command stderr in the log; fix the bd invocation arguments or the bd binary environment.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/plugins/gastown-bridge/src/bridges/bd-bridge.ts:482 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/041880981b12556b. Report an issue: GitHub.