Skip to content

Comments

Fix extra closing parenthesis in listener declaration for Chat Agent service generation#439

Merged
LakshanWeerasinghe merged 1 commit intoballerina-platform:1.3.xfrom
dan-niles:fix-chat-agent-listener-paranthesis
Oct 27, 2025
Merged

Fix extra closing parenthesis in listener declaration for Chat Agent service generation#439
LakshanWeerasinghe merged 1 commit intoballerina-platform:1.3.xfrom
dan-niles:fix-chat-agent-listener-paranthesis

Conversation

@dan-niles
Copy link
Contributor

@dan-niles dan-niles commented Oct 26, 2025

Purpose

Fixes wso2/product-ballerina-integrator#1609

When generating a Chat Agent service, an extra closing parenthesis ) was being appended after the listener constructor call. This occurred due to an additional ) added in the getListenerDeclaration method after calling appendListenerConstructorCall.

This PR removes the redundant parenthesis to generate the correct listener declaration syntax.

@dan-niles dan-niles changed the title Fix extra closing parenthesis in listener declaration when creating Chat Agent service Fix extra closing parenthesis in listener declaration for Chat Agent service generation Oct 26, 2025
@dan-niles dan-niles marked this pull request as ready for review October 27, 2025 04:07
@LakshanWeerasinghe LakshanWeerasinghe merged commit bee6458 into ballerina-platform:1.3.x Oct 27, 2025
3 checks passed
@dan-niles dan-niles deleted the fix-chat-agent-listener-paranthesis branch October 27, 2025 04:12
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