{"record":{"id":"9a2d118e31b3884d","repo":"odysseus-dev/odysseus","slug":"session-sid-not-found","errorCode":null,"errorMessage":"Session {sid} not found","messagePattern":"Session (.+?) not found","errorType":"http","errorClass":"HTTPException","httpStatus":404,"severity":"error","filePath":"routes/session_routes.py","lineNumber":472,"sourceCode":"        return SessionResponse(\n            id=sid,\n            name=session.name,\n            model=model_to_use,\n            rag=str(rag).lower() == \"true\" if rag else False,\n            archived=False\n        )    \n    @router.patch(\"/session/{sid}\")\n    def rename_session(\n        request: Request, sid: str,\n        name: str = Form(None), folder: str = Form(None),\n        model: str = Form(None), endpoint_url: str = Form(None),\n        endpoint_id: str = Form(None),\n    ):\n        _verify_session_owner(request, sid)\n        try:\n            session = session_manager.get_session(sid)\n        except KeyError:\n            raise HTTPException(404, f\"Session {sid} not found\")\n        result = {\"id\": sid}\n        if name is not None:\n            session_manager.update_session_name(sid, name)\n            result[\"name\"] = name\n        # Update folder assignment\n        if folder is not None:\n            db = SessionLocal()\n            try:\n                db_session = db.query(DbSession).filter(DbSession.id == sid).first()\n                if db_session:\n                    db_session.folder = folder if folder else None\n                    db_session.updated_at = utcnow_naive()\n                    db.commit()\n                    result[\"folder\"] = folder if folder else None\n            finally:\n                db.close()\n        # Switch model/endpoint mid-session\n        if model is not None and endpoint_url is not None:","sourceCodeStart":454,"sourceCodeEnd":490,"githubUrl":"https://github.com/odysseus-dev/odysseus/blob/f9235ebbf13f693a6fd29ce70b097f6ec83705bf/routes/session_routes.py#L454-L490","documentation":"Error \"Session {sid} not found\" thrown in odysseus-dev/odysseus.","triggerScenarios":"Triggered when the corresponding server-side validation or runtime check at the recorded location rejects the request or operation and returns this error message to the caller.","commonSituations":"See trigger scenarios.","solutions":["Verify the session id is correct and the session exists.","Refresh the session list and retry with a valid id."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f9235ebbf13f693a6fd29ce70b097f6ec83705bf","analyzedAt":"2026-08-14T21:47:48.359Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}