Skip to content

Commit f2ff762

Browse files
authored
Merge pull request #3988 from dltechy/fix/workflows
Fix workflows not working except as the initial prompt of a task
2 parents a987b9a + a169e6f commit f2ff762

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/poor-months-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"kilo-code": patch
3+
---
4+
5+
Fix an issue where workflows are not working except as the initial prompt of a task

src/core/slash-commands/kilo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export async function parseKiloSlashCommands(
3838
// this currently allows matching prepended whitespace prior to /slash-command
3939
const tagPatterns = [
4040
{ tag: "task", regex: /<task>(\s*\/([a-zA-Z0-9_.-]+))(\s+.+?)?\s*<\/task>/is },
41-
{ tag: "feedback", regex: /<feedback>(\s*\/([a-zA-Z0-9_-]+))(\s+.+?)?\s*<\/feedback>/is },
42-
{ tag: "answer", regex: /<answer>(\s*\/([a-zA-Z0-9_-]+))(\s+.+?)?\s*<\/answer>/is },
43-
{ tag: "user_message", regex: /<user_message>(\s*\/([a-zA-Z0-9_-]+))(\s+.+?)?\s*<\/user_message>/is },
41+
{ tag: "feedback", regex: /<feedback>(\s*\/([a-zA-Z0-9_.-]+))(\s+.+?)?\s*<\/feedback>/is },
42+
{ tag: "answer", regex: /<answer>(\s*\/([a-zA-Z0-9_.-]+))(\s+.+?)?\s*<\/answer>/is },
43+
{ tag: "user_message", regex: /<user_message>(\s*\/([a-zA-Z0-9_.-]+))(\s+.+?)?\s*<\/user_message>/is },
4444
]
4545

4646
// if we find a valid match, we will return inside that block

0 commit comments

Comments
 (0)