Skip to content

fix(opencode): turn.idle only when active and ctrl are undefined - #34952

Closed
Mte90 wants to merge 2 commits into
anomalyco:devfrom
Mte90:dev
Closed

Mte90 wants to merge 2 commits into
anomalyco:devfrom
Mte90:dev

Conversation

@Mte90

@Mte90 Mte90 commented Jul 2, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #26063
I think that closes also #33028

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

immagine

As you can see in this screen I didn't "interrupted" but is happening automatically.

Users experience intermittent "Tool execution aborted" errors with stack=undefined. The error occurs during tool execution, particularly with file editing or command execution.
Various tests with a session with the issue I was able to check that this fix worked.
In my case a session also resumed asking to edit a file there was this error, but clearly in this way there aren't any subagent or stuff in queue.
I tried with removing the opencode.db file and restarting opencode but using the same session there was again that error. Happens with native tools or plugin tools.

There was various hints that the issue it wasn't the model or provider but the time taking to get the tool from LLM and timeouts but at the end it was an edge cases on checking when the main agent doest' have anything in queue but the tool execution it was stopped without generating any stacktrace.

How did you verify your code works?

I tested with the same session that wasn't working.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Hey! Your PR title Emit turn.idle only when active and ctrl are undefined doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@Mte90 Mte90 changed the title Emit turn.idle only when active and ctrl are undefined fix(agent): turn.idle only when active and ctrl are undefined Jul 2, 2026
@Mte90 Mte90 changed the title fix(agent): turn.idle only when active and ctrl are undefined fix(opencode): turn.idle only when active and ctrl are undefined Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool execution aborted/terminated

1 participant