v2.5.1 — Chat-Verlauf bleibt beim Reload erhalten

- loadHistory() leert Chat nicht mehr (chat.innerHTML = '' entfernt)
- Nur fehlende Nachrichten werden angehängt, bestehende bleiben
- Cookie mit path=/ für konsistente Session über alle Routen
- cowboy shot statt upper body (besserer Danbooru-Tag für NoobAI-XL)
- very aesthetic, absurdres als Quality-Tags
This commit is contained in:
arch_agent
2026-07-25 12:46:56 +02:00
parent 1a197969a8
commit 51e8036341
4 changed files with 14 additions and 19 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ templates = Jinja2Templates(directory=str(BASE_DIR / "templates"))
app.mount("/static", StaticFiles(directory=str(BASE_DIR / "static")), name="static")
def set_session_cookie(response, sid: str):
response.set_cookie(SESSION_COOKIE_NAME, sid, max_age=SESSION_DURATION, httponly=False, samesite="lax")
response.set_cookie(SESSION_COOKIE_NAME, sid, max_age=SESSION_DURATION, httponly=False, samesite="lax", path="/")
@app.get("/", response_class=HTMLResponse)
async def index(request: Request, session_id: str = Cookie(None, alias=SESSION_COOKIE_NAME)):