Skip to content

fix: Update message sending logic to include Custom type responses#562

Merged
tusharmath merged 2 commits into
mainfrom
fix/558
Mar 20, 2025
Merged

fix: Update message sending logic to include Custom type responses#562
tusharmath merged 2 commits into
mainfrom
fix/558

Conversation

@amitksingh1490

Copy link
Copy Markdown
Contributor

fixes #558

Comment thread crates/forge_domain/src/orch.rs Outdated
// Only send message if hide_content is false
if !agent.hide_content.unwrap_or_default() {
// Send message if it's a Custom type or if hide_content is false
if matches!(&message, ChatResponse::Custom(_))

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.

Lets rename:

Suggested change
if matches!(&message, ChatResponse::Custom(_))
if matches!(&message, ChatResponse::Event(_))

Comment thread crates/forge_domain/src/orch.rs Outdated
@@ -57,8 +57,10 @@ impl<A: App> Orchestrator<A> {

async fn send_message(&self, agent: &Agent, message: ChatResponse) -> anyhow::Result<()> {

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.

There is send and send_message can you merge them in to send

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok

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.

bug: Sometimes the title dispatched doesn't show up on the console

2 participants