Skip to content

Pauses in opencode execution. #3124

Closed
Closed

Description

@thawkins

When performing large operations, the tool often seems to return to the "enter send" ready mode, and sit there for 30 seconds to a minute, it then returns to the "working .... " state. its often very hard to determine if the tool has finished working.

My codebase is on https://github.com/thawkins/gcodekit

Activity

  1. github-actions commented on Oct 13, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. OpeOginni commented on Oct 13, 2025

    @OpeOginni
    Contributor

    What model and what type of operation example causes the issue?

  3. thawkins commented on Oct 13, 2025

    @thawkins
    Author
  4. OpeOginni commented on Oct 13, 2025

    @OpeOginni
    Contributor

    This could not be a fix, but its still best practice, you can add your large lock file to be ignored by OpenCode, that way the model doesnt mistakenly use it as context, and spend forever on it.

    Create and add this to a opencode.json file in the root of the project

    {
        "$schema": "https://opencode.ai/config.json",
        "watcher": {
          "ignore": ["Cargo.lock"]
        }
      }
  5. thawkins commented on Oct 13, 2025

    @thawkins
    Author
  6. OpeOginni commented on Oct 13, 2025

    @OpeOginni
    Contributor

    @thawkins Depends on you, if it adds no important context to your agent, but its large enough to confuse it, then its best to add it as well.

  7. rekram1-node commented on Oct 13, 2025

    @rekram1-node
    Contributor

    @OpeOginni @thawkins the file watcher shouldn't be related here

    Firstly it is only enabled if you have set OPENCODE_EXPERIMENTAL_WATCHER to true and most people don't have that

    Also it doesn't have anything to do with context given to llm

    So no need to do this:

    Create and add this to a opencode.json file in the root of the project
    {
    "$schema": "https://opencode.ai/config.json",
    "watcher": {
    "ignore": ["Cargo.lock"]
    }
    }

  8. rekram1-node commented on Oct 13, 2025

    @rekram1-node
    Contributor

    @thawkins in regards to

    When performing large operations, the tool often seems to return to the "enter send" ready mode, and sit there for 30 seconds to a minute, it then returns to the "working .... " state. its often very hard to determine if the tool has finished working.

    Are you saying when the llm is making edits and stuff? Just trying to confirm what you mean by "large operations" here.

    There is a chance it could involve the rust lsp if you see long hangs on file edits to rust files which would probably be fixed by:

    {
      "$schema": "https://opencode.ai/config.json",
      "lsp": {
        "rust": {
          "disabled": true
        }
      }
    }
    

    But if it is just in general hangs and not limited to file edits then ignore this suggestion since there is no need to add that config needlessly

  9. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 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