Skip to content

IdeaGenerationPanel 4-second polling has no exponential backoff on errors #152

Open

Description

@fubecz

IdeaGenerationPanel 4-second polling has no exponential backoff on errors

Severity: Medium
File: frontend/src/components/ideas/IdeaGenerationPanel.tsx:833

The pollSession function is called every 4 seconds via setInterval. If the backend is down or returns errors, polling continues at the same rate indefinitely, hammering the server with failing requests.

useEffect(() => {
  if (!isPolling) return
  void pollSession()
  const interval = window.setInterval(() => void pollSession(), 4000)
  return () => window.clearInterval(interval)
}, [isPolling, pollSession])

Why it matters

During backend maintenance or outages, every active idea generation session generates continuous failed requests, potentially delaying recovery and wasting client resources.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions