MCPcopy Index your code
hub / github.com/openai/codex-plugin-cc / externalAgentSessionMigration

Function externalAgentSessionMigration

plugins/codex/scripts/lib/codex.mjs:681–699  ·  view source on GitHub ↗
(sourcePath, cwd)

Source from the content-addressed store, hash-verified

679}
680
681function externalAgentSessionMigration(sourcePath, cwd) {
682 return {
683 migrationItems: [
684 {
685 itemType: "SESSIONS",
686 description: `Transfer Claude session ${path.basename(sourcePath)}`,
687 cwd: null,
688 details: {
689 plugins: [],
690 sessions: [{ path: sourcePath, cwd, title: null }],
691 mcpServers: [],
692 hooks: [],
693 subagents: [],
694 commands: []
695 }
696 }
697 ]
698 };
699}
700
701async function requestExternalAgentSessionImport(client, params) {
702 const previousHandler = client.notificationHandler;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected