Skip to content

Commit aeb7fed

Browse files
committed
fix runasuser when streaming
1 parent 42000c3 commit aeb7fed

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+
run_as_user: { type: Boolean, required: true },
3132
custom_shell: { type: String, required: false },
3233
timeout: { type: Number, default: 10 },
3334
});
@@ -77,7 +78,7 @@ onMounted(() => {
7778
shell: props.shell,
7879
cmd: props.cmd,
7980
timeout: props.timeout,
80-
run_as_user: false,
81+
run_as_user: props.run_as_user,
8182
custom_shell: props.custom_shell,
8283
stream: true,
8384
cmd_id: cmdId,

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+
:run_as_user="state.run_as_user"
126127
:custom_shell="state.custom_shell"
127128
:timeout="state.timeout"
128129
@updateOutput="(val) => (streamOutput = val)"

0 commit comments

Comments
 (0)