OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

fix: conversation tab state sync across browser tabs

Open naaa760 opened this issue 1 month ago • 4 comments

Summary of PR

  • Fixed bug where switching conversation tabs (editor/browser/terminal) in one browser tab would affect all other browser tabs globally. The issue was caused by shared localStorage keys across conversations.

fix: #11607

Changes:

  • Made localStorage keys conversation-specific by appending conversation ID (conversation-selected-tab-${conversationId})
  • Removed global localStorage initialization from conversation store
  • Each conversation now maintains independent tab state per browser tab

Checklist

  • [x] I have read and reviewed the code and I understand what the code is doing.
  • [x] I have tested the code to the best of my ability and ensured it works as expected.

naaa760 avatar Nov 08 '25 14:11 naaa760

@naaa760 any interest in looking at the feedback here?

mamoodi avatar Nov 19 '25 13:11 mamoodi

@naaa760 any interest in looking at the feedback here?

I will resolve it in few hours.

naaa760 avatar Nov 19 '25 14:11 naaa760

@amanape please review it! sorry for being a little late. thankss

naaa760 avatar Nov 26 '25 06:11 naaa760

amanape will be available next week. I'll get him to take a look. Thank you!

mamoodi avatar Nov 26 '25 16:11 mamoodi