Skip to content

Commit df2b245

Browse files
author
Aman Rusia
committed
Time out adjustments
1 parent 2e07c3b commit df2b245

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/wcgw/client/tools.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ def _get_exit_code() -> int:
135135
return 0
136136
# First reset the prompt in case venv was sourced or other reasons.
137137
SHELL.sendline(f"export PS1={PROMPT}")
138-
SHELL.expect(PROMPT, timeout=0.1)
138+
SHELL.expect(PROMPT, timeout=0.2)
139139
# Reset echo also if it was enabled
140140
SHELL.sendline("stty -icanon -echo")
141-
SHELL.expect(PROMPT, timeout=0.1)
141+
SHELL.expect(PROMPT, timeout=0.2)
142142
SHELL.sendline("echo $?")
143143
before = ""
144144
while not _is_int(before): # Consume all previous output
145145
try:
146-
SHELL.expect(PROMPT, timeout=0.1)
146+
SHELL.expect(PROMPT, timeout=0.2)
147147
except pexpect.TIMEOUT:
148148
print(f"Couldn't get exit code, before: {before}")
149149
raise
@@ -215,7 +215,7 @@ def update_repl_prompt(command: str) -> bool:
215215

216216
def get_cwd() -> str:
217217
SHELL.sendline("pwd")
218-
SHELL.expect(PROMPT, timeout=0.1)
218+
SHELL.expect(PROMPT, timeout=0.2)
219219
assert isinstance(SHELL.before, str)
220220
current_dir = render_terminal_output(SHELL.before).strip()
221221
return current_dir

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)