Pauses in opencode execution. #2065

Open
opened 2026-02-16 17:34:00 -05:00 by yindo · 8 comments
Owner

Originally created by @thawkins on GitHub (Oct 13, 2025).

Originally assigned to: @thdxr on GitHub.

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

Originally created by @thawkins on GitHub (Oct 13, 2025). Originally assigned to: @thdxr on GitHub. 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
Author
Owner

@github-actions[bot] commented on GitHub (Oct 13, 2025):

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

  • #3094: Performance noticeably drops with very long history - describes performance issues and UI becoming jumpy during long operations
  • #3106: Opencode Silent on Reaching Provider Quota - mentions remaining in "generating" state without clear indication of completion
  • #3089: rg hangs indefinitely in 0.14.7 - reports hanging behavior in recent version

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

@github-actions[bot] commented on GitHub (Oct 13, 2025): This issue might be a duplicate of existing issues. Please check: - #3094: Performance noticeably drops with very long history - describes performance issues and UI becoming jumpy during long operations - #3106: Opencode Silent on Reaching Provider Quota - mentions remaining in "generating" state without clear indication of completion - #3089: `rg` hangs indefinitely in 0.14.7 - reports hanging behavior in recent version Feel free to ignore if none of these address your specific case.
Author
Owner

@OpeOginni commented on GitHub (Oct 13, 2025):

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

@OpeOginni commented on GitHub (Oct 13, 2025): What model and what type of operation example causes the issue?
Author
Owner

@thawkins commented on GitHub (Oct 13, 2025):

I was using grok-fast-code-1 I was running an implementation pass on a
phase of development after building a plan from a specification markdown
file.

I also been seeing some json errors coming back from the model I belive, I
will try to capture one and

On Mon, Oct 13, 2025, 17:36 OpeOginni @.***> wrote:

OpeOginni left a comment (sst/opencode#3124)
https://github.com/sst/opencode/issues/3124#issuecomment-3396890929

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


Reply to this email directly, view it on GitHub
https://github.com/sst/opencode/issues/3124#issuecomment-3396890929, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAADRSMHGSBBPYFMT34ZTFT3XN6CBAVCNFSM6AAAAACJAGB2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWHA4TAOJSHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

@thawkins commented on GitHub (Oct 13, 2025): I was using grok-fast-code-1 I was running an implementation pass on a phase of development after building a plan from a specification markdown file. I also been seeing some json errors coming back from the model I belive, I will try to capture one and On Mon, Oct 13, 2025, 17:36 OpeOginni ***@***.***> wrote: > *OpeOginni* left a comment (sst/opencode#3124) > <https://github.com/sst/opencode/issues/3124#issuecomment-3396890929> > > What model and what type of operation example causes the issue? > > — > Reply to this email directly, view it on GitHub > <https://github.com/sst/opencode/issues/3124#issuecomment-3396890929>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAADRSMHGSBBPYFMT34ZTFT3XN6CBAVCNFSM6AAAAACJAGB2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWHA4TAOJSHE> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@OpeOginni commented on GitHub (Oct 13, 2025):

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"]
    }
  }
@OpeOginni commented on GitHub (Oct 13, 2025): 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 ```json { "$schema": "https://opencode.ai/config.json", "watcher": { "ignore": ["Cargo.lock"] } } ```
Author
Owner

@thawkins commented on GitHub (Oct 13, 2025):

Is it worth ignoring the target folder too?

On Mon, Oct 13, 2025, 17:49 OpeOginni @.***> wrote:

OpeOginni left a comment (sst/opencode#3124)
https://github.com/sst/opencode/issues/3124#issuecomment-3396952277

Could not be the 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"]
}
}


Reply to this email directly, view it on GitHub
https://github.com/sst/opencode/issues/3124#issuecomment-3396952277, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAADRSODHJHBWBKYLONJ7CL3XN7TRAVCNFSM6AAAAACJAGB2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWHE2TEMRXG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

@thawkins commented on GitHub (Oct 13, 2025): Is it worth ignoring the target folder too? On Mon, Oct 13, 2025, 17:49 OpeOginni ***@***.***> wrote: > *OpeOginni* left a comment (sst/opencode#3124) > <https://github.com/sst/opencode/issues/3124#issuecomment-3396952277> > > Could not be the 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"] > } > } > > — > Reply to this email directly, view it on GitHub > <https://github.com/sst/opencode/issues/3124#issuecomment-3396952277>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAADRSODHJHBWBKYLONJ7CL3XN7TRAVCNFSM6AAAAACJAGB2GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJWHE2TEMRXG4> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@OpeOginni commented on GitHub (Oct 13, 2025):

@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.

@OpeOginni commented on GitHub (Oct 13, 2025): @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.
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

@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"]
}
}

@rekram1-node commented on GitHub (Oct 13, 2025): @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"] } }
Author
Owner

@rekram1-node commented on GitHub (Oct 13, 2025):

@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

@rekram1-node commented on GitHub (Oct 13, 2025): @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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2065