fix(runtime): emit workplan_id in progress posts (STATE-WP-0070 T04)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1m1s

This commit is contained in:
codex 2026-07-12 00:20:58 +02:00
parent 99f25b6427
commit b8dac443f3
3 changed files with 7 additions and 4 deletions

View file

@ -93,8 +93,9 @@ def execute(
"summary": summary,
"event_type": event.get("event_type", "note"),
}
if event.get("workstream_id"):
payload["workstream_id"] = event["workstream_id"]
workplan_id = event.get("workplan_id") or event.get("workstream_id")
if workplan_id:
payload["workplan_id"] = workplan_id
try:
resp = httpx.post(
api_base.rstrip("/") + "/progress/",