komodo-core and komodo-periphery running 2.0.0 docker image
Assume a debian:bookworm container is running on "my-server":
docker run --name debug -it debian:bookworm /bin/sh
I'm trying to execute a command on this container using an Action, specifically the execute_container_terminal method of the typescript client. Thus from the UI I create an action with this content:
letshell="sh";// sh or bash
letserver="my-server";letcontainer="debug";letcommand="date";awaitkomodo.execute_container_terminal({server,container,command,init:{command: shell,recreate:"Always"},},{onLine:(line)=>{console.log(line);},onFinish:(code)=>{console.log(`Command finished with exit code ${code}`);},},);
Expected behavior
Using bash or sh, executing the action succeeds and the following output is produced:
Sat Mar 28 20:31:22 UTC 2026
Command finished with exit code 0
🦎 Action completed successfully 🦎
Actual behavior
Sometimes the command is executed incorrectly, resulting in the following output:
Updated behavior from "succeeds with bash but fails with sh" to "randomly fails"
Originally created by @bastienlc on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/moghtech/komodo/issues/1289
## Setting
*komodo-core and komodo-periphery running 2.0.0 docker image*
Assume a debian:bookworm container is running on "my-server":
```bash
docker run --name debug -it debian:bookworm /bin/sh
```
I'm trying to execute a command on this container using an Action, specifically the `execute_container_terminal` method of the typescript client. Thus from the UI I create an action with this content:
```ts
let shell = "sh"; // sh or bash
let server = "my-server";
let container = "debug";
let command = "date";
await komodo.execute_container_terminal(
{
server,
container,
command,
init: { command: shell, recreate: "Always" },
},
{
onLine: (line) => {
console.log(line);
},
onFinish: (code) => {
console.log(`Command finished with exit code ${code}`);
},
},
);
```
## Expected behavior
Using `bash` or `sh`, executing the action succeeds and the following output is produced:
```bash
Sat Mar 28 20:31:22 UTC 2026
Command finished with exit code 0
🦎 Action completed successfully 🦎
```
## Actual behavior
Sometimes the command is executed incorrectly, resulting in the following output:
```bash
'; date; rc=$?; printf '
Command finished with exit code %d
🦎 Action completed successfully 🦎
```
I have not been able to pinpoint exactly what causes this behavior to occur, currently it seems random.
## Initial analysis
While I'm not familiar with the komodo source code, the issue seems to stem from this snippet:
https://github.com/moghtech/komodo/blob/0f9679455911ce9f078e1d3654437ce4cda84eda/bin/periphery/src/api/terminal.rs#L466-L468
## Edits
- Updated behavior from "succeeds with bash but fails with sh" to "randomly fails"
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @bastienlc on GitHub (Mar 28, 2026).
Original GitHub issue: https://github.com/moghtech/komodo/issues/1289
Setting
komodo-core and komodo-periphery running 2.0.0 docker image
Assume a debian:bookworm container is running on "my-server":
I'm trying to execute a command on this container using an Action, specifically the
execute_container_terminalmethod of the typescript client. Thus from the UI I create an action with this content:Expected behavior
Using
bashorsh, executing the action succeeds and the following output is produced:Actual behavior
Sometimes the command is executed incorrectly, resulting in the following output:
I have not been able to pinpoint exactly what causes this behavior to occur, currently it seems random.
Initial analysis
While I'm not familiar with the komodo source code, the issue seems to stem from this snippet:
https://github.com/moghtech/komodo/blob/0f9679455911ce9f078e1d3654437ce4cda84eda/bin/periphery/src/api/terminal.rs#L466-L468
Edits