Enhance command structure and user feedback in task management
- Added SprintCmd to issues command group - taskLoop hide survey related commands when in repl - Updated coding task instructions for clarity - Removed redundant SprintCmd registration - Improved REPL command handling for better user experience avoiding a chash if users type pm - Enhanced task UI to display additional information
This commit is contained in:
@@ -15,6 +15,7 @@ const codingDescription = `You are tasked with fixing a logical error in the cod
|
||||
|
||||
Your task:
|
||||
1. A text file will appear in this directory(your desktop):
|
||||
- Name: code.txt
|
||||
- Open it and follow the instructions inside.
|
||||
- Save the file after you are done.
|
||||
2. Change status of the Issue "Fix major error" to Closed.`
|
||||
@@ -165,7 +166,7 @@ func (t *CodingTask) Validate(ctx context.Context) ValidationFeedback {
|
||||
return expect.ValidationFeedback
|
||||
}
|
||||
|
||||
code, ok := strings.CutPrefix(string(fileContent), codingDescription+textFileDescription+"\n")
|
||||
code, ok := strings.CutPrefix(string(fileContent), textFileDescription+"\n")
|
||||
if !ok {
|
||||
expect.Fail("The content of code.txt does not match the expected format.")
|
||||
return expect.ValidationFeedback
|
||||
|
||||
Reference in New Issue
Block a user