Skip to content

sdk: server.close() does not terminate underlying opencode process when run via wrappers (e.g., Deno) #21628

@sigmaSd

Description

@sigmaSd

Description

Currently, calling server.close() in the SDK only terminates the immediate process wrapper (like deno) but leaves the actual opencode binary running as an orphaned process. This results in the network port remaining occupied and requiring manual cleanup (e.g., fuser -k).

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions