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
fix: recover from container restart without losing session
When HF Space rebuilds, the in-memory _sessions dict is wiped but
WebSocket may survive through the reverse proxy. Previously this
caused 'Agent not initialized' because ws.onopen didn't fire.
Now: server sends 'request_keys' event when session is lost. Client
auto-resends keys from sessionStorage and retries the last message
after a 3-second delay for session initialization.
0 commit comments