pi: finalize message on 'agent_settled' terminal event instead of warning #78
Labels
No labels
epic
in-review
ready-for-agent
ready-for-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weiwen/evie#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
pi emits an
agent_settledevent as (what appears to be) a terminal event. evie doesn't recognize it, so it falls into thePiEvent::Other#[serde(other)]catch-all inhandle_pi_event_line(src/pi.rs:764), logs the warning, and returnsNone. Because noAgentEndis produced, the turn is never finalized and only ends via idle timeout, exactly the failure mode theOther-branch comment (src/pi.rs:764-768) warns about.Expected
Seeing
agent_settledshould finalize the current message: treat it as a terminal event and emit the response from the lastMessageEndtext (the cumulative snapshot already tracked), the same wayAgentEnddoes today (src/pi.rs:761-763).Notes
PiEventvariant foragent_settledrather than leaving it in theOthercatch-all.agent_settledreplaces or supplementsagent_endso the finalization path handles both without double-finalizing.