refactor: remove todo tool (#35989)

This commit is contained in:
Aiden Cline 2026-07-09 00:13:48 -05:00 committed by GitHub
commit 7feefb697f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
250 changed files with 237 additions and 4755 deletions

View file

@ -926,13 +926,6 @@ sessionID -&gt; { directory, workspaceID? }</code></pre>
<td class="route"><code>POST /api/session/:sessionID/prompt</code></td>
<td>Create a user message and queue the agent loop.</td>
</tr>
<tr>
<td class="operation"><code>session.todo</code></td>
<td class="body"><code>{ sessionID: SessionID }</code></td>
<td><span class="context-tag session">session</span></td>
<td class="route"><code>GET /api/session/:sessionID/todo</code></td>
<td>Return todos associated with the session.</td>
</tr>
<tr>
<td class="operation"><code>session.update</code></td>
<td class="body">
@ -1143,7 +1136,6 @@ type SyncStore = {
session: Record&lt;SessionID, Session &amp; { context: RuntimeContext }&gt;
session_diff: Record&lt;SessionID, Snapshot.FileDiff[]&gt;
todo: Record&lt;SessionID, Todo[]&gt;
permission: Record&lt;SessionID, PermissionRequest[]&gt;
question: Record&lt;SessionID, QuestionRequest[]&gt;

View file

@ -384,7 +384,7 @@ Change:
- Add Location-scoped pending permission requests with `once`, `always`, and `reject` replies.
- Attach optional originating tool message and call IDs.
- Preserve authored ordered rules and saved approvals as separate inputs to evaluation.
- Establish action and resource conventions for `read`, `glob`, `grep`, `edit`, `external_directory`, `bash`, `todowrite`, and `webfetch` approvals.
- Establish action and resource conventions for `read`, `glob`, `grep`, `edit`, `external_directory`, `bash`, and `webfetch` approvals.
Reason:
@ -580,37 +580,15 @@ Compatibility:
- These are additive experimental V2 contracts.
- No database migration is required because pending questions are intentionally in-memory Location state.
## 2026-06-03: Core-Owned Todo Update Event
Affected schema:
- Core-owned `SessionTodo.Info`.
- Global `todo.updated` event registration.
Change:
- Register the todo update event from Core session-todo ownership and expose the existing todo item shape to the Core V2 tool.
Reason:
- Embedded V2 `todowrite` execution needs Core-owned persistence and update publication without importing legacy application orchestration.
Compatibility:
- The todo table and public todo update event shape are preserved.
- No database migration is required.
## 2026-06-03: Added Core V2 Tool Schemas
Affected schema:
- New `todowrite` tool parameters and success payload.
- New `question` tool parameters and success payload.
- New `webfetch` tool parameters and success payload.
Change:
- Add a todo replacement-list tool using `SessionTodo.Info` items.
- Add a question tool using ordered `QuestionV2.Prompt` values and ordered answer arrays.
- Add an HTTP(S) fetch tool with explicit `text`, `markdown`, and `html` formats, bounded timeout input, and optional managed output resource metadata.