From 875f6bdafd4c92f84a0af0b67efb7a8b1cc9a7e7 Mon Sep 17 00:00:00 2001 From: Nikolai Emil Damm Date: Sat, 14 Nov 2026 19:02:59 +0100 Subject: [PATCH] fix(agentic-engineer): keep the kagent lane's turn open until its run is done The lane's 2026-11-14 run dispatched its portfolio survey as a background subagent, then ended its turn at 14:45 UTC to wait for the digest. Claude Code's non-interactive mode gave the background work ten minutes and exited at 14:55, so the survey was lost and step 4 (the memory upload, report, transcript and lease release) never ran. The lease stayed held until the session was resumed by hand. The run prompt now says the run is one non-interactive turn: run every subagent in the foreground and wait for it, never end the turn to wait for a notification, and never end it before step 4. Refs devantler-tech/monorepo#4869 Co-Authored-By: Claude Opus 5.5 --- .../hetzner/apps/agentic-engineer/job-schedule.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k8s/providers/hetzner/apps/agentic-engineer/job-schedule.yaml b/k8s/providers/hetzner/apps/agentic-engineer/job-schedule.yaml index a5144e384e..94d1c43ef9 100644 --- a/k8s/providers/hetzner/apps/agentic-engineer/job-schedule.yaml +++ b/k8s/providers/hetzner/apps/agentic-engineer/job-schedule.yaml @@ -157,6 +157,12 @@ spec: plugin-definition-currency.sh, and run the plugin's bundled scripts, such as count-unresolved-review-threads.sh, from its scripts/ folder there. Tell every subagent you dispatch the same. + This run is a single non-interactive turn. Once you end your turn, + the run ends within minutes, and anything still running in the + background is lost. So run every subagent in the foreground + (`run_in_background: false`) and wait for its result, never end + your turn to wait for a notification, and never end it before step + 4 is done. 4. Before you stop, however the run ended, refresh the lease with `dav LOCK memory/ -H 'Timeout: Infinite' -H 'If: ()'`, no body, where `` is your Lock-Token value. You still hold the lease only