Repository navigation
Bug: the session that creates a workspace is never registered in that workspace's sessionIds (it stays "Ungrouped")
#7985
jk3320-ethan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
When a session creates a new workspace, that session is not added to the new workspace's
sessionIds. The UI therefore lists it under Ungrouped, even though the session'scwdisexactly the workspace path. Sessions started later in the same (already existing) workspace are
registered correctly — so only the creating session is affected.
Environment
FileVersion = 0.1.7-rc.2).%USERPROFILE%\.dsh\storages\workspace.json%USERPROFILE%\.dsh\storages\session_projcache\sessions\*.jsonSteps to reproduce
cwdis a folder that is not yet a workspace — this session creates the workspace.Evidence (raw values, read from the two store files)
Workspace created by the first session:
That first session:
Control case — a session started later in the same workspace:
So the delta is not the problem by itself (workspace creation and session creation are two separate
writes ~26 ms apart, which is expected). The problem is that the write which creates the workspace
does not include the creating session in
sessionIds, while the write triggered by a later sessiondoes.
Expected
The creating session should be listed in the new workspace's
sessionIds(or the UI should groupsessions by
cwdwhensessionIdsis incomplete), so it does not appear as "Ungrouped".Impact
orphaned, so history appears detached from the project it created.
0.1.7-rc.2. Related earlier report from the same install: [Desktop 0.1.7-rc.2] File card "Show file location" is a silent no-op — root cause: windowsHide:true hides Explorer's window #7982 (windowsHide: truehides the Explorer window of the built-in "Show file location" card).
All reactions