fix(shell): separate wait, idle, and runtime limits (#6228)
* fix(shell): separate wait, idle, and runtime limits * fix(shell): separate wait, idle, and runtime limits * fix(exec): preserve settings aliases and reclaim completed sessions * fix(webui): make shell runtime limits explicit
This commit is contained in:
1 parent
70ac000ad9
commit
6310a39bac
36 files changed
+2392
-564
No files matched your search
@@ -51,7 +51,7 @@ async def test_exec_session_hard_timeout_kills_process_tree_without_polling(tmp_
|
||||
assert not late_write.exists(), "the descendant wrote after the hard timeout"
|
||||
assert session.process.returncode != 0
|
||||
|
||||
final = await session_tool.execute(session_id=sid, timeout_ms=0)
|
||||
final = await session_tool.execute(session_id=sid, until_exit=True, timeout_ms=2000)
|
||||
assert is_tool_error_result(final)
|
||||
assert "Command timed out; session was terminated." in final
|
||||
assert "parent started" in initial + final
|
||||
@@ -105,7 +105,7 @@ async def test_exec_session_zero_config_timeout_allows_unpolled_longer_process(t
|
||||
sid = _session_id(initial)
|
||||
await asyncio.wait_for(manager._sessions[sid].process.wait(), timeout=5)
|
||||
|
||||
final = await session_tool.execute(session_id=sid, timeout_ms=0)
|
||||
final = await session_tool.execute(session_id=sid, until_exit=True, timeout_ms=2000)
|
||||
assert not is_tool_error_result(final)
|
||||
assert "completed without deadline" in initial + final
|
||||
assert "Exit code: 0" in final
|
||||
|
||||
Reference in new issue
Block a user