fix(bash): preserve configured shell behavior

This commit is contained in:
jb
2026-09-04 17:11:46 -04:00
parent 3cf354b74b
commit e1c5c55c15
4 changed files with 85 additions and 20 deletions
+4 -4
View File
@@ -4,15 +4,15 @@ Pi extension that adds an optional `cwd` argument to the built-in `bash` tool. A
The override delegates execution and rendering to Pi's built-in Bash implementation. Existing `command` and `timeout` calls remain compatible.
## Install
## Try from this checkout
```bash
pi install npm:@jbcode/pi-bash-cwd
pi -e ./extensions/bash-cwd/index.ts
```
Restart Pi or run `/reload` after installation. Pi warns that the extension replaces the built-in `bash` tool; that warning is expected.
Pi warns that the extension replaces the built-in `bash` tool; that warning is expected. The package is not published yet. After publication, install it with `pi install npm:@jbcode/pi-bash-cwd` and restart Pi or run `/reload`.
Use this package with Pi 0.84.x. Remove it after moving to a Pi release that honors `ctx.cwd` and can be imported by extensions without undeclared runtime dependencies.
Use this package with Pi 0.84.x. Remove it only after moving to a Pi release that exposes equivalent validated per-call `cwd` behavior and can be imported by extensions without undeclared runtime dependencies.
## Verify