Repository navigation
fix(agentic-engineer): keep the kagent lane's turn open until its run is done - #6262
Conversation
… 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 <noreply@anthropic.com>
|
@coderabbitai full review 🤖 Generated with Claude Code |
Action not completed
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
@coderabbitai full review 🤖 Generated with Claude Code |
Action not completed
|
✅
|
✅
|
|
@coderabbitai full review 🤖 Generated with Claude Code |
Action not completed
|
|
@coderabbitai full review 🤖 Generated with Claude Code |
Rate Limit Exceeded
|
|
@coderabbitai full review 🤖 Generated with Claude Code |
Action not completed
|
|
@coderabbitai full review 🤖 Generated with Claude Code |
Action performed
|

What
Adds one rule to step 3 of the kagent lane's run prompt. The run is a single non-interactive turn, so it must:
run_in_background: false) and wait for its result;Why
The lane's 2026-11-14 run (the fifth) went like this, per its uploaded transcript:
agentic-engineering:portfolio-surveyor. Claude Code started it as an async background agent, and the dispatch's result saidAsync agent launched successfully.end_turn) to wait for the survey digest.So step 4 never ran. The
memory/lease stayed held, which would have stopped the next run with a 423, and no report or transcript reached the store. The session was resumed by hand only to finish step 4: the lease refresh returned 200 under the run's owner, all 5 memory files and the report and transcript were uploaded and verified, and the UNLOCK returned 204.The schedule test passes locally.
Refs devantler-tech/monorepo#4869.
🤖 Generated with Claude Code