Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Added an optional order property ('pre' | 'post') to the ExtraTool type, allowing custom tools to be displayed before or after the default options.

Copilot AI review requested due to automatic review settings December 13, 2025 04:46
Copy link
Contributor

Copilot AI left a 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 adds support for specifying the display order of custom tools in the tool selection interface. Extra tools can now be positioned before or after the built-in options (Biome, ESLint, Prettier) using an optional order property.

Key changes:

  • Added order?: 'pre' | 'post' property to the ExtraTool type
  • Modified getTools function to filter and position tools based on their order property
  • Updated built-in tool labels to use - separator instead of parentheses
  • Changed regex patterns in runCommand from regex to string literals

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@chenjiahan chenjiahan merged commit 4b96446 into main Dec 13, 2025
4 checks passed
@chenjiahan chenjiahan deleted the tool_order_1213 branch December 13, 2025 04:53
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.

2 participants