Replies: 4 comments
|
I don't think this works today, but it should be fixeable /cc @baxen -- send us a PR? also this would be good to discuss on Discord |
|
There isn't a config knob today that tells goose “generate fish syntax”. The shell tool is effectively being used with bash/POSIX assumptions, so running it under fish is going to keep producing mismatches. Best workaround is to start goose with a POSIX shell in env SHELL=/bin/bash gooseor, if you prefer zsh: env SHELL=/bin/zsh gooseThat won’t make goose generate fish syntax, but it should stop bash-style commands from being executed by fish. A proper fix would likely be either making the shell used by the tool configurable, or passing the active shell info into the model/tool prompt so it can generate compatible commands. |
|
To share with someones running into the same issue, I create a ~/.local/bin/goose file with this content: #!/bin/sh
SHELL=/usr/bin/bash ~/.local/share/mise/installs/github-aaif-goose-goose/latest/goose "$@"Make the file executable. This file is necessary if we run Goose indirectly as ACP server (like via Toad). The "mise/installs/github-aaif-goose-goose" path is because I installed Goose via Update:
|
|
The |
Uh oh!
There was an error while loading. Please reload this page.
My primary shell is Fish. But when goose needs to run some shell command, it always write it in Bash syntax and run in Fish, getting syntax errors. Even after hitting so many syntax errors, it still keep writing command in Bash syntax.
Is there a way to configure goose to use Fish syntax?
All reactions