Files
loki/scripts
CatoandClaude Fable 5.1 81f4eeeb98 feat(loki): a dispatched run reports back into the thread that asked for it (#697)
A request typed into /loki ended at "Dispatch queued". The run closed hours
later into run_events, a push notification and Telegram — everywhere except
the conversation the person was typing in. Learning whether the work happened
meant leaving Loki for GitHub, which is the trip this product exists to make
unnecessary.

- Chat dispatches now carry the conversation id and opt into close
  notification. On close, notifyRunClosed also writes an assistant turn of
  kind "outcome" into that thread: what happened, the pull request found in
  the repo during the run (which merges on its own once green) or the honest
  absence of one, and the project's live URL (run-outcome-format.ts, pure and
  tested; run-outcome-post.ts does the lookups).
- While the newest turn in a thread is still a dispatch, the workspace
  re-reads the thread every 20s so the outcome appears without a reload.
- The dispatch closing and the box agent contract now ask for auto-merge on
  the PR the agent opens: CI is the reviewer, a green PR merges and deploys by
  itself, and the old "never merge from here" no longer leaves work stranded
  behind a button nobody presses.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 17:36:47 -07:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00