Skip to content

Add canonical chat run lifecycle events#245

Merged
chubes4 merged 3 commits into
mainfrom
add/chat-run-events-244
May 29, 2026
Merged

Add canonical chat run lifecycle events#245
chubes4 merged 3 commits into
mainfrom
add/chat-run-events-244

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 29, 2026

Summary

  • Add the unopinionated agents/list-chat-run-events ability contract for client-addressable chat run lifecycle events.
  • Route event reads through a host/runtime-provided wp_agent_chat_run_events_handler; Agents API core does not persist lifecycle events or add new storage.
  • Preserve existing run-control behavior while normalizing handler output for run_id, session_id, status, events, cursor, and has_more.

Refs #244.

Testing

  • php -l src/Runtime/class-wp-agent-chat-run-control.php
  • php -l src/Runtime/class-wp-agent-conversation-loop.php
  • php -l src/Channels/register-agents-chat-run-control-abilities.php
  • php -l tests/chat-run-control-smoke.php
  • php -l tests/conversation-loop-events-smoke.php
  • php tests/chat-run-control-smoke.php
  • php tests/conversation-loop-events-smoke.php
  • homeboy lint --changed-since origin/main
  • composer test

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Drafting the implementation, smoke coverage, and PR description; Chris remains responsible for review and testing.

@chubes4 chubes4 merged commit 9e58f8b into main May 29, 2026
2 checks passed
@chubes4 chubes4 deleted the add/chat-run-events-244 branch May 29, 2026 23:52
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