fix: include prompt in ralpi-plan
This commit is contained in:
6
index.ts
6
index.ts
@@ -732,8 +732,10 @@ export default function ralpiLoopExtension(pi: ExtensionAPI): void {
|
|||||||
|
|
||||||
pi.registerCommand("ralpi-plan", {
|
pi.registerCommand("ralpi-plan", {
|
||||||
description: "Open the Task Manager to plan a ralpi run",
|
description: "Open the Task Manager to plan a ralpi run",
|
||||||
handler: async (_args: string, ctx: ExtensionContext) => {
|
handler: async (args: string, ctx: ExtensionContext) => {
|
||||||
pi.sendUserMessage("@task-manager");
|
const prompt = (args || "").trim();
|
||||||
|
const message = prompt ? `@task-manager\n\n${prompt}` : "@task-manager";
|
||||||
|
pi.sendUserMessage(message);
|
||||||
ctx.ui.notify("Opening Task Manager...", "info");
|
ctx.ui.notify("Opening Task Manager...", "info");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user