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

Function remember

packages/app/src/context/tabs.tsx:270–273  ·  view source on GitHub ↗
(tab: Tab)

Source from the content-addressed store, hash-verified

268 },
269 select: navigateTab,
270 remember(tab: Tab) {
271 const key = tabKey(tab)
272 if (recentKey() !== key) setRecentKey(key)
273 },
274 toggleHome(input: { home: boolean; current?: Tab }) {
275 if (input.home) {
276 const tab = store.find((tab) => tabKey(tab) === recentKey())

Callers

nothing calls this directly

Calls 3

tabKeyFunction · 0.85
recentKeyFunction · 0.85
setRecentKeyFunction · 0.85

Tested by

no test coverage detected