Repository navigation
Description
Prerequisites
- I searched open issues and discussions and did not find an existing report of this bug.
- This is not a security vulnerability. (Vulnerabilities go to GitHub Security Advisories — see SECURITY.md.)
- I am running the latest code from the
devbranch (the default branch you get on clone, where fixes land first) and the bug still reproduces there. Pleasegit pullthe latestdevbefore filing.
Odysseus Revision
1fef492 (2026-08-11)
Install Method
Docker (docker compose up)
Operating System
Linux
Steps to Reproduce
Bug
The web UI sets a strict Content-Security-Policy that blocks its own inline event handlers. This prevents chat messages from being submitted reliably and produces console errors.
Console errors
Executing inline event handler violates the following Content Security Policy directive 'script-src 'self' 'nonce-... https://cdn.jsdelivr.net/'. Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required... The action has been blocked.
The errors originate from:
chatRenderer.js(or previouslyturnRendering.js)chat.js(handleChatSubmit)app.js
Steps to reproduce
- Open the Odysseus web UI.
- Open browser DevTools → Console.
- Send a chat message.
- Observe the CSP violations and intermittent failed/timeout responses.
Environment
- Image:
ghcr.io/odysseus-dev/odysseus:latest(pulled 2026-12-04) - Browser: [your browser + version]
- Host: CachyOS, Docker Compose
Impact
Chat submission is unreliable; users see “[Response timed out. Try again.]” even when the backend model is healthy and responding in a few seconds.
Possible fixes
- Remove inline event handlers and use
addEventListenerinstead. - Or relax the CSP to allow the existing inline handlers (
unsafe-inlineor a nonce/hash that covers them).
Expected Behaviour
Chat messages should submit successfully without Content Security Policy violations. Inline event handlers in the front-end (chatRenderer.js, chat.js, app.js) should either be replaced with addEventListener calls or the CSP should be adjusted so that the existing handlers are allowed to run. Users should not see “[Response timed out. Try again.]” when the backend model is healthy and responding.
Actual Behaviour
Sending a chat message produces Content Security Policy violations in the browser console. Inline event handlers in chatRenderer.js, chat.js and app.js are blocked, so the submit handler often fails to run. This results in intermittent “[Response timed out. Try again.]” messages even when the backend model is healthy and responds in a few seconds. The console shows:
Executing inline event handler violates the following Content Security Policy directive 'script-src 'self' 'nonce-... https://cdn.jsdelivr.net' ... The action has been blocked.
Logs / Screenshots
Browser console (F12) when sending a chat message. The CSP violation blocks the inline event handlers used by the chat submit path.
Model / Backend (if relevant)
llama.cpp (llama-server) via systemd user service on the host, endpoint http://host.docker.internal:8081/v1 Model: bartowski/openai_gpt-oss-120b-GGUF:Q4_K_M
Are you willing to submit a fix?
No
Additional Information
- Image: ghcr.io/odysseus-dev/odysseus:latest (pulled 2026-12-04)
- Host: CachyOS, Docker Compose
- Browser: - Browser: Brave 1.100.59 (Chromium 158.0.8127.92)
- The backend model itself is healthy (responds in ~3–11 s at ~24 tok/s). The failure is only on the front-end when the CSP blocks the inline submit handlers.
- Workaround: browser extension that disables Content-Security-Policy for the Odysseus origin.
Activity