fix(shell): explicitly set PAGER=cat when rcFile is not used

This commit is contained in:
jacob314
2026-04-20 11:50:24 -07:00
parent dc82a395ac
commit 66abea7a0e
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -466,6 +466,8 @@ export class ShellToolInvocation extends BaseToolInvocation<
const rcFilePath = this.context.config.getShellToolRcFile();
if (rcFilePath) {
strippedCommandWithRc = `source ${rcFilePath} && ${strippedCommand}`;
} else if (!isWindows) {
strippedCommandWithRc = `export PAGER=cat GIT_PAGER=cat; more() { cat "$@"; }; less() { cat "$@"; }; ${strippedCommand}`;
}
try {