GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix windows e2e backend not stopping on sigterm waiting 10s for no reason by Hona · Pull Request #21781 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Apr 9, 2026

Copy link
Copy Markdown
Member

Summary

  • treat worker backends that exit on SIGTERM with only signalCode set as already stopped
  • avoid the extra 10 second wait and forced SIGKILL path on Windows when the process already exited cleanly

Validation

  • not rerun in the clean PR worktree

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
fix windows e2e backend stop on sigterm
e34db31
Copilot AI review requested due to automatic review settings April 9, 2026 23:42
@Hona
Hona requested a review from adamdotdevin as a code owner April 9, 2026 23:42
Copilot started reviewing on behalf of Hona April 9, 2026 23:43
View session
@Hona Hona changed the title fix windows e2e backend stop on sigterm fix windows e2e backend stop on sigterm waiting 10s for no reason Apr 9, 2026
Copilot AI reviewed Apr 9, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the e2e backend shutdown logic to correctly detect processes that have already exited due to SIGTERM (notably on Windows), avoiding an unnecessary wait + forced SIGKILL.

Changes:

  • Add a helper to treat signalCode-only exits as “already stopped”.
  • Use the new predicate in waitExit() and stop() to skip redundant termination steps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/app/e2e/backend.ts
Comment on lines +47 to +49
function done(proc: ReturnType<typeof spawn>) {
return proc.exitCode !== null || proc.signalCode !== null
}

Copilot AI Apr 9, 2026

Copy link

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The helper name done is pretty generic and doesn’t communicate that it specifically means “child process has exited” (exitCode or signalCode is set). Consider renaming to something more explicit (e.g. hasExited / isStopped) to make the stop logic easier to read/maintain.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot uses AI. Check for mistakes.
@Hona Hona changed the title fix windows e2e backend stop on sigterm waiting 10s for no reason fix windows e2e backend not stopping on sigterm waiting 10s for no reason Apr 9, 2026
@Hona
Hona merged commit f327584 into anomalyco:dev Apr 10, 2026
15 of 16 checks passed

Uh oh!

There was an error while loading. Please reload this page.

opencode-agent Bot pushed a commit that referenced this pull request Apr 10, 2026
@Hona opencode
fix windows e2e backend not stopping on sigterm waiting 10s for no re…
98874a0
…ason (#21781)
mrsimpson pushed a commit to mrsimpson/opencode that referenced this pull request Apr 14, 2026
@Hona @mrsimpson
fix windows e2e backend not stopping on sigterm waiting 10s for no re…
f19af41
…ason (anomalyco#21781)
@Astro-Han Astro-Han mentioned this pull request Apr 22, 2026
Improve Windows compatibility and restore Windows unit signal Astro-Han/pawwork#141
Closed
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@Hona opencode
fix windows e2e backend not stopping on sigterm waiting 10s for no re…
ebc6a1d
…ason (anomalyco#21781)
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@Hona opencode
fix windows e2e backend not stopping on sigterm waiting 10s for no re…
3866f59
…ason (#21781)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.