Back to Signal Feed
CodeTracked since May 19, 2026

Wrap agent launch commands in bash -c for cross-shell startup compatibility

The PR changes Superset’s generated agent launch command path so argv-based prompt launches are wrapped in `bash -c '...'` with portable quoting, fixing fish shell parse failures (`<<` being treated as invalid redirection) while leaving stdin-with-file launches unwrapped with POSIX `<` redirection.

Supersetagent launch commandfish shellbash -c wrapper

What Happened

  • The PR changes Superset’s generated agent launch command path so argv-based prompt launches are wrapped in `bash -c '...'` with portable quoting, fixing fish shell parse failures (`<<` being treated as invalid redirection) while leaving stdin-with-file launches unwrapped with POSIX `<` redirection.
  • The PR changes Superset’s generated agent launch command path so argv-based prompt launches are wrapped in `bash -c '...'` with portable quoting, fixing fish shell parse failures (`<<` being treated as invalid redirection) while leaving stdin-with-file launches unwrapped with POSIX `<` redirection.
  • 1 evidence item attached for review.

What is Different

Before

Scattered source updates, isolated context, and manual follow-up across multiple feeds.

Now

Added a concrete compatibility fix in `packages/shared/src/agent-prompt-launch.ts` that wraps argv-transport prompt and argv-file launch commands in `bash -c '...'` and uses safe `'`-style single-quote escaping, and added focused regression coverage in `packages/shared/src/agent-prompt-launch.test.ts` plus expectation updates in related launch tests.

Why Track This

Why It Matters

Developers and operators starting Superset AI agents from fish or other non-bash shells should be able to launch reliably instead of being blocked by immediate shell errors, so day-to-day agent workflows become less brittle and less likely to fail before any actual task work begins. The change enforces a shell-agnostic execution path for heredoc/cmd-substitution commands while keeping stdin-with-file launches untouched via `<` for cleaner compatibility, and should be monitored for any quoting edge cases or unexpected behavior in unusual prompt content and additional shell environments.

Impact

Developers and operators starting Superset AI agents from fish or other non-bash shells should be able to launch reliably instead of being blocked by immediate shell errors, so day-to-day agent workflows become less brittle and less likely to fail before any actual task work begins. The change enforces a shell-agnostic execution path for heredoc/cmd-substitution commands while keeping stdin-with-file launches untouched via `<` for cleaner compatibility, and should be monitored for any quoting edge cases or unexpected behavior in unusual prompt content and additional shell environments.

What To Watch Next

  • Watch whether Superset becomes a repeated pattern.
  • Track follow-up changes around AI Agents.
  • Compare future signals against this evidence trail.
  • Re-check risk flags: fish_parse_error_regression_after_wrapping, quote_escaping_edge_cases.
Open Topic TimelineOpen Technical EventOpen Original Sourcefish_parse_error_regression_after_wrapping / quote_escaping_edge_cases / zsh_or_other_shell_behavior_changes / incomplete_cross_shell_test_coverage

Supporting Evidence