Skip to content

[FEATURE]: Limit the directory scan depth. #36053

Closed as not planned
Closed as not planned

Description

@Ark-uki

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Please add the ability to limit the depth of OpenCode directory scanning.

I use OpenCode with an AI Agent to assist me in compiling an Android ROM. The AOSP source code is extremely large and complex. When I started the OpenCode program, I immediately heard the hard drive storing the source code begin reading and writing (I stopped hearing this when I terminated the program). After start building, OpenCode's disk scanning severely slowed down the hard drive I/O, causing the compilation progress to be significantly slowed down. Any attempt to edit files became very slow (although CPU usage was not high).

Other tools like Codex or OpenClaw does not have this issue. I think they might only scan directories manually.

Activity

  1. github-actions commented on Jul 9, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of or related to existing issues. Please check:

    These issues describe similar problems with opencode scanning large directory trees and impacting performance. Your feature request for a configurable scan depth limit may address the root cause of several of these.

  2. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions