Skip to content

Commit cde8af3

Browse files
committed
Hint again using sub-shells
Fixes microsoft#271351
1 parent f2529aa commit cde8af3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function createPowerShellModelDescription(shell: string): string {
6060
// doesn't parse `&&`. See https://github.com/airbus-cert/tree-sitter-powershell/issues/27
6161
'- Use semicolons ; to chain commands on one line, NEVER use && even when asked explicitly',
6262
'- Prefer pipelines | for object-based data flow',
63+
'- Never create a sub-shell (eg. powershell -c "command") unless explicitly asked',
6364
'',
6465
'Directory Management:',
6566
'- Must use absolute paths to avoid navigation issues',
@@ -97,6 +98,7 @@ Command Execution:
9798
- Does NOT support multi-line commands
9899
- Use && to chain simple commands on one line
99100
- Prefer pipelines | over temporary files for data flow
101+
- Never create a sub-shell (eg. bash -c "command") unless explicitly asked
100102
101103
Directory Management:
102104
- Must use absolute paths to avoid navigation issues

0 commit comments

Comments
 (0)