Skip to content

Commit a892fb4

Browse files
committed
fix custom shell when streaming
1 parent 4550a64 commit a892fb4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/agents/CommandStream.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const props = defineProps({
2828
agentId: { type: String, required: true },
2929
cmd: { type: String, required: true },
3030
shell: { type: String, required: true },
31+
custom_shell: { type: String, required: false },
3132
timeout: { type: Number, default: 10 },
3233
});
3334
@@ -77,7 +78,7 @@ onMounted(() => {
7778
cmd: props.cmd,
7879
timeout: props.timeout,
7980
run_as_user: false,
80-
custom_shell: "",
81+
custom_shell: props.custom_shell,
8182
stream: true,
8283
cmd_id: cmdId,
8384
}),

src/components/modals/agents/SendCommand.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
:agent-id="agent.agent_id"
124124
:cmd="streamCmd"
125125
:shell="state.shell"
126+
:custom_shell="state.custom_shell"
126127
:timeout="state.timeout"
127128
@updateOutput="(val) => (streamOutput = val)"
128129
@streamLoaded="loading = false"

0 commit comments

Comments
 (0)