RockteMQ-AI commented on issue #4736:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/4736#issuecomment-5758715494

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The reported issue has been verified. The root cause is clear:
   
   - `AiPage.handleSend` stores `current` (the tool id that was selected when 
the send started) in the `toolResultOwner` ref
   - `ToolPlayground` reads that ref and renders the in-flight result under 
whichever tool is *currently* selected
   - When the user switches to another tool while the run is still in flight, 
the result is rendered under the wrong tool
   - When the run completes, the completion is recorded against 
`toolResultOwner` (the original tool), but the UI is already showing it under 
the new tool — so the original tool later re-renders a stale result
   
   **Impact:** The tool playground shows results under the wrong tool, and 
stale results persist after switching. Confusing UX, no data corruption.
   
   **Severity:** Low-Medium — UI state inconsistency, no data loss.
   
   A fix PR (#4738) is already available. The fix drops the in-flight result as 
soon as a different tool is selected, which is the correct behavior.
   
   ---
   *Automated evaluation by RockteMQ-AI*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to