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

   Hi @123123213weqw, thanks for reporting this!
   
   I've analyzed this issue against the codebase and can confirm this appears 
to be a **real bug**.
   
   **Root Cause:** ** The `RecentQuery` type (line 73-76) stores only `{ mode, 
params }` with no `instanceId`. The localStorage key 
`QUERY_HISTORY_STORAGE_KEY` (line 87) is a single global string, and 
`querySignature` (line 218) dedupes only on `mode` + `params`. When switching 
instances, `replayRecentQuery` (line 401) runs the old query against the 
current instance with no awareness of the original instance.
   **Affected Files:** ** web/src/pages/instance/message.tsx
   
   **Analysis:** ** Three compounding issues:
   
   I'll prepare a fix spec and work on a PR. The community is welcome to 
provide feedback on the approach before implementation.
   
   ---
   🤖 *Automated issue analysis by github-manager*


-- 
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