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

fix(editor): Fix an issue with an empty chat response if not in output property #8913

Merged

Conversation

OlegIvaniv
Copy link
Contributor

Summary

This PR fixes an issue where the chat message would render as <Empty response> when using basic or QA chains.
When rendering the chat message, @n8n/chat looks for it in the output property of the response object. This is how we return it for agents but not for chains. So we add the text property fallback, and if none of them are defined, try to render a full stringified response.

…ut` property

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Mar 18, 2024
Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Mar 18, 2024

3 flaky tests on run #4405 ↗︎

0 343 12 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 OlegIvaniv 🗃️ e2e/*
Project: n8n Commit: d315dff049
Status: Passed Duration: 03:42 💡
Started: Mar 18, 2024 10:18 AM Ended: Mar 18, 2024 10:22 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video
Flakiness  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Sharing > should work for admin role on credentials created by others (also can share it with themselves) Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #8913 ↗︎

@OlegIvaniv OlegIvaniv merged commit 024be62 into master Mar 18, 2024
28 checks passed
@OlegIvaniv OlegIvaniv deleted the ai-156-chat-node-hosted-form-responses-are-broken branch March 18, 2024 10:27
@github-actions github-actions bot mentioned this pull request Mar 20, 2024
@janober
Copy link
Member

janober commented Mar 20, 2024

Got released with n8n@1.34.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants