fix: add native turn lifecycle and stabilize opencode session flow

This commit is contained in:
Nathan Flurry 2026-02-07 20:24:21 -08:00
parent 2b0507c3f5
commit 91cac052b8
35 changed files with 1688 additions and 486 deletions

View file

@ -762,6 +762,30 @@ export default function App() {
});
break;
}
case "turn.started": {
entries.push({
id: event.event_id,
kind: "meta",
time: event.time,
meta: {
title: "Turn started",
severity: "info"
}
});
break;
}
case "turn.ended": {
entries.push({
id: event.event_id,
kind: "meta",
time: event.time,
meta: {
title: "Turn ended",
severity: "info"
}
});
break;
}
default:
break;
}

View file

@ -30,6 +30,10 @@ export const getEventIcon = (type: string) => {
return PlayCircle;
case "session.ended":
return PauseCircle;
case "turn.started":
return PlayCircle;
case "turn.ended":
return PauseCircle;
case "item.started":
return MessageSquare;
case "item.delta":