Files
letta-code/src/tools/impl/ExitPlanMode.ts
Charles Packer 88fa10f0d3 fix: plan mode flexibility (#517)
Co-authored-by: Letta <noreply@letta.com>
2026-01-11 17:35:51 -08:00

19 lines
833 B
TypeScript

/**
* ExitPlanMode tool implementation
* Exits plan mode - the plan is read from the plan file by the UI
*/
export async function exit_plan_mode(): Promise<{ message: string }> {
// Return confirmation message that plan was approved
// Note: The plan is read from the plan file by the UI before this return is shown
// The UI layer checks if the plan file exists and auto-rejects if not
return {
message:
"User has approved your plan. You can now start coding.\n" +
"Start with updating your todo list if applicable.\n\n" +
"Tip: If this plan will be referenced in the future by your future-self, " +
"other agents, or humans, consider renaming the plan file to something easily " +
"identifiable with a timestamp (e.g., `2026-01-auth-refactor.md`) rather than the random name.",
};
}