on main help sign in
sec: show persistent shell path in permission dialog (#916)

Currently it will always show the path of when it was started. Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

commit72dc56689031b5d79225e36ef6d85c6ddfcd3760 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateFri 29 Aug 2025, 10:12 (1 year ago) parent2ba1047
1 file changed+2−1
internal/llm/tools/bash.go+2−1
internal/llm/tools/bash.go+2−1
@@ -370,10 +370,11 @@ func (b *bashTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
370370 return ToolResponse{}, fmt.Errorf("session ID and message ID are required for executing shell command")
371371 }
372372 if !isSafeReadOnly {
373+ shell := shell.GetPersistentShell(b.workingDir)
373374 p := b.permissions.Request(
374375 permission.CreatePermissionRequest{
375376 SessionID: sessionID,
376− Path: b.workingDir,
377+ Path: shell.GetWorkingDir(),
377378 ToolCallID: call.ID,
378379 ToolName: BashToolName,
379380 Action: "execute",