Deploy Beta run 1025 failed on push of ae59c273 (Keep chat turns in the order they were sent, #138). Unit tests passed. npm run build:beta failed on ai-server-4080.
Create React App treats ESLint warnings as errors when CI=true. That variable is set on the deploy runner, so the build dies there. The other web hosts finished the same build.
Why
src/llm-fe/contexts/MessageContext.tsx calls GetConversationDetails from hooks that omit it (and, on the reconnect effect, setConversationDetails):
useEffect on selectedConversation (line 152) missing GetConversationDetails
reconnect useEffect (line 203) missing GetConversationDetails and setConversationDetails
Rule: react-hooks/exhaustive-deps.
Fix
Wrap GetConversationDetails in useCallback and list it (and setConversationDetails) in those dependency arrays. Keep the callback identity stable so the conversation effect still runs only when the selected conversation changes.
## What happens
[Deploy Beta run 1025](https://git.aimloperations.com/ai_ml_operations/chat_web_app/actions/runs/1025/jobs/1743) failed on push of `ae59c273` (`Keep chat turns in the order they were sent`, #138). Unit tests passed. `npm run build:beta` failed on `ai-server-4080`.
Create React App treats ESLint warnings as errors when `CI=true`. That variable is set on the deploy runner, so the build dies there. The other web hosts finished the same build.
## Why
`src/llm-fe/contexts/MessageContext.tsx` calls `GetConversationDetails` from hooks that omit it (and, on the reconnect effect, `setConversationDetails`):
- `schedulePostStreamRefetch` `useCallback` (line 148) missing `GetConversationDetails`
- `useEffect` on `selectedConversation` (line 152) missing `GetConversationDetails`
- reconnect `useEffect` (line 203) missing `GetConversationDetails` and `setConversationDetails`
Rule: `react-hooks/exhaustive-deps`.
## Fix
Wrap `GetConversationDetails` in `useCallback` and list it (and `setConversationDetails`) in those dependency arrays. Keep the callback identity stable so the conversation effect still runs only when the selected conversation changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What happens
Deploy Beta run 1025 failed on push of
ae59c273(Keep chat turns in the order they were sent, #138). Unit tests passed.npm run build:betafailed onai-server-4080.Create React App treats ESLint warnings as errors when
CI=true. That variable is set on the deploy runner, so the build dies there. The other web hosts finished the same build.Why
src/llm-fe/contexts/MessageContext.tsxcallsGetConversationDetailsfrom hooks that omit it (and, on the reconnect effect,setConversationDetails):schedulePostStreamRefetchuseCallback(line 148) missingGetConversationDetailsuseEffectonselectedConversation(line 152) missingGetConversationDetailsuseEffect(line 203) missingGetConversationDetailsandsetConversationDetailsRule:
react-hooks/exhaustive-deps.Fix
Wrap
GetConversationDetailsinuseCallbackand list it (andsetConversationDetails) in those dependency arrays. Keep the callback identity stable so the conversation effect still runs only when the selected conversation changes.