Skip to content

Added queue for the user message with limit of 5 #1

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 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Kitenite
Copy link

Description

Added a queue of size 5 when the ai is still processing users message

Related Issues

related onlook-dev#1768

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Important

Introduces a message queue in ChatManager with a limit of 5, queuing messages when busy and processing them sequentially.

  • Behavior:
    • Adds a message queue in ChatManager with a limit of 5 messages.
    • Messages are queued when isWaiting is true and processed sequentially.
    • Displays queue size in ChatInput.tsx when messages are queued.
  • Functions:
    • processMessageQueue() and processMessage() in ChatManager handle message queuing and processing.
    • sendNewMessage() in ChatManager queues messages if busy.
  • Types:
    • Adds QueuedMessage type in conversation/index.ts for queued messages.

This description was created by Ellipsis for c6098d2. You can customize this summary. It will automatically update as commits are pushed.

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