()
| 325 | } |
| 326 | |
| 327 | const handleCancelTask = () => { |
| 328 | // Cancel only if the latest run is the active thinking one |
| 329 | if (latestRunId && isThinking && !cancelling) { |
| 330 | cancelCurrentTask(latestRunId) |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | const handleNewChat = React.useCallback(() => { |
| 335 | const newThread = startNewChatThread(activeProjectId) |
nothing calls this directly
no outgoing calls
no test coverage detected