You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trigger it via the Run This Step -> Start run functionality which allows triggering one node at a time
Click on a different node either while it's executing or after it has finished executing.
Select the initial node again.
Can be reproduced in cloud and self host (docker)
✔️ Expected Behavior
I should be able to see the output of that node individually run node once I reselect it.
❌ Actual Behavior
If I run a single node and deselect it before it finishes executing or after it finishes executing, and then select it again, the output of the node along with all its metrics are no longer visible.
The text was updated successfully, but these errors were encountered:
To address the issue where the output of a node is not visible after deselecting and then reselecting it in Dify version 0.6.66, it's important to focus on how the nodeInfo.expand property and the collapseState state are managed within your application. The visibility of the node's details is controlled by these, and ensuring they are correctly updated is key to resolving the problem.
First, verify that the nodeInfo.expand property is correctly set to true when a node is reselected. This property influences the collapseState, which determines the visibility of the node's details. The relationship between nodeInfo.expand and collapseState is established through a useEffect hook, which sets collapseState based on the negated value of nodeInfo.expand. If nodeInfo.expand does not accurately reflect the user's actions (deselecting and reselecting a node), the expected behavior might not occur.
Ensure that any logic related to updating nodeInfo.expand accurately reflects the user's interactions with the UI. If the issue persists, consider adding debugging logs within the useEffect hook to trace how nodeInfo.expand changes and ensure that these changes trigger the expected updates to collapseState.
useEffect(()=>{console.log(`nodeInfo.expand changed to: ${nodeInfo.expand}`);// Debugging logsetCollapseState(!nodeInfo.expand);},[nodeInfo.expand]);
This approach will help you identify if there are any unexpected behaviors or timing issues affecting the visibility of the node's details. Testing these changes in both cloud and self-hosted environments will ensure that the solution is effective across all deployment types.
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
Self Checks
Dify version
0.6.66
Cloud or Self Hosted
Cloud and Self Hosted Docker
Steps to reproduce
Can be reproduced in cloud and self host (docker)
✔️ Expected Behavior
I should be able to see the output of that node individually run node once I reselect it.
❌ Actual Behavior
If I run a single node and deselect it before it finishes executing or after it finishes executing, and then select it again, the output of the node along with all its metrics are no longer visible.
The text was updated successfully, but these errors were encountered: