enable misspell

Finds commonly misspelled English words.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
Kai Xia committed 2026-02-25 21:14:19 +11:00
1 parent 1fab1967d2
commit c5e8e19f54
4 files changed
+8 -9

No files matched your search

+6 -6
View File
@@ -132,12 +132,12 @@ After completing the task, provide a clear summary of what was done.`
},
}
// Check if context is already cancelled before starting
// Check if context is already canceled before starting
select {
case <-ctx.Done():
sm.mu.Lock()
task.Status = "cancelled"
task.Result = "Task cancelled before execution"
task.Status = "canceled"
task.Result = "Task canceled before execution"
sm.mu.Unlock()
return
default:
@@ -185,10 +185,10 @@ After completing the task, provide a clear summary of what was done.`
if err != nil {
task.Status = "failed"
task.Result = fmt.Sprintf("Error: %v", err)
// Check if it was cancelled
// Check if it was canceled
if ctx.Err() != nil {
task.Status = "cancelled"
task.Result = "Task cancelled during execution"
task.Status = "canceled"
task.Result = "Task canceled during execution"
}
result = &ToolResult{
ForLLM: task.Result,