[GH-ISSUE #144] bug: Search tool ignores .gitignore and includes unwanted files in results #71

Closed
opened 2026-10-18 14:02:38 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @JKGeovision on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/open-webui/computer/issues/144

Hello,

I've discovered that the search tool does not respect the .gitignore file, causing temporary files, cache directories, and other chats to appear in search results and unnecessarily burn through tokens.

Steps to reproduce:

  1. Add a directory or file pattern to your .gitignore file (e.g., tmp/, cache/, or chats/).
  2. Ensure files matching those patterns exist in the repository.
  3. Let the agent search for a problem
  4. Observe that the ignored files/directories still appear in the search results.

Expected behavior:
Files and directories listed in .gitignore should be excluded from search results, keeping output clean and token-efficient.

Actual behavior:
All files are returned regardless of .gitignore rules, including temporary files and unrelated chat data.

Thank you for looking into this!
Joshua Krimmer

Originally created by @JKGeovision on GitHub (Jul 14, 2026). Original GitHub issue: https://github.com/open-webui/computer/issues/144 Hello, I've discovered that the search tool does not respect the `.gitignore` file, causing temporary files, cache directories, and other chats to appear in search results and unnecessarily burn through tokens. **Steps to reproduce:** 1. Add a directory or file pattern to your `.gitignore` file (e.g., `tmp/`, `cache/`, or `chats/`). 2. Ensure files matching those patterns exist in the repository. 3. Let the agent search for a problem 4. Observe that the ignored files/directories still appear in the search results. **Expected behavior:** Files and directories listed in `.gitignore` should be excluded from search results, keeping output clean and token-efficient. **Actual behavior:** All files are returned regardless of `.gitignore` rules, including temporary files and unrelated chat data. Thank you for looking into this! Joshua Krimmer
Author
Owner

@owui-terminator[bot] commented on GitHub (Jul 14, 2026):

🔍 Related Issues Found

I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:

  1. 🟣 #143 Issue #143
    This is the only nearby issue found around .gitignore behavior in the same project, but it is about the tool adding itself to .gitignore rather than search respecting .gitignore. It may still be tangentially relevant to ignore-file handling.
    by unknown

💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.

This comment was generated automatically. React with 👍 if helpful, 👎 if not.

<!-- gh-comment-id:4972537646 --> @owui-terminator[bot] commented on GitHub (Jul 14, 2026): <!-- terminator-bot:related-issues-reply --> 🔍 **Related Issues Found** I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions: 1. 🟣 [#143](https://github.com/open-webui/computer/issues/143) **Issue #143** *This is the only nearby issue found around .gitignore behavior in the same project, but it is about the tool adding itself to .gitignore rather than search respecting .gitignore. It may still be tangentially relevant to ignore-file handling.* *by unknown* --- 💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead. *This comment was generated automatically.* React with 👍 if helpful, 👎 if not.
Author
Owner

@tjbck commented on GitHub (Jul 16, 2026):

Should be addressed, Testing wanted here!

<!-- gh-comment-id:4996335392 --> @tjbck commented on GitHub (Jul 16, 2026): Should be addressed, Testing wanted here!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/computer#71
No description provided.