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
{{ message }}
Repository navigation
TabSession mirror is not resynced when a tab is retargeted to another table #2060
replaceTabContent reuses the same tab id, so a retarget is neither an insert nor a removal. After the user navigates from table A to table B in the same tab, the session's tableContext, content and title still describe A.
What I verified and what I did not
Verified: the mechanism. There is no retarget branch, and tableContext is among the mirrored fields.
Not verified: the consequence. I have not traced every reader of TabSession.tableContext to establish whether anything acts on the stale copy, so this may be latent rather than user-visible. Worth doing that trace before deciding how to fix it, or whether the mirror should exist at all.
#2055 gave the tab's execution an owner that a retarget invalidates, which fixed results being applied to the wrong table. It deliberately did not touch TabSession. If the mirror does have live readers, this is a second stale-identity surface of the same shape, and the same reasoning applies: a retarget has to be an event the model sees.
Suggested direction
Either add a retarget branch to syncTabSessionRegistry fed by the onTabRetargeted hook that #2055 already added to QueryTabManager, or delete the mirrored fields that nothing reads. The second is better if the trace shows they are vestigial.
Activity