mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
Merge pull request #11175 from Kilo-Org/fix/vscode-hide-todo-outcome-warning
fix(vscode): hide unfinished todo warnings
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"kilo-code": patch
|
||||
---
|
||||
|
||||
Hide turn outcome warnings caused only by unfinished to-dos.
|
||||
@@ -26,17 +26,17 @@ describe("terminal", () => {
|
||||
expect(terminal({ reason: "completed", messages: [message("stop")], todos: [] })).toBeUndefined()
|
||||
})
|
||||
|
||||
it("warns when a completed turn leaves to-dos unfinished", () => {
|
||||
it("hides completed turns with unfinished to-dos", () => {
|
||||
expect(
|
||||
terminal({ reason: "completed", messages: [message("stop")], todos: [todo("completed"), todo("pending")] }),
|
||||
).toEqual({ kind: "incomplete", tone: "warning", finish: "stop", remaining: 1 })
|
||||
).toBeUndefined()
|
||||
})
|
||||
|
||||
it("treats cancelled to-dos as terminal rather than remaining work", () => {
|
||||
expect(terminal({ reason: "completed", messages: [message("stop")], todos: [todo("cancelled")] })).toBeUndefined()
|
||||
})
|
||||
|
||||
it("surfaces response limit and unknown model finishes before generic incomplete status", () => {
|
||||
it("surfaces response limit and unknown model finishes with unfinished to-dos", () => {
|
||||
expect(terminal({ reason: "completed", messages: [message("length")], todos: [todo("pending")] })?.kind).toBe(
|
||||
"limit",
|
||||
)
|
||||
|
||||
@@ -32,6 +32,5 @@ export function terminal(input: Input): TerminalState | undefined {
|
||||
if (finish === "unknown") return { kind: "unknown", tone: "warning", finish, remaining }
|
||||
if (finish === "content-filter") return { kind: "filtered", tone: "warning", finish, remaining }
|
||||
if (finish === "other") return { kind: "unexpected", tone: "warning", finish, remaining }
|
||||
if (remaining > 0) return { kind: "incomplete", tone: "warning", finish, remaining }
|
||||
return undefined
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user