2 hours ago · Tech · hide · 0 comments

♠ Today I learned: pi 0.82.1 cannot change its working directory mid-session. The interactive shell syntax looks tempting, but ! and !! run commands in a child process. cd ends with that process; Pi keeps the session’s original cwd. There is no built-in /cd either: % pi --version 0.82.1 % docs="$(brew --prefix pi-coding-agent)/libexec/lib/node_modules/@earendil-works/pi-coding-agent/docs" % rg -n 'ctx\.(newSession|switchSession|changeCwd|switchCwd)' "$docs/extensions.md" 1109:### ctx.newSession(options?) 1117:const result = await ctx.newSession({ 1187:### ctx.switchSession(sessionPath, options?) 1192:const result = await ctx.switchSession("/path/to/session.jsonl", { 1220: await ctx.switchSession(choice, { 1247: await ctx.newSession({ 1262: await ctx.newSession({ % rg -n '^\| `/[^|]+`' "$docs/usage.md" | tail -5 56:| `/share` | Upload as private GitHub gist with shareable HTML link | 57:| `/reload` | Reload keybindings, extensions, skills, prompts, themes, and context files | 58:|…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.