Skip to content

feat: make event bus keep-alive states configurable - #669

Merged
bartek-gralewicz merged 3 commits into
a2aproject:mainfrom
russlan23:agent/configure-event-bus-settlement-620
Aug 21, 2026
Merged

bartek-gralewicz merged 3 commits into
a2aproject:mainfrom
russlan23:agent/configure-event-bus-settlement-620

Conversation

@russlan23

Copy link
Copy Markdown
Contributor

Description

DefaultRequestHandler always cleaned up the execution event bus unless the final state was INPUT_REQUIRED or AUTH_REQUIRED. That prevents applications with persistent event buses from retaining a bus for additional states.

This change:

  • adds an exported DefaultRequestHandlerOptions type with keepBusAliveStates

  • preserves the existing interrupted-state list as the default

  • copies the configured states into a Set and uses it when settling the bus

  • covers a configured terminal state while retaining the existing default-cleanup test

  • Follow the CONTRIBUTING Guide.

  • Make the Pull Request title follow the Conventional Commits specification.

  • Ensure the tests and linter pass.

  • Appropriate docs were updated (the exported option includes API documentation).

Tests:

  • npm test (1,491 tests)
  • npm run lint:ci
  • npm run build
  • npm run test-build

Fixes #620

@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

🧪 Code Coverage

⬇️ Download Full Report

Base PR Delta
src/server/request_handler/default_request_handler.ts 87.82% 87.86% 🟢 +0.04%

Generated by coverage-comment.yml

@russlan23
russlan23 marked this pull request as ready for review August 20, 2026 20:31
@russlan23
russlan23 requested a review from a team as a code owner August 20, 2026 20:31

@bartek-gralewicz bartek-gralewicz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@bartek-gralewicz
bartek-gralewicz merged commit f844dad into a2aproject:main Aug 21, 2026
17 checks passed
This was referenced Aug 21, 2026
bartek-gralewicz added a commit that referenced this pull request Aug 26, 2026
🤖 I have created a release *beep* *boop*
---


## [1.1.0](v1.0.1...v1.1.0)
(2026-08-26)


### Features

* make event bus keep-alive states configurable
([#669](#669))
([f844dad](f844dad)),
closes [#620](#620)


### Bug Fixes

* Add serialization for listTasks input/output parameters.
([#610](#610))
([c863497](c863497))
* clone push notification configs before storing
([#662](#662))
([4d175a0](4d175a0))
* **compat/v0_3/translate:** add null and undefined checks to array and
string fields ([#618](#618))
([108736b](108736b))
* **deps:** replace `uuid` package with `crypto.randomUUID()`
([#665](#665))
([636b060](636b060))
* Do not filter tasks in ListTasks if task state is unspecified
([#622](#622))
([1c6eb32](1c6eb32))
* **errors:** global error branding via Symbol.hasInstance to fix
instanceof checks across bundle entry points
([#612](#612))
([cc33173](cc33173))
* **scripts:** update generate script to use buf and remove obsolete
generateTypes ([#653](#653))
([8bf3cd3](8bf3cd3))
* **server:** send full Task on every v0.3 push trigger
([#658](#658))
([b3afbe4](b3afbe4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: bartek-gralewicz <[email protected]>
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.

[Clarification]: Evetbus is closed directly after executor has finished

2 participants