Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(types): correct persisted turn state alias to use turnState field

Steven Enamakel184122d18ea8
diff --git a/app/src/types/turnState.ts b/app/src/types/turnState.ts
index dcfce24e4a..da6c23c9ca 100644
--- a/app/src/types/turnState.ts
+++ b/app/src/types/turnState.ts
@@ -1,7 +1,7 @@
/** TypeScript aliases generated from the persisted Rust session record schemas. */
import type { ThreadWireTypes } from './threadWire.generated';
-export type PersistedTurnState = ThreadWireTypes['getTurnState']['state'];
+export type PersistedTurnState = NonNullable<ThreadWireTypes['getTurnState']['turnState']>;
export type PersistedTurnLifecycle = PersistedTurnState['lifecycle'];
export type PersistedTurnPhase = NonNullable<PersistedTurnState['phase']>;
export type PersistedToolTimelineEntry = PersistedTurnState['toolTimeline'][number];