GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor: remove todo tool (#35989) · daniel-sc/opencode@7feefb6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • github
    • index.ts
  • packages
    • app
      • e2e
        • performance
          • timeline-stability
            • tools.spec.ts
          • timeline
            • session-timeline-stress.fixture.ts
        • regression
          • cross-server-tab-close.spec.ts
          • remote-tab-busy.spec.ts
          • session-timeline-projection.spec.ts
          • session-timeline-tool-projection.spec.ts
          • session-todo-dock-navigation.spec.ts
          • tab-navigate-mousedown.spec.ts
        • smoke
          • session-timeline.fixture.ts
        • utils
          • mock-server.ts
      • src
        • components
          • prompt-input.stories.tsx
          • prompt-input
            • submit.ts
        • context
          • directory-sync.ts
          • global-sync
            • bootstrap.test.ts
            • child-store.ts
            • event-reducer.test.ts
            • event-reducer.ts
            • session-cache.test.ts
            • session-cache.ts
            • types.ts
          • layout.tsx
          • server-session.test.ts
          • server-session.ts
        • i18n
          • ar.ts
          • br.ts
          • bs.ts
          • da.ts
          • de.ts
          • en.ts
          • es.ts
          • fr.ts
          • ja.ts
          • ko.ts
          • no.ts
          • pl.ts
          • ru.ts
          • th.ts
          • tr.ts
          • uk.ts
          • zh.ts
          • zht.ts
        • pages
          • session.tsx
          • session/composer
            • session-composer-region-controller.ts
            • session-composer-region.tsx
            • session-composer-state.test.ts
            • session-composer-state.ts
            • session-todo-dock.tsx
            • todo-panel-motion.stories.tsx
    • client/src/promise/generated
      • types.ts
    • cli/src/mini
      • demo.ts
      • scrollback.writer.tsx
      • tool.ts
      • types.ts
    • codemode/test/fixtures
      • opencode-v2-openapi.json
    • core
      • schema.json
      • src
        • database
          • migration.gen.ts
          • migration
            • 20260709025533_drop-todo.ts
          • schema.gen.ts
        • location-services.ts
        • plugin
          • agent.ts
          • internal.ts
          • supervisor.ts
        • session
          • runner/prompt
            • anthropic.txt
            • beast.txt
          • sql.ts
          • todo.ts
        • tool
          • todowrite.ts
        • v1/config
          • permission.ts
      • test
        • fixtures/recordings/session-runner
          • openai-chat-streams-text.json
        • location-layer.test.ts
        • permission.test.ts
        • session-todo.test.ts
        • shared-schema.test.ts
        • tool-todowrite.test.ts
    • docs
      • openapi.json
    • opencode
      • specs
        • effect
          • tools.md
        • tui-plugins.md
      • src
        • agent
          • agent.ts
          • subagent-permissions.ts
        • cli/cmd
          • agent.ts
          • github.handler.ts
        • effect
          • app-runtime.ts
        • server/routes/instance/httpapi
          • groups
            • session.ts
          • handlers
            • session.ts
          • server.ts
        • session
          • prompt
            • anthropic.txt
            • beast.txt
            • copilot-gpt-5.txt
          • todo.ts
        • storage
          • schema.ts
        • tool
          • registry.ts
          • task.ts
          • todo.ts
          • todowrite.txt
      • test
        • agent
          • agent.test.ts
        • cli
          • github-action.test.ts
          • help/__snapshots__
            • help-snapshots.test.ts.snap
          • run
            • scrollback.surface.test.ts
          • tui
            • plugin-loader.test.ts
        • config
          • config.test.ts
        • event-manifest.test.ts
        • fixture
          • tui-plugin.ts
        • server
          • httpapi-exercise
            • index.ts
            • runner.ts
            • runtime.ts
            • types.ts
          • httpapi-sdk.test.ts
          • httpapi-session.test.ts
        • session
          • prompt.test.ts
          • schema-decoding.test.ts
        • tool
          • __snapshots__
            • parameters.test.ts.snap
          • parameters.test.ts
          • task.test.ts
    • plugin/src
      • tui.ts
    • schema
      • AGENTS.md
      • src
        • event-manifest.ts
        • session-todo.ts
      • test
        • contract-hygiene.test.ts
        • event-manifest.test.ts
    • sdk
      • js/src
        • gen
          • sdk.gen.ts
          • types.gen.ts
        • v2/gen
          • sdk.gen.ts
          • types.gen.ts
      • openapi.json
    • session-ui/src/components
      • message-part.css
      • message-part.tsx
      • session-turn.tsx
      • timeline-playground.stories.tsx
    • storybook/.storybook/mocks/app/context
      • file.ts
      • global-sync.ts
      • language.ts
    • tui
      • src
        • component
          • todo-item.tsx
        • context
          • sync.tsx
        • feature-plugins
          • builtins.ts
          • sidebar
            • todo.tsx
        • plugin
          • adapters.tsx
        • routes/session
          • index.tsx
      • test/cli/tui
        • inline-tool-wrap-snapshot.test.tsx
    • ui/src/i18n
      • ar.ts
      • br.ts
      • bs.ts
      • da.ts
      • de.ts
      • en.ts
      • es.ts
      • fr.ts
      • ja.ts
      • ko.ts
      • no.ts
      • pl.ts
      • ru.ts
      • th.ts
      • tr.ts
      • uk.ts
      • zh.ts
      • zht.ts
    • web/src
      • components
        • share.module.css
        • share
          • part.module.css
          • part.tsx
      • content
        • docs
          • agents.mdx
          • ar
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • bs
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • cli.mdx
          • da
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • de
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • es
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • fr
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • it
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • ja
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • ko
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • nb
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • plugins.mdx
          • pl
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • pt-br
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • ru
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • server.mdx
          • th
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • tools.mdx
          • tr
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • zh-cn
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
          • zh-tw
            • agents.mdx
            • plugins.mdx
            • server.mdx
            • tools.mdx
        • i18n
          • ar.json
          • bs.json
          • da.json
          • de.json
          • en.json
          • es.json
          • fr.json
          • it.json
          • ja.json
          • ko.json
          • nb.json
          • pl.json
          • pt-BR.json
          • ru.json
          • th.json
          • tr.json
          • zh-CN.json
          • zh-TW.json
      • pages/s
        • [id].astro
  • specs
    • storage
      • remove-opencode-db.md
    • v2
      • api.html
      • schema-changelog.md

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎github/index.ts‎

Copy file name to clipboardExpand all lines: github/index.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ async function subscribeSessionEvents() {
495495
console.log("Subscribing to session events...")
496496

497497
const TOOL: Record<string, [string, string]> = {
498-
todowrite: ["Todo", "\x1b[33m\x1b[1m"],
499498
bash: ["Bash", "\x1b[31m\x1b[1m"],
500499
edit: ["Edit", "\x1b[32m\x1b[1m"],
501500
glob: ["Glob", "\x1b[34m\x1b[1m"],
Collapse file

‎packages/app/e2e/performance/timeline-stability/tools.spec.ts‎

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 numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ test.describe("timeline tool state stability", () => {
3333
}
3434
const names = { webfetch: "webfetch", websearch: "websearch", task: "task", skill: "skill", custom: "mcp_probe" }
3535
const questionID = "prt_state_question"
36-
const todoID = "prt_state_todo"
3736
const initial = [
3837
...ids.map((id) => toolPart(`prt_state_${id}`, names[id], "pending", inputs[id])),
3938
toolPart(questionID, "question", "pending", questionInput()),
40-
toolPart(todoID, "todowrite", "pending", { todos: [{ content: "Hidden", status: "pending" }] }),
4139
textPart("prt_state_following", "Following lightweight tools"),
4240
]
4341
const childID = "ses_timeline_child"
@@ -49,7 +47,6 @@ test.describe("timeline tool state stability", () => {
4947
await timeline.send(status("busy"), 120)
5048
for (const id of ids) await timeline.waitForPart(`prt_state_${id}`)
5149
await expect(page.locator(`[data-timeline-part-id="${questionID}"]`)).toHaveCount(0)
52-
await expect(page.locator(`[data-timeline-part-id="${todoID}"]`)).toHaveCount(0)
5350

5451
const regionIDs = [
5552
"prt_state_webfetch",
@@ -105,7 +102,6 @@ test.describe("timeline tool state stability", () => {
105102
]),
106103
)
107104
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)
109105
await expect(
110106
page.locator(`a[href$="/session/${childID}"]`, { has: page.locator('[data-component="task-tool-card"]') }),
111107
).toBeVisible()
Collapse file

‎packages/app/e2e/performance/timeline/session-timeline-stress.fixture.ts‎

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 numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ const childMessages = Array.from({ length: 4 }, (_, index) => [
269269
]).flat()
270270

271271
function renderable(part: MessagePart) {
272-
if (part.type === "tool" && part.tool === "todowrite") return false
273272
if (part.type === "text") return !!part.text.trim()
274273
if (part.type === "reasoning") return !!part.text.trim()
275274
return part.type !== "step-start" && part.type !== "step-finish" && part.type !== "patch"
Collapse file

‎packages/app/e2e/regression/cross-server-tab-close.spec.ts‎

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 numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function mockServers(page: Page, requests: string[]) {
9090
if (url.pathname === `/session/${current.id}`) return json(route, current)
9191
if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404)
9292
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, [])
9494
if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname))
9595
return json(route, [])
9696
if (["/global/config", "/config", "/provider/auth", "/mcp", "/session/status"].includes(url.pathname))
Collapse file

‎packages/app/e2e/regression/remote-tab-busy.spec.ts‎

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 numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function mockServers(page: Page) {
6565
if (url.pathname === `/session/${current.id}`) return json(route, current)
6666
if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404)
6767
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, [])
6969
if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname))
7070
return json(route, [])
7171
if (["/global/config", "/config", "/provider/auth", "/mcp"].includes(url.pathname)) return json(route, {})
Collapse file

‎packages/app/e2e/regression/session-timeline-projection.spec.ts‎

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 numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ test.describe("session timeline projection", () => {
3535
editPart("prt_edit"),
3636
toolPart("prt_write", "write", "completed", { filePath: "src/new.ts", content: "export const stable = true\n" }),
3737
patchPart("prt_patch"),
38-
toolPart("prt_todo", "todowrite", "completed", { todos: [{ content: "Hidden", status: "pending" }] }),
3938
toolPart(
4039
"prt_question",
4140
"question",
@@ -65,7 +64,6 @@ test.describe("session timeline projection", () => {
6564
]) {
6665
await expect(page.locator(`[data-timeline-part-id="${id}"]`).first(), id).toBeVisible()
6766
}
68-
await expect(page.locator('[data-timeline-part-id="prt_todo"]')).toHaveCount(0)
6967
})
7068

7169
test("projects gaps, dividers, assistant parts, and errors together", async ({ page }) => {
Collapse file

‎packages/app/e2e/regression/session-timeline-tool-projection.spec.ts‎

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 numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ test("renders every tool error outcome without leaking hidden tools", async ({ p
1717
error: "The user dismissed this question",
1818
}),
1919
toolPart("prt_question_error", "question", "error", questionInput(), { error: "Question transport failed" }),
20-
toolPart("prt_todo_error", "todowrite", "error", { todos: [] }, { error: "Hidden todo failure" }),
2120
)
2221
await setupTimeline(page, { messages: [userMessage(), assistantMessage(parts)] })
2322

2423
await expect(page.locator('[data-kind="tool-error-card"]')).toHaveCount(ordinary.length + 1)
2524
await expect(page.getByText(/dismissed/i)).toBeVisible()
26-
await expect(page.locator('[data-timeline-part-id="prt_todo_error"]')).toHaveCount(0)
2725
for (let index = 0; index < ordinary.length; index++) {
2826
await expect(page.locator(`[data-timeline-part-id="prt_error_${index}"]`)).toBeVisible()
2927
}
Collapse file

‎packages/app/e2e/regression/session-todo-dock-navigation.spec.ts‎

Copy file name to clipboardExpand all lines: packages/app/e2e/regression/session-todo-dock-navigation.spec.ts
-186Lines changed: 0 additions & 186 deletions
This file was deleted.
Collapse file

‎packages/app/e2e/regression/tab-navigate-mousedown.spec.ts‎

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 numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async function mockServer(page: Page) {
6363
if (byId) return json(route, byId)
6464
if (/^\/session\/[^/]+$/.test(url.pathname)) return json(route, { name: "NotFoundError" }, 404)
6565
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, [])
6767
if (["/skill", "/command", "/lsp", "/formatter", "/permission", "/question", "/vcs/diff"].includes(url.pathname))
6868
return json(route, [])
6969
if (["/global/config", "/config", "/provider/auth", "/mcp", "/session/status"].includes(url.pathname))
Collapse file

‎packages/app/e2e/smoke/session-timeline.fixture.ts‎

Copy file name to clipboardExpand all lines: packages/app/e2e/smoke/session-timeline.fixture.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ const sourceMessages = Array.from({ length: 12 }, (_, index) => [
229229
]).flat()
230230

231231
function renderable(part: MessagePart) {
232-
if (part.type === "tool" && part.tool === "todowrite") return false
233232
if (part.type === "text") return !!part.text.trim()
234233
if (part.type === "reasoning") return !!part.text.trim()
235234
return part.type !== "step-start" && part.type !== "step-finish" && part.type !== "patch"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.