Skip to content

fix: handle ProcessLookupError on stdio shutdown and remove unmatched v1 AuthMethod map key - #211

Merged
PsiACE merged 1 commit into
mainfrom
fix/stdio-shutdown-race-and-v1-map-warning
Nov 28, 2026
Merged

PsiACE merged 1 commit into
mainfrom
fix/stdio-shutdown-race-and-v1-map-warning

Conversation

@PsiACE

@PsiACE PsiACE commented Nov 28, 2026

Copy link
Copy Markdown
Member

Fixes two pre-existing CI issues observed on main:

  • Stdio shutdown race (src/acp/transports.py): Suppress ProcessLookupError around process.terminate() and process.kill() in spawn_stdio_transport so a subprocess exiting right as asyncio.wait_for(process.wait(), timeout=shutdown_timeout) expires finishes cleanly (fixes flaky tests/real_user/test_stdio_shutdown.py::test_shutdown_with_unread_stdin[False] on Python 3.11).
  • Schema generator warning (scripts/gen_schema_v1.py): Remove the unmatched "AgentAuthMethod" entry from the v1 AuthMethod variant_model_map (the second AuthMethod branch generates AuthMethodAgent directly), eliminating the datamodel-code-generator UserWarning with byte-identical generated src/acp/schema.py.

Verification

  • make gen-check (0 warnings, clean diff)
  • make check passed
  • make test (677 passed, 1 skipped, 0 warnings)

@PsiACE
PsiACE merged commit 132a02a into main Nov 28, 2026
9 checks passed
@PsiACE
PsiACE deleted the fix/stdio-shutdown-race-and-v1-map-warning branch November 28, 2026 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant