Skip to content

[FEATURE]: add a bounded wait tool for asynchronous work #24888

Closed as not planned

Description

@Marxist-Leninist

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

Add a built-in wait tool that lets an agent pause the current turn for a bounded amount of time, optionally returning early when an external condition becomes true.

This helps with workflows where the model needs to continue in the same chat after an asynchronous event, such as a download finishing, a dev server becoming ready, a background process exiting, or a log file showing a completion pattern. Today the agent has to burn shell slots, ask the user to come back, or repeatedly poll through ad hoc commands.

Suggested behavior:

  • fixed bounded waits with a visible reason
  • cancellable waits that respect the existing abort signal
  • optional early-return conditions for file readiness, URL readiness, process exit, and log pattern matching
  • progress metadata so the UI can show what the agent is waiting on
  • hard caps on wait duration and polling intervals to avoid runaway waits

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 29, 2026
  2. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  3. github-actions commented on Jul 3, 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