Skip to content

Prompt dataset dropdowns load empty when enum introspection queries are aborted #463

Description

@saqibmanan

What: on the prompt-dataset metadata form, Target Languages / Target Model Types sometimes show "No results found" for every value.
Why it matters: the options come from 4 GraphQL introspection queries fired together on load; if the backend is slow the browser aborts them, and staleTime: Infinity caches the failure, so the field stays empty until a reload.
Evidence: dev nginx during a test run: POST /api/graphql 499 (client aborted) in bursts of 4 at once; screenshots show the correct field focused with "No results found".
Fix: not fixed — use the codegen-generated enums instead of runtime introspection (enum values are fixed schema).

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions