Sidebar: workspace chat list not visible until clicking folder chevron #135
Replies: 3 comments
-
|
This is currently intended but we're open to discussions here! |
Beta Was this translation helpful? Give feedback.
-
|
I think this feature should be configurable - a toggle in Appearance settings like I'll post a link to a patch implementation on top of the original fix in a follow-up comment below. |
Beta Was this translation helpful? Give feedback.
-
|
Here's the branch with the full implementation including the toggle: https://github.com/PhilippeRoy/computer/tree/fix/auto-expand-workspace The patch adds an It's on top of the original fix - two commits:
For pipx users, just the first commit is enough. The second is only if you want the settings toggle. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sidebar: workspace chat list is not visible until clicking the folder chevron
Describe the bug
When navigating to a workspace (either via URL or by clicking the workspace name in the sidebar), the chat list remains hidden. The user must click a small folder chevron icon to expand the workspace and see the chat list. Clicking the workspace name should also expand the workspace to show its chats.
To Reproduce
?workspace=/some/path(or any workspace path)Expected behavior
?workspace=URL parameter, that workspace should auto-expandTechnical details
The issue is in
SidebarWorkspaceList.svelte. TheopenWorkspace()function navigates to the workspace URL but does not expand the workspace. TheonMountalso does not auto-expand the workspace from the URL.Patch (source-level diff)
Two changes to
cptr/frontend/src/lib/components/SidebarWorkspaceList.svelte:Change 1 —
openWorkspace()function:Change 2 — inside
onMount():For pipx installations (no source available):
Edit the compiled JS file at
_app/immutable/nodes/0.<hash>.js:function N(e,t){...}— add,l(x).has(t)||O(t)after thegoto()callL(()=>{...})— add,l(D)&&!l(x).has(l(D))&&O(l(D))before the closing})Beta Was this translation helpful? Give feedback.
All reactions