Skip to content

Commit df30135

Browse files
committed
Fixed cwd issue
1 parent cd783d9 commit df30135

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/wcgw/client/bash_state/bash_state.py

+2
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ def update_cwd(self) -> str:
427427
before_val = str(before_val)
428428
before_lines = render_terminal_output(before_val)
429429
current_dir = "\n".join(before_lines).strip()
430+
if current_dir.startswith("pwd"):
431+
current_dir = current_dir[3:].strip()
430432
self._cwd = current_dir
431433
return current_dir
432434

0 commit comments

Comments
 (0)