Skip to content

Fixed async event queue behaviour #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Fixed async event queue behaviour #118

wants to merge 6 commits into from

Conversation

clriesco
Copy link
Contributor

@clriesco clriesco commented Jul 3, 2025

Description

Previously, sendMessage was delegated to default_request_handler, but we had some inconsistencies with async task management.

We have copied that functionality to paymentRequestHandler.ts file and now every event is processed accordingly.

Besides, when the received a task-update event that finishes the task, now its metadata is copied to the task.metadata attribute hence the user will be able to see the task cost breakdown

Is this PR related with an open issue?

Related to Issue #

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Follows the code style of this project.
  • Tests Cover Changes
  • Documentation

Funny gif

Put a link of a funny gif inside the parenthesis-->

@clriesco clriesco requested review from a team as code owners July 3, 2025 13:27
const incomingMessage = params.message

async sendMessage(params: MessageSendParams): Promise<Message | Task> {
// const result = await super.sendMessage(params)
Copy link
Member

Choose a reason for hiding this comment

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

cleanup

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.

2 participants