WebUI tab froze silently while gateway stayed healthy (heartbeat stopped 1h49m); reproducible /auth refresh dead-end fixed in #1392

Aperta
#1,393 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@joei4cm ci sta già lavorando.

Dal 22/11/2026.

  • #1397 di @joei4cm — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, nodejs, python

Direzione di ricerca

Start with the /auth route handling in the web UI and the one-time nonce redemption flow referenced by #1392, which already proposes a fix for the spent-link dead-end. The freeze itself has no reproduction, so the first step is gathering the DevTools Console and /rpc WebSocket capture from a frozen tab, which needs the reporter. Done means the spent-link refresh no longer strands the tab, and the freeze cause is either identified from client-side evidence or left open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Environment
  • Raven v0.2.8 (installed via curl -fsSL https://raven.evermind.ai/install.sh | bash)
  • macOS 27.2 arm64, Chrome 158
Observed

The WebUI tab froze silently. Evidence from the gateway log (~/.raven/logs/gateway.log) and pmset:

  • The page sends a HEAD / heartbeat every 30 s. It ran continuously from gateway start (01:20) until 12:17:27, then stopped for 1 h 49 min while the machine stayed awake (no sleep/wake entries in pmset -g log, 45% memory free).
  • The last browser request before the gap: 12:17:59 GET / with referer .../auth — the tab had just been sent from the sign-in page back to the app.
  • During the frozen window the gateway kept serving other clients normally: LLM calls flowing, /health 200, /rpc upgrades 101.
  • A headless Chromium (Playwright) load of the same page: WebSocket opens, zero JS errors, zero console errors, heartbeat present. Could not reproduce the freeze.

Separately, one reproducible dead-end that looks identical from the outside: refreshing /auth after the one-time nonce was redeemed (the page clears its own hash) leaves the tab stuck on the spent-link text forever. This is fixed by #1392.

Client-side evidence still missing

The freeze itself was not reproduced, so its cause is not established. The frozen tab's DevTools (Console + the /rpc WebSocket entry in Network) is the missing evidence. Two signals worth checking against it:

  1. providers.litellm_provider logged LLM first byte: nothing from custom after 120.0s ... giving the call up as stalled several times, plus Unclosed client session errors — provider stalls coincided with heavy TUI usage on the same machine.
  2. The gateway, two raven tui processes, and the web page shared one ~/.raven home simultaneously; the code comments in raven/cli/serve_commands.py warn that two engines on one agent home race over sessions/store.
Request
  • If the DevTools capture shows the JS thread blocked (e.g. a large trajectory.turns/session.resume payload parsed on the main thread, or an unhandled rejection loop in the RPC client), the page-side fix likely belongs in ui-web.
  • The one-shot-hash dead-end at /auth is real and reproducible now; #1392 proposes the fix.
Lingua principale
Python
Stelle
4.1k
Fork
94
Merge medio
2g 7h
PR unite (30g)
216

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di EverMind-AI/Raven

Tutte le issue di EverMind-AI/Raven

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.