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: resolve newTaskRequireTodos setting not working correctly
- Use dynamic Package.name instead of hardcoded namespace values
- Show todos parameter as optional/required based on setting value
- Remove hardcoded new_task example from shared tool use section
- Update tests to use Package.name pattern
The setting now works correctly for both regular and nightly builds
without requiring hardcoded namespace values.
// When setting 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 setting is enabled, show todos as required
6
+
// Always show the todos parameter, but mark it as optional or required based on setting
30
7
return`## new_task
31
-
Description: This will let you create a new task instance in the chosen mode using your provided messageand initial todo list.
8
+
Description: This will let you create a new task instance in the chosen mode using your provided message${todosRequired ? " and initial todo list" : ""}.
32
9
33
10
Parameters:
34
11
- mode: (required) The slug of the mode to start the new task in (e.g., "code", "debug", "architect").
35
12
- message: (required) The initial user message or instructions for this new task.
36
-
- todos: (required) The initial todo list in markdown checklist format for the new task.
13
+
- todos: (${todosRequired ? "required" : "optional"}) The initial todo list in markdown checklist format for the new task.
0 commit comments