Skip to content

test: add integration tests for chat history feature#8874

Open
ugur-vaadin wants to merge 2 commits intomainfrom
test-add-integration-tests-for-chat-history-feature
Open

test: add integration tests for chat history feature#8874
ugur-vaadin wants to merge 2 commits intomainfrom
test-add-integration-tests-for-chat-history-feature

Conversation

@ugur-vaadin
Copy link
Contributor

Description

Adds integration tests for the AI Orchestrator chat history support.

No related issue.

Type of change

  • Bugfix
  • Feature
  • Test

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

@ugur-vaadin ugur-vaadin requested a review from tomivirkki March 9, 2026 10:37
@sonarqubecloud
Copy link

var savedHistory = (List<ChatMessage>) VaadinSession.getCurrent()
.getAttribute(HISTORY_SESSION_KEY);
if (savedHistory != null) {
builder.withHistory(savedHistory, Collections.emptyMap());
Copy link
Member

Choose a reason for hiding this comment

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

Instead of Collections.emptyMap() (= not restoring attachments with the history), also store the attachmentStorage to VaadinSession so they get restored on refresh

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