Skip to content

add_thinking

add_thinking #15668

Re-run triggered November 23, 2024 15:26
Status Failure
Total duration 1m 42s
Artifacts

lint.yml

on: pull_request
Lint frontend
43s
Lint frontend
Lint python
39s
Lint python
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
Lint frontend: frontend/src/components/chat-message.tsx#L9
Replace `'./chat-thinking-animation'` with `"./chat-thinking-animation"`
Lint frontend: frontend/src/components/chat-message.tsx#L21
Replace `''` with `""`
Lint frontend: frontend/src/components/chat-message.tsx#L27
Replace `message.indexOf("<thinking>")·+·10,·message.indexOf("</thinking>")` with `⏎······message.indexOf("<thinking>")·+·10,⏎······message.indexOf("</thinking>"),⏎····`
Lint frontend: frontend/src/components/chat-message.tsx#L30
Assignment to function parameter 'message'
Lint frontend: frontend/src/components/chat-message.tsx#L35
Replace `·,·setShowThought]·=·React.useState(false);⏎` with `,·setShowThought]·=·React.useState(false);`
Lint frontend: frontend/src/components/chat-message.tsx#L87
Replace `<ChatThinkingAnimation·onThoughtChange={setShowThought}/>` with `(⏎········<ChatThinkingAnimation·onThoughtChange={setShowThought}·/>⏎······)`
Lint frontend: frontend/src/components/chat-message.tsx#L93
Do not define components during render. React will see a new component type on every render and destroy the entire subtree’s DOM nodes and state (https://reactjs.org/docs/reconciliation.html#elements-of-different-types). Instead, move this component definition out of the parent component “ChatMessage” and pass data as props. If you want to allow component creation in props, set allowAsProps option to true
Lint frontend: frontend/src/components/chat-interface.tsx#L68
Unexpected console statement
Lint frontend: frontend/src/components/chat-message.tsx#L28
Unexpected console statement
Lint frontend: frontend/src/components/chat-message.tsx#L31
Unexpected console statement
Lint frontend: frontend/src/components/chat-thinking-animation.tsx#L7
Unexpected console statement
Lint frontend: frontend/src/services/actions.ts#L152
Unexpected console statement