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: hide todos parameter from new_task tool prompt when experiment is disabled
- Modified getNewTaskDescription to completely omit todos parameter when experiment is off
- Updated tests to verify todos parameter is not shown at all when disabled
- Ensures tool prompt remains unchanged when experimental setting is disabled
- Maintains backward compatibility while providing cleaner prompt interface
// When experiment is disabled, don't show todos parameter at all
7
+
if(!todosRequired){
8
+
return`## new_task
9
+
Description: This will let you create a new task instance in the chosen mode using your provided message.
10
+
11
+
Parameters:
12
+
- mode: (required) The slug of the mode to start the new task in (e.g., "code", "debug", "architect").
13
+
- message: (required) The initial user message or instructions for this new task.
14
+
15
+
Usage:
16
+
<new_task>
17
+
<mode>your-mode-slug-here</mode>
18
+
<message>Your initial instructions here</message>
19
+
</new_task>
20
+
21
+
Example:
22
+
<new_task>
23
+
<mode>code</mode>
24
+
<message>Implement a new feature for the application.</message>
25
+
</new_task>
26
+
`
27
+
}
28
+
29
+
// When experiment is enabled, show todos as required
7
30
return`## new_task
8
-
Description: This will let you create a new task instance in the chosen mode using your provided message${todosRequired ? " and initial todo list" : " and optional initial todo list"}.
31
+
Description: This will let you create a new task instance in the chosen mode using your provided messageand initial todo list.
9
32
10
33
Parameters:
11
34
- mode: (required) The slug of the mode to start the new task in (e.g., "code", "debug", "architect").
12
35
- message: (required) The initial user message or instructions for this new task.
13
-
- todos: ${todosStatus} The initial todo list in markdown checklist format for the new task.
36
+
- todos: (required) The initial todo list in markdown checklist format for the new task.
0 commit comments