Skip to content

Merge CSV downloads; fix UI rendering and prevent chat truncation#37

Open
reikland wants to merge 1 commit into
mainfrom
codex/fix-syntax-errors-and-test-exf15w
Open

Merge CSV downloads; fix UI rendering and prevent chat truncation#37
reikland wants to merge 1 commit into
mainfrom
codex/fix-syntax-errors-and-test-exf15w

Conversation

@reikland

Copy link
Copy Markdown
Owner

Motivation

  • Fix SyntaxError and broken multiline string issues that caused the Streamlit UI to crash.
  • Consolidate duplicated/garbled display code paths so the CSV and single-seed UIs render consistently.
  • Prevent intermittent truncation of chat replies by ensuring prompts and token budgets are appropriate.
  • Provide a single merged CSV export that preserves all resolution-card and question metadata without duplicate columns.

Description

  • Repaired corrupted/duplicated UI blocks and fixed quoting/escaping in multiline st.markdown and st.code usages in app.py.
  • Removed the duplicated Domain tags input and consolidated the CSV vs single-seed rendering flow to remove inconsistent branches.
  • Relaxed the chat system prompt wording and increased max_tokens from 600 to 1200 for batch and single-seed chats to reduce truncated replies.
  • Merged CSV downloads by attaching resolution_card data to the kept-questions batch export and to the proto-questions single-seed export (using session-state mapping), and updated download button labels accordingly.

Testing

  • Ran python -m py_compile app.py and the file compiled successfully.
  • No other automated tests were added or executed.

Codex Task

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant