You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompts: CSV export writes an always-empty topic_id column #590
The Prompts CSV export writes a topic_id column that is always empty. Prompt.topicId is declared in the type and read by the export, but mapPromptRow never populates it from the topic_id DB column — so p.topicId is undefined for every row and the export falls back to ''.
The column is written on save/update/add, so the data exists in the database; it just never makes it into the mapped object.
Add topicId: (row.topic_id as string | null) ?? undefined to mapPromptRow. The getPromptSets query already selects prompts(*) (prompt.ts#L130), which includes topic_id, so no query change is needed.
Acceptance criteria
Exporting prompts that have a topic produces non-empty topic_id cells.
Prompts without a topic still export an empty cell.
Activity
BharadwajKanneveti commentedon Aug 3, 2026
Hi @gkhngyk Can I work on this issue?