-
Notifications
You must be signed in to change notification settings - Fork 2.4k
remove Tool Selection Strategy preview #6250
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the experimental "Tool Selection Strategy" (router) feature, which was slow and has been superseded by newer features like Extension Manager and Code Search.
Key changes:
- Removed all router-related Rust code including selector, manager, and indexing modules
- Removed UI components and API endpoints for router configuration
- Cleaned up documentation and environment variable references
Reviewed changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| ui/desktop/src/components/settings/tool_selection_strategy/ToolSelectionStrategySection.tsx | Deleted entire React component for router settings UI |
| ui/desktop/src/components/settings/chat/ChatSettingsSection.tsx | Removed router section card from chat settings |
| ui/desktop/src/api/types.gen.ts | Removed generated TypeScript types for router API |
| ui/desktop/src/api/sdk.gen.ts | Removed router API client function and imports |
| ui/desktop/openapi.json | Removed router endpoint and request schema from OpenAPI spec |
| documentation/docs/guides/managing-tools/tool-router.md | Deleted comprehensive router feature documentation |
| documentation/docs/guides/managing-tools/index.md | Removed router card from tools guide index |
| documentation/docs/guides/environment-variables.md | Removed GOOSE_ENABLE_ROUTER environment variable documentation |
| crates/goose/tests/agent.rs | Removed tool_route_manager from test context setup |
| crates/goose/src/prompts/system.md | Removed tool_selection_strategy template variable |
| crates/goose/src/prompts/router_tool_selector.md | Deleted router prompt template file |
| crates/goose/src/posthog.rs | Removed router_enabled telemetry property |
| crates/goose/src/execution/manager.rs | Removed tool_route_manager from agent context setup |
| crates/goose/src/agents/tool_router_index_manager.rs | Deleted tool indexing manager module |
| crates/goose/src/agents/tool_route_manager.rs | Deleted main router management module |
| crates/goose/src/agents/snapshots/*.snap | Updated test snapshots to remove router instructions |
| crates/goose/src/agents/router_tools.rs | Deleted router tool definitions module |
| crates/goose/src/agents/router_tool_selector.rs | Deleted LLM-based tool selector implementation |
| crates/goose/src/agents/reply_parts.rs | Simplified tool preparation by removing router logic |
| crates/goose/src/agents/prompt_manager.rs | Removed router-enabled state and prompt generation |
| crates/goose/src/agents/mod.rs | Removed router module declarations |
| crates/goose/src/agents/extension_manager_extension.rs | Simplified extension management by removing router index updates |
| crates/goose/src/agents/extension_manager.rs | Removed tool_route_manager from platform context |
| crates/goose/src/agents/extension.rs | Removed tool_route_manager from PlatformExtensionContext struct |
| crates/goose/src/agents/code_execution_extension.rs | Removed tool_route_manager from test contexts |
| crates/goose/src/agents/agent.rs | Removed router manager, tool dispatch, and all router-related methods |
| crates/goose-server/src/routes/agent.rs | Deleted update_router_tool_selector endpoint and route |
| crates/goose-server/src/openapi.rs | Removed router endpoint from API documentation |
| crates/goose-cli/src/session/builder.rs | Removed router context setup and disable_router_for_recipe call |
| crates/goose-cli/src/commands/configure.rs | Removed router configuration dialog and menu option |
|
b051f12 to
9fc20ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 32 out of 32 changed files in this pull request and generated no new comments.
baxen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - i tested the app and the CLI and no issues
028c4e4 to
9fc20ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 32 out of 32 changed files in this pull request and generated no new comments.
* main: (155 commits) remove Tool Selection Strategy preview (#6250) fix(cli): correct bash syntax in terminal integration functions (#6181) fix : opening a session to view it modifies session history order in desktop (#6156) test: fix recipe and audio tests to avoid side effects (#6231) chore: Update gemini versions in test_providers.sh (#6246) feat: option to stream json - jsonl really (#6228) feat: add mcp app renderer (#6095) docs: update skills extension to support .agents/skills directories (#6199) Add YouTube short to Chrome DevTools MCP tutorial (#6244) docs: Caveats for privacy information in logs documentation (#6218) move goose issue solver to opus (#6233) feat: improved UX for tool calls via execute_code (#6205) Blog: Code Mode Doesn't Replace MCP (#6227) fix: prevent keychain requests during cargo test (#6219) test: fix test_max_turns_limit slow execution and wrong message type (#6221) Skills vs MCP blog (#6220) Add blog post: Does Your AI Agent Need a Plan? (#6209) fix(ui): enable MCP UI to send a prompt message when an element is clicked (#6207) docs: param option for recipe deeplink/open (#6206) docs: edit in place or fork session (#6203) ...
Summary
Removed the "Tool Selection Strategy" preview feature. It was painfully slow and our newer features Extension Manager and Code Search cover this intent.
Type of Change
AI Assistance
Testing
Ran test suite locally