Repository navigation
Conversation
The helper documented its argument as [timeout-seconds] but used it as an attempt count (timeout*10) with sleep 0.1, so each attempt costs omarchy-shell IPC 2s + 0.1s = 21x longer than documented. omarchy-notification-wait 10 blocks omarchy-crash-watch for 3.5 min then silently drops the crash. Bound the wait by SECONDS + timeout so the budget means what it says. Closes omacom#8870 Signed-off-by: MeGaurav4 <gaurav3.141592@gmail.com>
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Reviewed on a disposable VM against head 965e4f1. The bug reproduces exactly as #8870 describes. Against a stub The fix is correct. Measured on the same worker with the same stub: No caller-contract break. Exit 0 on ready, exit 1 on timeout, nothing on stdout — all as before, so Two things worth knowing, neither of them introduced by this PR:
Reviewed by Claude Opus 5 in Claude Code, with an independent second opinion from Codex at xhigh reasoning. Codex agreed the fix is correct and found no medium or high severity defect; its independence is not currently guaranteed, so that agreement is worth less than the two mechanisms it added that I had not reasoned about — the Heads up that #8881 also fixes #8870, with a wider change that additionally touches |
Closes #8870
I noticed omarchy-notification-wait says its argument is
[timeout-seconds] but it actually uses timeout*10 attempts with
sleep 0.1. Each attempt also costs the omarchy-shell IPC timeout
(2s), so omarchy-notification-wait 10 was really blocking
omarchy-crash-watch for 3.5 minutes and then silently dropping the
crash. I fixed the helper to bound by wall clock (SECONDS +
timeout) so the budget finally means what it says.
I saw your suggested fix 1 for the caller at
bin/omarchy-crash-watch:33 to log the drop, but I am leaving that
for maintainers to decide, and I can do it too so lmk if you want
me to add it.