Skip to content

feat: add fish shell support for prompt bootstrap#49

Open
jsseoi wants to merge 1 commit intostandardagents:mainfrom
jsseoi:feat/fish-shell-support
Open

feat: add fish shell support for prompt bootstrap#49
jsseoi wants to merge 1 commit intostandardagents:mainfrom
jsseoi:feat/fish-shell-support

Conversation

@jsseoi
Copy link

@jsseoi jsseoi commented Mar 4, 2026

Summary

  • Add fish shell detection to buildPromptReadAndDeleteSnippet so prompt bootstrap uses set VAR value instead of VAR=value when the user's shell is fish
  • Requires fish 3.4+ for $() command substitution support

Context

Fish shell does not support VAR=value standalone assignment syntax. The existing buildPromptReadAndDeleteSnippet generates a shell snippet sent to tmux panes via send-keys. When the pane runs fish, the VAR=value syntax fails silently, causing the agent to launch without a prompt.

Other shell constructs used by dmux (&&, ||, $(), 2>/dev/null) are supported in fish 3.0+/3.4+, so only the variable assignment syntax needed a fish-specific code path.

Relates to #31

Test plan

  • pnpm run typecheck passes
  • pnpm run test passes (4 pre-existing failures unrelated to this change)
  • Tested manually with fish 4.5.0 — agent prompt delivery works correctly

🤖 Generated with Claude Code

Use fish-compatible `set VAR value` syntax instead of `VAR=value` when
the user's shell is fish. Requires fish 3.4+ for `$()` support.

Relates to standardagents#31

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant