Skip to content

[sub-agents] Agents not killed on cancel #23534

Closed as not planned
Closed as not planned

Description

@tadghh

Description

Image

Plugins

omo

OpenCode version

1.14.19

Steps to reproduce

  1. start a background/subagent
  2. kill it, keep the session running
  3. check inference provider api metrics

Screenshot and/or share link

No response

Operating System

Manjaro

Terminal

Kitty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 20, 2026
  2. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about API usage/billing continuing after you cancel a sub-agent (rather than purely the UI not responding to stop), it may be worth noting that distinction to help prioritize the fix.

  3. tadghh commented on Apr 21, 2026

    @tadghh
    Author

    YES

  4. lrq3000 commented on Apr 26, 2026

    @lrq3000

    OpenCode Server needs to offer a systematic way to kill all agents and subagents on interrupt, otherwise zombie sessions can continue being open in the background or at least the sessions status may not be reflecting the true session state because of zombie sessions that cannot be killed.

    Having a way to force kill a session completely would allow the user to manually reset a session state in case of any error happening, this is extremely important just as task managers are crucial for any OS.

  5. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. 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