GeezerVison is showing github.com — refactor: remove todo tool (#35989) · daniel-sc/opencode@7feefb6
File treeExpand file treeCollapse file tree Open diff view settings client/src/promise/generated fixtures/recordings/session-runner
server/routes/instance/httpapi
session-ui/src/components storybook/.storybook/mocks/app/context
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: github/index.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -495,7 +495,6 @@ async function subscribeSessionEvents() { | 495 | 495 | console.log("Subscribing to session events...") | 496 | 496 |
| 497 | 497 | const TOOL: Record<string, [string, string]> = { | 498 | | - todowrite: ["Todo", "\x1b[33m\x1b[1m"], | 499 | 498 | bash: ["Bash", "\x1b[31m\x1b[1m"], | 500 | 499 | edit: ["Edit", "\x1b[32m\x1b[1m"], | 501 | 500 | glob: ["Glob", "\x1b[34m\x1b[1m"], | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/performance/timeline-stability/tools.spec.ts -4Lines changed: 0 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,11 +33,9 @@ test.describe("timeline tool state stability", () => { | 33 | 33 | } | 34 | 34 | const names = { webfetch: "webfetch", websearch: "websearch", task: "task", skill: "skill", custom: "mcp_probe" } | 35 | 35 | const questionID = "prt_state_question" | 36 | | - const todoID = "prt_state_todo" | 37 | 36 | const initial = [ | 38 | 37 | ...ids.map((id) => toolPart(`prt_state_${id}`, names[id], "pending", inputs[id])), | 39 | 38 | toolPart(questionID, "question", "pending", questionInput()), | 40 | | - toolPart(todoID, "todowrite", "pending", { todos: [{ content: "Hidden", status: "pending" }] }), | 41 | 39 | textPart("prt_state_following", "Following lightweight tools"), | 42 | 40 | ] | 43 | 41 | const childID = "ses_timeline_child" | @@ -49,7 +47,6 @@ test.describe("timeline tool state stability", () => { | 49 | 47 | await timeline.send(status("busy"), 120) | 50 | 48 | for (const id of ids) await timeline.waitForPart(`prt_state_${id}`) | 51 | 49 | await expect(page.locator(`[data-timeline-part-id="${questionID}"]`)).toHaveCount(0) | 52 | | - await expect(page.locator(`[data-timeline-part-id="${todoID}"]`)).toHaveCount(0) | 53 | 50 |
| 54 | 51 | const regionIDs = [ | 55 | 52 | "prt_state_webfetch", | @@ -105,7 +102,6 @@ test.describe("timeline tool state stability", () => { | 105 | 102 | ]), | 106 | 103 | ) | 107 | 104 | await expect(page.locator(`[data-timeline-part-id="${questionID}"]`)).toContainText("Keep it stable") | 108 | | - await expect(page.locator(`[data-timeline-part-id="${todoID}"]`)).toHaveCount(0) | 109 | 105 | await expect( | 110 | 106 | page.locator(`a[href$="/session/${childID}"]`, { has: page.locator('[data-component="task-tool-card"]') }), | 111 | 107 | ).toBeVisible() | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/performance/timeline/session-timeline-stress.fixture.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -269,7 +269,6 @@ const childMessages = Array.from({ length: 4 }, (_, index) => [ | 269 | 269 | ]).flat() | 270 | 270 |
| 271 | 271 | function renderable(part: MessagePart) { | 272 | | - if (part.type === "tool" && part.tool === "todowrite") return false | 273 | 272 | if (part.type === "text") return !!part.text.trim() | 274 | 273 | if (part.type === "reasoning") return !!part.text.trim() | 275 | 274 | return part.type !== "step-start" && part.type !== "step-finish" && part.type !== "patch" | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/cross-server-tab-close.spec.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -90,7 +90,7 @@ async function mockServers(page: Page, requests: string[]) { | 90 | 90 | if (url.pathname === `/session/${current.id}`) return json(route, current) | 91 | 91 | if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404) | 92 | 92 | if (url.pathname === `/session/${current.id}/message`) return json(route, []) | 93 | | - if (/^\/session\/[^/]+\/(children|todo|diff)$/.test(url.pathname)) return json(route, []) | | 93 | + if (/^\/session\/[^/]+\/(children|diff)$/.test(url.pathname)) return json(route, []) | 94 | 94 | if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname)) | 95 | 95 | return json(route, []) | 96 | 96 | if (["/global/config", "/config", "/provider/auth", "/mcp", "/session/status"].includes(url.pathname)) | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/remote-tab-busy.spec.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -65,7 +65,7 @@ async function mockServers(page: Page) { | 65 | 65 | if (url.pathname === `/session/${current.id}`) return json(route, current) | 66 | 66 | if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404) | 67 | 67 | if (url.pathname === `/session/${current.id}/message`) return json(route, []) | 68 | | - if (/^\/session\/[^/]+\/(children|todo|diff)$/.test(url.pathname)) return json(route, []) | | 68 | + if (/^\/session\/[^/]+\/(children|diff)$/.test(url.pathname)) return json(route, []) | 69 | 69 | if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname)) | 70 | 70 | return json(route, []) | 71 | 71 | if (["/global/config", "/config", "/provider/auth", "/mcp"].includes(url.pathname)) return json(route, {}) | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/session-timeline-projection.spec.ts -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,6 @@ test.describe("session timeline projection", () => { | 35 | 35 | editPart("prt_edit"), | 36 | 36 | toolPart("prt_write", "write", "completed", { filePath: "src/new.ts", content: "export const stable = true\n" }), | 37 | 37 | patchPart("prt_patch"), | 38 | | - toolPart("prt_todo", "todowrite", "completed", { todos: [{ content: "Hidden", status: "pending" }] }), | 39 | 38 | toolPart( | 40 | 39 | "prt_question", | 41 | 40 | "question", | @@ -65,7 +64,6 @@ test.describe("session timeline projection", () => { | 65 | 64 | ]) { | 66 | 65 | await expect(page.locator(`[data-timeline-part-id="${id}"]`).first(), id).toBeVisible() | 67 | 66 | } | 68 | | - await expect(page.locator('[data-timeline-part-id="prt_todo"]')).toHaveCount(0) | 69 | 67 | }) | 70 | 68 |
| 71 | 69 | test("projects gaps, dividers, assistant parts, and errors together", async ({ page }) => { | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/session-timeline-tool-projection.spec.ts -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,13 +17,11 @@ test("renders every tool error outcome without leaking hidden tools", async ({ p | 17 | 17 | error: "The user dismissed this question", | 18 | 18 | }), | 19 | 19 | toolPart("prt_question_error", "question", "error", questionInput(), { error: "Question transport failed" }), | 20 | | - toolPart("prt_todo_error", "todowrite", "error", { todos: [] }, { error: "Hidden todo failure" }), | 21 | 20 | ) | 22 | 21 | await setupTimeline(page, { messages: [userMessage(), assistantMessage(parts)] }) | 23 | 22 |
| 24 | 23 | await expect(page.locator('[data-kind="tool-error-card"]')).toHaveCount(ordinary.length + 1) | 25 | 24 | await expect(page.getByText(/dismissed/i)).toBeVisible() | 26 | | - await expect(page.locator('[data-timeline-part-id="prt_todo_error"]')).toHaveCount(0) | 27 | 25 | for (let index = 0; index < ordinary.length; index++) { | 28 | 26 | await expect(page.locator(`[data-timeline-part-id="prt_error_${index}"]`)).toBeVisible() | 29 | 27 | } | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/session-todo-dock-navigation.spec.ts -186Lines changed: 0 additions & 186 deletions Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/regression/tab-navigate-mousedown.spec.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,7 +63,7 @@ async function mockServer(page: Page) { | 63 | 63 | if (byId) return json(route, byId) | 64 | 64 | if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404) | 65 | 65 | if (/^\/session\/[^/]+\/message$/.test(url.pathname)) return json(route, []) | 66 | | - if (/^\/session\/[^/]+\/(children|todo|diff)$/.test(url.pathname)) return json(route, []) | | 66 | + if (/^\/session\/[^/]+\/(children|diff)$/.test(url.pathname)) return json(route, []) | 67 | 67 | if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname)) | 68 | 68 | return json(route, []) | 69 | 69 | if (["/global/config", "/config", "/provider/auth", "/mcp", "/session/status"].includes(url.pathname)) | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/e2e/smoke/session-timeline.fixture.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -229,7 +229,6 @@ const sourceMessages = Array.from({ length: 12 }, (_, index) => [ | 229 | 229 | ]).flat() | 230 | 230 |
| 231 | 231 | function renderable(part: MessagePart) { | 232 | | - if (part.type === "tool" && part.tool === "todowrite") return false | 233 | 232 | if (part.type === "text") return !!part.text.trim() | 234 | 233 | if (part.type === "reasoning") return !!part.text.trim() | 235 | 234 | return part.type !== "step-start" && part.type !== "step-finish" && part.type !== "patch" | |
|