You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(plan): show plan content as markdown in exit prompt, guard empty plan
Read the plan file content and append it as a markdown preview in the
plan_exit question. Also guard against empty plan files — return an
error telling the agent to write the plan first.
output: `The plan file at ${plan} is empty or does not exist. You must write your plan to this file before calling plan_exit. Use the write tool to create the plan file first.`,
33
+
metadata: {},
34
+
}
35
+
}
36
+
constpreview=`\n\n---\n\n${content}`
25
37
constanswers=awaitQuestion.ask({
26
38
sessionID: ctx.sessionID,
27
39
questions: [
28
40
{
29
-
question: `Plan at ${plan} is complete. Would you like to switch to the build agent and start implementing?`,
41
+
question: `Plan at \`${plan}\` is complete. Would you like to switch to the build agent and start implementing?${preview}`,
0 commit comments