-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add Option To Toggle gitignore Respect on Search Tools #3642
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@moonshot-ai/kimi-code": minor | ||
| --- | ||
|
|
||
| Add `tools.search.follow_gitignore = false` to config.toml to make Glob and Grep search gitignored files (such as build outputs) by default. The existing `include_ignored` parameter on each tool still works as a per-call override. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,11 @@ export const TOOLS_SECTION = 'tools'; | |
| export const ToolsConfigSchema = z.object({ | ||
| enabled: z.array(z.string()).optional(), | ||
| disabled: z.array(z.string()).optional(), | ||
| search: z | ||
| .object({ | ||
| follow_gitignore: z.boolean().default(true), | ||
| }) | ||
| .optional(), | ||
|
Comment on lines
+10
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| }); | ||
|
|
||
| export type ToolsConfig = z.infer<typeof ToolsConfigSchema>; | ||
|
|
||
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.
This changeset contains two sentences: one describing the new config setting and another describing the per-call override. Repository workflow requires changesets to contain exactly one short user-facing sentence stating only what changed, so combine or remove the second sentence before merging.
AGENTS.md reference: AGENTS.md:L86-L88
Useful? React with 👍 / 👎.