Skip to content

fix: the conversation stops while a node is generating output, the output already produced by that node is not displayed in the execution details - #8193

Merged
peslyn merged 1 commit into
v3from
pr@v3@fix_the_conversation_stops_while_a_node_is_generating_output
Nov 27, 2026
Merged

peslyn merged 1 commit into
v3from
pr@v3@fix_the_conversation_stops_while_a_node_is_generating_output

Conversation

@shaohuzhang1

Copy link
Copy Markdown
Contributor

fix: the conversation stops while a node is generating output, the output already produced by that node is not displayed in the execution details

…tput already produced by that node is not displayed in the execution details
const showContent = computed(() => isSuccess.value || isCancelled.value || props.showContentOnError)
</script>

<template>

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.

The code contains a logical inconsistency that needs clarification:

Critical Issue:
Using status 201 (isCancelled) is highly unconventional. In standard HTTP semantics:

  • 200 = OK (Success)
  • 201 = Created (Success, but different from 200)
  • 4xx/5xx = Errors
  • Cancellation is typically represented by status 499 (Non-standard) or explicitly via API response content, not a 2xx success series code.

If "Cancelled" means the operation was canceled by the user and should be treated as a "success-like" state for UI purposes, consider renaming the variable to isCreated or using a specific non-200 success code if your backend supports it. If it truly means "canceled," ensure your backend actually returns 201 for this case, which is likely a bug.

Optimization Suggestions:

  1. Performance: The current implementation is fine. computed properties are cached and only recalculate when dependencies (props.data, props.showContentOnError) change.
  2. Optional Chaining: Good use of ?. for props.data.
  3. Readability: Consider renaming isCancelled to something more accurate if it doesn't mean HTTP cancellation. For example, if 201 means "Created", name it isCreated.

Code Review Summary:
✅ Syntax is valid.
⚠️ Logic Warning: Verify if status === 201 truly represents "cancelled" in your context. This may indicate a backend contract mismatch.

@peslyn
peslyn merged commit 415743d into v3 Nov 27, 2026
3 of 4 checks passed
@peslyn
peslyn deleted the pr@v3@fix_the_conversation_stops_while_a_node_is_generating_output branch November 27, 2026 03:17
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