Skip to content

minor: add async agent lifecycle support#14

Merged
manavanandani merged 3 commits into
codex/conformance-suite-v1from
codex/async-lifecycle-support
Jul 1, 2026
Merged

minor: add async agent lifecycle support#14
manavanandani merged 3 commits into
codex/conformance-suite-v1from
codex/async-lifecycle-support

Conversation

@manavanandani

@manavanandani manavanandani commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • await async @on_step and @on_reset hooks on one persistent SDK-managed event loop
  • preserve synchronous behavior across stdio and Streamable HTTP
  • add explicit --timeout controls with validated ECP_RPC_TIMEOUT fallback
  • add contextual RPC failure diagnostics
  • provide a runnable async Python example
  • cover async success, reset, exceptions, timeouts, stdio, HTTP, and conformance flows

Why

Most agent frameworks are async-first. ECP needs to await lifecycle hooks safely while retaining its synchronous server API and full compatibility with existing agents. Explicit timeouts prevent stalled agents from hanging local and CI evaluation runs.

Validation

  • compile verification passed
  • SDK suite passed
  • runtime suite passed
  • flagship customer-support evaluation passed 8/8 checks
  • stdio and Streamable HTTP async integrations passed
  • GitHub Actions passed across Python 3.9 through 3.13

Migration

No migration is required. Existing synchronous hooks and ECP_RPC_TIMEOUT behavior remain supported.

@manavanandani manavanandani marked this pull request as ready for review June 21, 2026 01:51
…support

# Conflicts:
#	runtime/python/src/ecp_runtime/cli.py
@manavanandani manavanandani changed the title Add async agent lifecycle support minor: add async agent lifecycle support Jul 1, 2026
@manavanandani manavanandani merged commit 36a7343 into codex/conformance-suite-v1 Jul 1, 2026
11 checks passed
@manavanandani manavanandani deleted the codex/async-lifecycle-support branch July 2, 2026 06:28
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