MCPcopy
hub / github.com/anomalyco/opencode / useSessionLayout

Function useSessionLayout

packages/app/src/pages/session/session-layout.ts:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export const useSessionLayout = () => {
21 const layout = useLayout()
22 const { params, sessionKey, workspaceKey } = useSessionKey()
23 return {
24 params,
25 sessionKey,
26 workspaceKey,
27 tabs: createMemo(() => layout.tabs(sessionKey)),
28 view: createMemo(() => layout.view(sessionKey)),
29 }
30}

Callers 11

DialogSelectFileFunction · 0.90
SessionContextUsageFunction · 0.90
SessionContextTabFunction · 0.90
SessionHeaderFunction · 0.90
PageFunction · 0.90
FileTabContentFunction · 0.90
useComposerCommandsFunction · 0.90
useUsageExceededDialogsFunction · 0.90
TerminalPanelFunction · 0.90
useSessionCommandsFunction · 0.90
SessionSidePanelFunction · 0.90

Calls 1

useSessionKeyFunction · 0.85

Tested by

no test coverage detected