Skip to content

Add write-only mode option for todo tool #260688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Aug 8, 2025

The todo tool now supports a write-only mode to prevent unnecessary read operations during new chat turns, since tool invocations remain in context for the agent.

Changes

New Configuration Setting:

  • Added chat.todoListTool.writeOnly boolean setting (default: false)
  • Marked as experimental to match the existing todo tool setting

Dynamic Schema Generation:

  • Created createManageTodoListToolData(writeOnly) function for conditional schema building
  • In write-only mode: removes the operation parameter entirely, only requires todoList
  • In normal mode: preserves existing behavior with both 'read' and 'write' operations

Tool Implementation:

  • Updated ManageTodoListTool constructor to accept writeOnly parameter
  • Modified invoke() method to always perform write operations in write-only mode
  • Adapted prepareToolInvocation() to handle optional operation parameter
  • Tool registration now reads configuration to instantiate appropriate version

Example Usage

Normal mode (existing behavior):

{
  "operation": "write",
  "todoList": [{"id": 1, "title": "Fix bug", "description": "...", "status": "not-started"}]
}

Write-only mode (new):

{
  "todoList": [{"id": 1, "title": "Fix bug", "description": "...", "status": "not-started"}]
}

The write-only mode eliminates redundant context checking while maintaining full backward compatibility when the setting is disabled.

Fixes #260687.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • electronjs.org
    • Triggering command: node-gyp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Copilot Copilot AI changed the title [WIP] Option for write-only todo tool Add write-only mode option for todo tool Aug 8, 2025
Copilot finished work on behalf of digitarald August 8, 2025 23:23
@Copilot Copilot AI requested a review from digitarald August 8, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option for write-only todo tool
2 participants