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

Open
#1,393 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@joei4cm is already working on this.

Since Nov 22, 2026.

  • #1397 by @joei4cm — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, nodejs, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.
Dominant language
Python
Stars
4.1k
Forks
94
Avg merge
2d 7h
Merged PRs (30d)
216

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EverMind-AI/Raven

All issues in EverMind-AI/Raven

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.