Skip to content

Commit 9f25d0b

Browse files
kwonah0claude
andcommitted
Change default shell command from bash to echo
- Updated all three IPC handlers (get-config, test-shell-agent, execute-shell-ai-command) - Changed command from 'bash' to 'echo' - Updated args from ['-c', 'echo "[DTUI-SHELL]:"; cat'] to ['[DTUI-SHELL]:'] - Fixed template to properly quote the output: '{command} "{args} {prompt}"' 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 81731a8 commit 9f25d0b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

electron/main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ ipcMain.handle('get-config', async () => {
469469
ai: {
470470
provider: 'shell',
471471
shell: {
472-
command: 'bash',
473-
args: ['-c', 'echo "[DTUI-SHELL]:"; cat'],
474-
template: '{command} {args} <<< "{prompt}"',
472+
command: 'echo',
473+
args: ['[DTUI-SHELL]:'],
474+
template: '{command} {args} "{prompt}"',
475475
timeout: 10000,
476476
streaming: false,
477477
outputFormat: {
@@ -584,9 +584,9 @@ ipcMain.handle('test-shell-agent', async () => {
584584
ai: {
585585
provider: 'shell',
586586
shell: {
587-
command: 'bash',
588-
args: ['-c', 'echo "[DTUI-SHELL]:"; cat'],
589-
template: '{command} {args} <<< "{prompt}"',
587+
command: 'echo',
588+
args: ['[DTUI-SHELL]:'],
589+
template: '{command} "{args} {prompt}"',
590590
timeout: 10000,
591591
streaming: false,
592592
outputFormat: {
@@ -706,9 +706,9 @@ ipcMain.handle('execute-shell-ai-command', async (_, prompt) => {
706706
ai: {
707707
provider: 'shell',
708708
shell: {
709-
command: 'bash',
710-
args: ['-c', 'echo "[DTUI-SHELL]:"; cat'],
711-
template: '{command} {args} <<< "{prompt}"',
709+
command: 'echo',
710+
args: ['[DTUI-SHELL]:'],
711+
template: '{command} "{args} {prompt}"',
712712
timeout: 10000,
713713
streaming: false,
714714
outputFormat: {

0 commit comments

Comments
 (0)