From 4290874f4334c974ccad7e8f66279fa4d385a82a Mon Sep 17 00:00:00 2001 From: David Ibia Date: Wed, 7 Oct 2026 21:28:32 +0100 Subject: [PATCH] fix(omo): read the event from omo's UserPromptSubmit payload omo names the event in "event" for UserPromptSubmit, without the "hook_event_name" field its Stop and Notification payloads carry. The script only read hook_event_name, so it ignored every prompt and the blue working marker never showed. Read either field. --- .local/bin/omo-notify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.local/bin/omo-notify b/.local/bin/omo-notify index 605ad2b..0dda6a6 100755 --- a/.local/bin/omo-notify +++ b/.local/bin/omo-notify @@ -13,7 +13,8 @@ export PATH="/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:$PATH" payload=$(cat) field() { jq -r "$1 // empty" <<<"$payload" 2>/dev/null; } -event=$(field '.hook_event_name') +# omo's UserPromptSubmit payload names the event only in "event". +event=$(field '.hook_event_name // .event') project=$(basename "$(field '.cwd')") # Only top-level sessions live under .omo/agent/sessions/. Subagents, team members