Skip to content

Commit 1480f65

Browse files
authored
fix: wait for agent_end before finishing session (#4)
1 parent cc2377f commit 1480f65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lua/pi/runner.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ local function normalize(event)
3232
return { type = "tool_end", tool = event.toolName or "unknown" }
3333
end
3434

35-
if event.type == "agent_end" or event.type == "turn_end" then
35+
if event.type == "agent_end" then
3636
return { type = "done" }
3737
end
3838

0 commit comments

Comments
 (0)