Skip to content

fix: add edge-case regressions for path and timeout handling#11214

Open
wttAIxyy wants to merge 2 commits into
NousResearch:mainfrom
wttAIxyy:fix/cross-platform-regression-tests
Open

fix: add edge-case regressions for path and timeout handling#11214
wttAIxyy wants to merge 2 commits into
NousResearch:mainfrom
wttAIxyy:fix/cross-platform-regression-tests

Conversation

@wttAIxyy

Copy link
Copy Markdown

Summary

  • add regression coverage for scoped lock PID probe when os.kill(pid, 0) raises OSError
  • treat OSError as stale-lock signal in acquire_scoped_lock to align with cross-platform process-probe behavior
  • add Copilot ACP regression test and timeout normalization so httpx.Timeout inputs no longer raise TypeError

Test plan

  • pytest tests/gateway/test_status.py::TestScopedLocks::test_acquire_scoped_lock_replaces_stale_when_kill_raises_oserror -q -o addopts=
  • pytest tests/agent/test_copilot_acp_client.py -q -o addopts=

Cover cross-platform exception branches in scoped lock PID probing and ensure Copilot ACP accepts httpx Timeout objects to prevent runtime type errors.

Made-with: Cursor
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder comp/gateway Gateway runner, session dispatch, delivery comp/acp Agent Communication Protocol adapter labels Apr 25, 2026
…atform-regression-tests

# Conflicts:
#	gateway/status.py
#	tests/agent/test_copilot_acp_client.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/acp Agent Communication Protocol adapter comp/agent Core agent loop, run_agent.py, prompt builder comp/gateway Gateway runner, session dispatch, delivery P3 Low — cosmetic, nice to have type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants