feat(coding-agent): add ctx.reload and reload-runtime example closes #1371
This commit is contained in:
@@ -63,6 +63,9 @@ export async function runPrintMode(session: AgentSession, options: PrintModeOpti
|
||||
const success = await session.switchSession(sessionPath);
|
||||
return { cancelled: !success };
|
||||
},
|
||||
reload: async () => {
|
||||
await session.reload();
|
||||
},
|
||||
},
|
||||
onError: (err) => {
|
||||
console.error(`Extension error (${err.extensionPath}): ${err.error}`);
|
||||
|
||||
Reference in New Issue
Block a user