From cea0d2a3b8a2d0267c3d50fc838cf2485564460d Mon Sep 17 00:00:00 2001 From: LeonOstrez Date: Tue, 23 Jul 2024 11:09:32 +0200 Subject: [PATCH] fix getting project name in get_alternative_solutions.prompt --- core/prompts/problem-solver/get_alternative_solutions.prompt | 2 +- core/prompts/troubleshooter/iteration.prompt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/prompts/problem-solver/get_alternative_solutions.prompt b/core/prompts/problem-solver/get_alternative_solutions.prompt index a0cbfc282..dbe41f2e7 100644 --- a/core/prompts/problem-solver/get_alternative_solutions.prompt +++ b/core/prompts/problem-solver/get_alternative_solutions.prompt @@ -44,7 +44,7 @@ Then, upon implementing these changes, your colleague came back with the followi {% endif %} {% if user_input != '' %} -Your colleague who is testing the app "{{ name }}" sent you this report now: +Your colleague who is testing the app "{{ state.branch.project.name }}" sent you this report now: ``` {{ user_input }} ``` diff --git a/core/prompts/troubleshooter/iteration.prompt b/core/prompts/troubleshooter/iteration.prompt index 902409d8b..8825992e6 100644 --- a/core/prompts/troubleshooter/iteration.prompt +++ b/core/prompts/troubleshooter/iteration.prompt @@ -4,7 +4,8 @@ You are working on an app called "{{ state.branch.project.name }}" and you need {% if state.tasks and state.current_task %} Development process of this app was split into smaller tasks. Here is the list of all tasks: -```{% for task in state.tasks %} +``` +{% for task in state.tasks %} {{ loop.index }}. {{ task.description }} {% endfor %} ```