Stabilize agent turn footer layout

This commit is contained in:
Mohamed Boudra
2026-05-15 15:19:00 +07:00
parent 9bf36cdb56
commit bb6403e426
7 changed files with 546 additions and 449 deletions
@@ -26,7 +26,7 @@ export interface StreamHistoryBoundary {
export interface StreamRenderAuxiliary {
pendingPermissions: ReactNode;
workingIndicator: ReactNode;
turnFooter: ReactNode;
}
export interface AgentStreamRenderModel {
@@ -46,7 +46,7 @@ export interface BuildAgentStreamRenderModelInput {
const EMPTY_STREAM_ITEMS: StreamItem[] = [];
const EMPTY_AUXILIARY: StreamRenderAuxiliary = {
pendingPermissions: null,
workingIndicator: null,
turnFooter: null,
};
const orderedTailCache = new WeakMap<StreamItem[], Map<string, StreamItem[]>>();