@@ -123,6 +123,7 @@ export function DashboardAgentChat({
123123 // The path this chat last rendered on. React never unmounts on a page teardown, so an
124124 // unmount whose live URL has moved is the router having navigated out from under it.
125125 const renderedPathRef = useRef ( location . pathname ) ;
126+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
126127 renderedPathRef . current = location . pathname ;
127128
128129 const transport = useTriggerChatTransport < typeof dashboardAgent > ( {
@@ -209,6 +210,7 @@ export function DashboardAgentChat({
209210 } ) ;
210211
211212 const orderRef = useRef ( createTranscriptOrder ( initialMessages ) ) ;
213+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
212214 const messages = orderTranscript ( rawMessages , orderRef . current ) ;
213215
214216 // Read here, not in the panel, so it re-reads as each turn settles.
@@ -359,6 +361,7 @@ export function DashboardAgentChat({
359361 const navigatedRef = useRef < Set < string > | null > ( null ) ;
360362 if ( navigatedRef . current === null ) {
361363 navigatedRef . current = new Set ( ) ;
364+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
362365 pendingNavigateIntents ( initialMessages , navigatedRef . current ) ;
363366 }
364367 useEffect ( ( ) => {
@@ -374,6 +377,7 @@ export function DashboardAgentChat({
374377 const watchProposedRef = useRef < Set < string > | null > ( null ) ;
375378 if ( watchProposedRef . current === null ) {
376379 watchProposedRef . current = new Set ( ) ;
380+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
377381 pendingWatchIntents ( initialMessages , watchProposedRef . current ) ;
378382 }
379383 useEffect ( ( ) => {
@@ -388,6 +392,7 @@ export function DashboardAgentChat({
388392 } , [ transport , chatId , aiStop ] ) ;
389393
390394 const teardownRef = useRef < ( ) => void > ( ( ) => { } ) ;
395+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
391396 teardownRef . current = ( ) => {
392397 if ( status !== "streaming" && status !== "submitted" ) return ;
393398 const reason = unmountTeardown ( {
@@ -401,6 +406,7 @@ export function DashboardAgentChat({
401406
402407 // Read by the settle effect, which must not re-run when the transcript changes.
403408 const messagesRef = useRef ( messages ) ;
409+ // oxlint-disable-next-line react/react-compiler -- This ref intentionally coordinates an imperative integration outside React state.
404410 messagesRef . current = messages ;
405411
406412 const prevStatus = useRef ( status ) ;
0 commit comments