linxinhua's picture
Session-recovery propagated from socratic: hidden gr.Textbox (#recovery-payload) + Gradio .then(js=...) chains write/clear localStorage; on_submit_initial / on_end_session yield JSON events on their CONFIRM yields. RECOVERY_HEAD adds modal styling + window.__SOC_RECOVERY helpers; storage key explanatory_session_v1. TUTORIAL_HEAD walkthrough guard early-returns when localStorage carries an unfinished session so welcome doesn't overlap the recovery modal. on_recover_session rebuilds chatbot/cache/logger via SessionLogger.from_dict (now restores dominant_framework). HF file lookup loose-matches /{sid}_*.json within this Space's mode_prefix.
bac6693 verified