feat(kanban): carry the review handoff summary into the wake turn
`completed` already puts the worker's summary inside the synthetic wake turn, so the woken creator sees what was done. `review_requested` did not: the summary rode the passive ping only, and the wake turn said just "handed off for review", forcing the woken reviewer to re-read the board (and losing the PR link the worker had already written). Reuse the same first-line handoff the `completed` branch builds, so the existing `gateway.kanban.wake.handoff` string renders it — no new locale keys, no change to the passive message.
This commit is contained in:
@@ -613,7 +613,16 @@ class GatewayKanbanWatchersMixin:
|
||||
# first-class review lane. Wake the origin thread.
|
||||
handoff = ""
|
||||
if ev.payload and ev.payload.get("summary"):
|
||||
handoff = f"\n{str(ev.payload['summary'])[:200]}"
|
||||
summary = str(ev.payload["summary"])
|
||||
handoff = f"\n{summary[:200]}"
|
||||
# Carry the worker's handoff into the wake turn
|
||||
# like ``completed`` does: a reviewer woken with
|
||||
# a bare "ready for review" has to re-read the
|
||||
# board to learn what was implemented.
|
||||
lines = summary.strip().splitlines()
|
||||
wake_handoff = (
|
||||
lines[0][:200] if lines else summary[:200]
|
||||
)
|
||||
msg = (
|
||||
f"👀 {board_tag}{tag}Kanban {sub['task_id']} ready for review"
|
||||
f" — {title}{handoff}"
|
||||
|
||||
Reference in New Issue
Block a user