Skip to content

Commit 0aeb860

Browse files
waleedlatif1claude
andauthored
fix: stop sidebar from auto-collapsing when resource panel appears (#3540)
The sidebar was forcibly collapsed whenever a resource (e.g. workflow) first appeared in the resource panel during a task. This was disruptive on larger screens where users want to keep both the sidebar and resource panel visible simultaneously. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bb944d6 commit 0aeb860

File tree

1 file changed

+0
-3
lines changed
  • apps/sim/app/workspace/[workspaceId]/home

1 file changed

+0
-3
lines changed

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
} from '@/lib/core/utils/browser-storage'
1616
import { persistImportedWorkflow } from '@/lib/workflows/operations/import-export'
1717
import { useChatHistory } from '@/hooks/queries/tasks'
18-
import { useSidebarStore } from '@/stores/sidebar/store'
1918
import { MessageContent, MothershipView, TemplatePrompts, UserInput } from './components'
2019
import type { FileAttachmentForApi } from './components/user-input/user-input'
2120
import { useAutoScroll, useChat } from './hooks'
@@ -194,8 +193,6 @@ export function Home({ chatId }: HomeProps = {}) {
194193
isSending && prevResourceCountRef.current === 0 && visibleResources.length > 0
195194
useEffect(() => {
196195
if (shouldEnterResourcePanel) {
197-
const { isCollapsed, toggleCollapsed } = useSidebarStore.getState()
198-
if (!isCollapsed) toggleCollapsed()
199196
setIsResourceAnimatingIn(true)
200197
}
201198
prevResourceCountRef.current = visibleResources.length

0 commit comments

Comments
 (0)