Skip to content

Provide default chat run control#238

Merged
chubes4 merged 4 commits into
mainfrom
feat/chat-run-control-capabilities
May 29, 2026
Merged

Provide default chat run control#238
chubes4 merged 4 commits into
mainfrom
feat/chat-run-control-capabilities

Conversation

@chubes4
Copy link
Copy Markdown
Contributor

@chubes4 chubes4 commented May 29, 2026

Summary

  • Makes chat run control default in Agents API instead of a separate capability probe.
  • Stores generic run status for agents/chat, supports best-effort cancellation, and accepts queued follow-up messages when no runtime-specific handler is registered.
  • Lets runtimes override status/cancel/queue hooks only when they can provide stronger behavior, while clients can rely on the canonical abilities by default.

Verification

  • git diff --check
  • php tests/chat-run-control-smoke.php
  • php -l src/Runtime/class-wp-agent-chat-run-control.php && php -l src/Channels/register-agents-chat-run-control-abilities.php && php -l src/Channels/register-agents-chat-ability.php && php -l src/Runtime/class-wp-agent-conversation-loop.php && php -l tests/chat-run-control-smoke.php
  • composer test

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Revised the run-control implementation from a capability-probe model to default generic support, updated docs/tests, and ran validation. Chris remains responsible for review and merge.

@chubes4 chubes4 changed the title Expose chat run-control capability probe Provide default chat run control May 29, 2026
@chubes4 chubes4 merged commit a596c22 into main May 29, 2026
2 checks passed
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