Skip to content
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

[🐴] Simplify message passing, cleanup #3952

Merged
merged 2 commits into from
May 10, 2024
Merged

Conversation

estrattonbailey
Copy link
Member

Simplifies the contract between the two agents and removes some unused types. It also ensures the events are torn down when the class is suspended.

Copy link

render bot commented May 10, 2024

Comment on lines +744 to +745
// remove on each send, it might go through now without user having to click
this.footerItems.delete(ConvoItemError.PendingFailed)
Copy link
Member Author

Choose a reason for hiding this comment

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

Noticed while testing this that if a send fails, and you send another that succeeds, you'll have no pending messages but the retry error will still be present. In this case, which is now fixed, if you click retry, it simply removes itself and does nothing, since there are no pending messages left.

}
}
},
{convoId: this.convoId},
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this optional param, it will receive all logs events for all chats. For the purposes of Convo we obviously only want this particular convo.

Copy link

Old size New size Diff
6.9 MB 6.9 MB 809 B (0.01%)

@estrattonbailey estrattonbailey merged commit f84a2de into main May 10, 2024
6 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.

2 participants