Skip to content

Commit

Permalink
Fixes: restricted mode in fallaback shell
Browse files Browse the repository at this point in the history
  • Loading branch information
rusiaaman committed Jan 17, 2025
1 parent 64388a6 commit 10e6580
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
name = "wcgw"
version = "2.8.0"
version = "2.8.1"
description = "Shell and coding agent on claude and chatgpt"
readme = "README.md"
requires-python = ">=3.11, <3.13"
Expand Down
8 changes: 4 additions & 4 deletions src/wcgw/client/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ def ask_confirmation(prompt: Confirmation) -> str:


def start_shell(is_restricted_mode: bool, initial_dir: str) -> pexpect.spawn: # type: ignore
try:
cmd = "/bin/bash"
if is_restricted_mode:
cmd += " -r"
cmd = "/bin/bash"
if is_restricted_mode:
cmd += " -r"

try:
shell = pexpect.spawn(
cmd,
env={**os.environ, **{"PS1": PROMPT}}, # type: ignore[arg-type]
Expand Down

0 comments on commit 10e6580

Please sign in to comment.