[eric] chat: fullscreen transcript starts below the title bar, first query and attachments never clip

This commit is contained in:
ciregenz
2026-08-04 09:10:06 -07:00
parent be7e77b510
commit 626cba568b
@@ -1628,7 +1628,8 @@ const AgentChat: React.FC<AgentChatProps> = ({ sessionId: sessionIdProp, onClose
>
{/* The welcome greeting is the FIRST thing and it's the agent talking, no user message above it, so give it real air under the header instead of sitting flush at the top. */}
{/* Non-welcome chats still need headroom: at pt 0 the first user bubble's top edge clipped under the header. */}
<Box sx={{ pt: session.is_welcome_draft ? 4 : 2 }}>
{/* Fullscreen carries the window title bar OVER the transcript, so the first message (and any attachment chips above it) needs to start below that chrome, not under it. */}
<Box sx={{ pt: fullscreenChat ? 7 : session.is_welcome_draft ? 4 : 2 }}>
{session.context_overflow && (() => {
const reason = session.context_overflow.reason;
const isAuth = reason === 'openswarm_pro_auth_expired' || reason === 'anthropic_auth_invalid' || reason === 'auth_error';