Conversation
- Add API key inputs, DestinE token badge to SettingsPanel - Add env-status endpoint to sessions.py - Add Data tab with dataset downloads, categorized Figures tab - Add PDF/TXT download buttons to Report tab - Fix: AsyncWsHandler inherits StreamHandler for real-time streaming - Fix: path traversal protection (pathlib resolve + is_relative_to) - Fix: OOM Zarr zip → FileResponse + tempfile + BackgroundTask - Fix: dataset downloads search full sandbox, not just results_dir - Fix: remove os.environ thread-safety issue (CLIMSIGHT_THREAD_ID) - Fix: correct API routes in client.ts (/api/models, /api/climate-sources) - Fix: plots only in Figures tab, not duplicated in Report - Fix: Settings panel overflow scroll 6 files changed, +495/-50
…in (PR #199) - Complete CSS redesign: ultra-minimal scientific aesthetic - Scrollable tables with sticky headers (max 45vh) - Proper markdown rendering: bullet points, nested lists, headings - Download PDF → Download Markdown (.md format) - run.py auto-loads .env via python-dotenv - Remove Tailwind utility classes from App.tsx - Increase font sizes across all UI components - Merge origin/main into react_ui (parallel downloads, improved prompts)
…terface (UnboundLocalError)
- Add clean_sandbox() to sandbox_utils.py — wipes results/, climate_data/, era5_data/, destine_data/ at the start of each analysis - Call clean_sandbox() in all 3 entry points: API, Streamlit, CLI - Fix broken ensure_thread_id(session_state=...) call in streamlit_interface.py
kuivi
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete migration from Streamlit-only architecture to React (Vite/TypeScript) frontend + FastAPI backend, while preserving the legacy Streamlit UI.
What's new
React Frontend (~20 new files)
frontend/MapPanel,QueryForm,ReportView,SettingsPanel,StatusBarFastAPI Backend (5 new files)
api/main.py— app factory, CORS, static file servingapi/routes/analysis.py— REST + WebSocket endpoints for climate analysisapi/routes/sessions.py— per-session state managementrun.py— unified launcherrequirements-api.txt— backend dependenciesCore engine decoupling (17 modified files)
import streamlit as stfrom core modules (climate_functions,environmental_functions,geo_functions, etc.)st.session_state→os.environfor thread IDs, API keys, and dataset textst.secrets→os.environfor API key resolutionStreamHandlererror handling (removed Streamlit-specificNoSessionContextchecks)client.close()session_manager.pyfor per-session state and memory isolationDocs
Deleted
DATA_ANALYSIS_AGENT_PROMPT.md(prompt now lives inline)PULL_REQUEST.md(obsolete)Stats