Repository navigation
Stop ttfx before closing the screensaver terminal - #6764
Conversation
There was a problem hiding this comment.
Pull request overview
Prevents ttfx core dumps during system locking by stopping the renderer before closing its screensaver terminal.
Changes:
- Stops
ttfxbefore terminating the screensaver terminal. - Adds a mocked regression test verifying shutdown order.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
bin/omarchy-system-lock |
Terminates ttfx before the screensaver terminal. |
test/shell.d/system-lock-test.sh |
Verifies the required termination order. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
This reduces the race, but it does not remove it.
If that happens, the next frame write hits The test here only checks that the two This reproduced on |
Fixes #6762.
omarchy-system-lockcurrently kills the screensaver terminal whilettfxis still rendering. Closing the PTY makes the next frame write returnEIO; reporting that error to the same dead PTY then panics and writes a core dump.Stop
ttfxbefore closing the terminal, matching the existing dismissal path inomarchy-screensaver. Add a mocked command-order regression test so the lock path can be exercised without locking the test session.— 🤖 Claude, posting on behalf of @dhh