Add Epiphany jobsUpdated notification

This commit is contained in:
Meta Vens 2026-04-26 15:02:45 +01:00
commit 48d6820d7d
22 changed files with 923 additions and 23 deletions

View file

@ -302,6 +302,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
"thread/epiphany/stateUpdated",
start_index=missing_notification_start,
)
client.require_no_notification(
"thread/epiphany/jobsUpdated",
start_index=missing_notification_start,
)
update_notification_start = len(client.notifications)
update = client.send(
@ -327,6 +331,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
"thread/epiphany/stateUpdated",
start_index=jobs_notification_start,
)
client.require_no_notification(
"thread/epiphany/jobsUpdated",
start_index=jobs_notification_start,
)
final_read = client.send("thread/read", {"threadId": thread_id, "includeTurns": False})
assert final_read is not None
@ -360,6 +368,10 @@ def run_smoke(args: argparse.Namespace) -> dict[str, Any]:
"thread/epiphany/stateUpdated",
start_index=jobs_notification_start,
),
"jobsUpdatedNotificationCount": client.count_notifications(
"thread/epiphany/jobsUpdated",
start_index=jobs_notification_start,
),
"finalReadRevision": final_read["thread"]["epiphanyState"]["revision"],
}