Skip to content

fix: java process handshake hanging - #8462

Merged
mergify[bot] merged 2 commits into
mainfrom
cal/modrinth-debug-analysis-23019f
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
cal/modrinth-debug-analysis-23019f

Conversation

@IMB11

@IMB11 IMB11 commented Nov 26, 2026

Copy link
Copy Markdown
Member
  • fix some issues where users got # Process exited with status: exit status: 1

@github-actions

Copy link
Copy Markdown
Contributor

Pull request changelog

App

Added

Changed

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Queue requested — the merge queue status continues in this comment ↓.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

security Security Review

This PR appears safe to merge from a security standpoint.

What was checked
  • The new launch-failure path only affects the user's own local game process: it kills the child, cleans up its database row, and returns an error to the same caller who started the launch.
  • The last 10 lines of game output added to the error message come from the launched game's stdout/stderr; the UI renders this as plain text and mods already run local code, so no new trust boundary is crossed.
  • The shared log buffer and log file stay scoped per instance: the buffer is cleared on each launch and keyed by instance_id, and the reader tasks write to that instance's own log file.
  • The new 120-second launch timeout and 5-second reader drain only bound the user's own local launch; they do not expose any endpoint or let another user crash or stall the launcher.

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

🛑 Queue command cancelled

Queue requested — the merge queue status continues in this comment ↓.

@greptile-apps

greptile-apps Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The PR starts reading Java output before the handshake and bounds how long the launcher waits for startup.

  • Minecraft launches stop waiting when the handshake stalls or the process exits.

Reviews (2) · Last reviewed commit: "fix: rev" · Reviewed by Greptile

Comment thread packages/app-lib/src/state/process.rs Resolved
@mergify

mergify Bot commented Nov 26, 2026

Copy link
Copy Markdown

queue

🛑 The queue request has been cancelled: new commits were pushed

Details

@IMB11 pushed to this pull request after queue was requested. Review the new commits and request it again.

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 1c754c6 at 17:14 UTC

Less than a minute in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 17:13 · rule default · triggered by @IMB11 with the merge queue checkbox
  • ✅ Passed · draft #8469
  • ✅ Merged 17:14 · 1c754c6
2 merge conditions met
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-skipped = Lint and Test
    • check-neutral = Lint and Test
    • check-success = Lint and Test

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@mergify
mergify Bot merged commit 1c754c6 into main Nov 26, 2026
9 checks passed
@mergify
mergify Bot deleted the cal/modrinth-debug-analysis-23019f branch November 26, 2026 17:14
@mergify mergify Bot removed the queued label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants