Skip to content

Fix/ai summary async timeout#2043

Open
shravanithouta108 wants to merge 5 commits into
utksh1:mainfrom
shravanithouta108:fix/ai-summary-async-timeout
Open

Fix/ai summary async timeout#2043
shravanithouta108 wants to merge 5 commits into
utksh1:mainfrom
shravanithouta108:fix/ai-summary-async-timeout

Conversation

@shravanithouta108

Copy link
Copy Markdown
Contributor

Description

Made generate_summary() in ai_summary.py async with a hard timeout and non-blocking fallback. Previously, report export would hang indefinitely if the LLM was slow or unavailable. Now the call times out after 15 seconds and the report exports successfully without the AI summary.

Related Issues

Closes #1832

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Verified report exports successfully when AI summary is disabled
  • Verified report exports successfully when ai_summary_api_key is not set
  • Verified timeout fallback returns "" and does not block report generation
  • Ran existing backend tests: pytest testing/backend -q — all passed

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.

- Replace fixed sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 with auto-fit minmax(180px,1fr)
- Ensures each filter item has minimum 180px width
- Controls wrap gracefully to new line when horizontal space is insufficient
- Fixes overlapping TARGET, SCANNER, ASSET, FINDING KIND, ANALYST STATE filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[#58] AI summary generation blocks report rendering (availability risk)

1 participant