Skip to content

Commit 3ee7c88

Browse files
samejrclaude
andcommitted
Document AgentView subscription effect deps with eslint suppression
The intentional omission of snapshotPresignedUrl and scheduleFlush from the dep array is well-commented but had no machine-readable suppression. Future refactors would silently lose the lint signal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 64b97ca commit 3ee7c88

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/webapp/app/components/runs/v3/agent/AgentView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ function useAgentSessionMessages({
663663
// subscription to tear down + replay on every inspector tab click,
664664
// which appended duplicate parts to any assistant message whose
665665
// chunks lived past `snapshot.lastOutEventId`.
666+
// eslint-disable-next-line react-hooks/exhaustive-deps
666667
}, [sessionId, apiOrigin, orgSlug, projectSlug, envSlug]);
667668

668669
return useMemo(() => {

0 commit comments

Comments
 (0)