MCPcopy Index your code
hub / github.com/anomalyco/opencode / openContext

Function openContext

packages/app/src/components/session-context-usage.tsx:83–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 )
82
83 const openContext = () => {
84 if (!params.id) return
85
86 const sessionView = view()
87 if (contextVisible()) {
88 tabs().close("context")
89 if (sessionView.reviewPanel.source() === "context-button" && !hasOtherTabs()) sessionView.reviewPanel.close()
90 return
91 }
92
93 openSessionContext({
94 view: sessionView,
95 layout,
96 tabs: tabs(),
97 })
98 }
99
100 const circle = () => (
101 <div class="flex items-center justify-center">

Callers

nothing calls this directly

Calls 5

viewFunction · 0.85
openSessionContextFunction · 0.85
sourceMethod · 0.80
tabsFunction · 0.70
closeMethod · 0.45

Tested by

no test coverage detected