mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
When webchat:<key8>:<visitorId>:<sessionId> exceeds 64 chars the conversationId folds visitorId+sessionId into an unrecoverable hash, so the thread fell outside listSessions' conversationId-prefix filter and its sessionId could not be recovered — the thread was invisible and unaddressable (common with a UUID visitorId + a >10-char sessionId). Persist the sessionId on creation (new nullable webchat_session_id column) and enumerate by username + channel prefix (webchat:<key8>:), which also matches the hashed form. sessionId is read from the column, falling back to parsing the conversationId only for legacy rows. Adds a @SpringBootTest covering listing (incl. the hashed thread), message pagination, session paging/search, rename, and token rejection end-to-end. Refs matevip/mateclaw#346 |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||