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

Function LegacyTargetSessionRoute

packages/app/src/app.tsx:539–558  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537}
538
539function LegacyTargetSessionRoute() {
540 const server = useServer()
541 const tabs = useTabs()
542 const params = useParams<{ id: string }>()
543
544 return (
545 <Show when={tabs.ready()}>
546 <Navigate
547 href={sessionHref(
548 legacySessionServer(
549 tabs.store.filter((item) => item.type === "session"),
550 params.id,
551 server.key,
552 ),
553 params.id,
554 )}
555 />
556 </Show>
557 )
558}

Callers

nothing calls this directly

Calls 3

sessionHrefFunction · 0.90
legacySessionServerFunction · 0.90
readyMethod · 0.80

Tested by

no test coverage detected