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

Function removeSessionTab

packages/app/src/context/tabs.tsx:204–209  ·  view source on GitHub ↗
(input: Omit<SessionTab, "type">)

Source from the content-addressed store, hash-verified

202 },
203 removeTab,
204 removeSessionTab(input: Omit<SessionTab, "type">) {
205 const index = store.findIndex(
206 (tab) => tab.type === "session" && tab.server === input.server && tab.sessionId === input.sessionId,
207 )
208 if (index !== -1) removeTab(index)
209 },
210 removeServer(key: ServerConnection.Key) {
211 const drafts = store.flatMap((tab) => (tab.type === "draft" && tab.server === key ? [tab.draftID] : []))
212 const removed = store.filter((tab) => tab.server === key).map(tabKey)

Callers

nothing calls this directly

Calls 1

removeTabFunction · 0.85

Tested by

no test coverage detected