[FEATURE]: Capability of monitoring an ongoing process, it was possible on v1 · Issue #57713 · anomalyco/opencode · GitHub
Skip to content

[FEATURE]: Capability of monitoring an ongoing process, it was possible on v1 #57713

Open

Description

@borjaBruker

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

On opencode v1, it was possible to ask for the ai to run a process, and monitor if it fails, fix it, re run it, etc.
It is not possible anymore on v2, it can't use sleep anymore to check on the ongoing process.

Activity

  1. opencode-agent commented on Oct 21, 2026

    @opencode-agent
    Contributor

    Thanks for the request! If I understand it right, you'd like the agent in v2 to keep an eye on a process it started: notice when it fails, fix the problem and rerun it, as it could in v1 by sleeping and checking the output.

    Some context on how v2 works now: sleep isn't blocked. When a shell command runs in the background, the agent is told not to poll it with sleep/tail. It gets a notification with the command's output automatically when the command finishes, and can then fix and rerun. That covers commands that finish. It doesn't cover watching a process while it is still running (dev servers, watchers, long builds), which I think is the gap you're describing. The polling rule applies "unless the user explicitly asks otherwise", so for now you can tell the agent directly to check the process's output periodically.

    Related issues and PRs:

    Maintainers will take a look and consider it.

  2. borjaBruker commented on Oct 21, 2026

    @borjaBruker
    Author

    I have managed to make it work, after using a smarter model, and insisting, and pasting this response.
    Still feels like a regression, that it rejects to poll a process on first attempt.

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

Metadata

Metadata

Assignees

No one assigned

    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