MCPcopy Create free account
hub / github.com/cortexkit/magic-context / requestRecomp

Function requestRecomp

packages/plugin/src/tui/data/context-db.ts:265–273  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

263
264/** Send recomp request to server via RPC. */
265export async function requestRecomp(sessionId: string): Promise<boolean> {
266 if (!rpcClient) return false;
267 try {
268 const result = await rpcClient.call<{ ok: boolean }>("recomp", { sessionId });
269 return result.ok ?? false;
270 } catch {
271 return false;
272 }
273}
274
275/** Run `/ctx-session-upgrade` for the session (full recomp + once-per-project
276 * memory migration). Fired from the upgrade dialog's "Run upgrade now" action. */

Callers 1

showRecompDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected