(
session_id: str,
payload: ChatSessionPatchRequest,
auth: AuthContext = Depends(require_chat_scope),
service: ChatService = Depends(get_service),
)
| 146 | |
| 147 | @router.patch("/chat/sessions/{session_id}") |
| 148 | async def update_chat_session( |
| 149 | session_id: str, |
| 150 | payload: ChatSessionPatchRequest, |
| 151 | auth: AuthContext = Depends(require_chat_scope), |
| 152 | service: ChatService = Depends(get_service), |
| 153 | ): |
| 154 | return await _run( |
| 155 | lambda: service.update_session_display_name( |
| 156 | auth.username, |
| 157 | session_id, |
| 158 | payload.display_name, |
| 159 | ) |
| 160 | ) |
| 161 | |
| 162 | |
| 163 | @router.delete("/chat/sessions/{session_id}") |
nothing calls this directly
no test coverage detected