Spaces:
Running
Running
Ctrl+K
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 (includes ENFORCE_END_SESSION_GATE toast path). RECOVERY_HEAD adds modal styling + window.__SOC_RECOVERY helpers; storage key socratic_frame_session_v1. on_recover_session restricts HF file lookup to this Space's mode_prefix (v5-HOT/socratic_frame/) because the dataset AE-Talk-bot/log-socratic is shared with socratic and a loose match would risk cross-condition recovery. TUTORIAL_HEAD walkthrough guard early-returns when localStorage carries an unfinished session. SessionLogger.from_dict restores dominant_framework + argument_submitted_at.
7edb5d1 verified