Retention of conversations
Conversations are cleaned up in two stages:
- Marked as deleted: conversations whose last activity is older than
chatSessionLifetimeDays(default 20 days). The record stays for the time being. - Deleted permanently: after another seven days, together with the messages, the change log and the attachments, provided these are still in the “cheddi” folder and are not used anywhere else.
The grace period of seven days is fixed, only the first stage is configurable.
Since version 0.5.0, the run also removes uploaded attachments that no conversation and no record uses once they are older than chatSessionLifetimeDays, for example because they were never sent with a message. Files someone placed in the folder by hand are never touched.
Cleaning up conversations
vendor/bin/typo3 cheddi:auto-delete-sessions
Logs
ChEddi writes two logs:
var/log/cheddi_warnings.logfor warnings and errors. Always active.var/log/cheddi.logfor the verbose trace: chosen model, offered and called tools, charged credits. Controlled throughchatLogVerbose, by default it follows themcpLogVerbosesetting of AI Suite MCP.
In both, bearer tokens, long hex hashes and email addresses are redacted automatically, as are the patterns from the MCP configuration and your own from chatLogRedactionPatterns. Switch the verbose trace off in production once monitoring is in place.
Environment report
Since version 0.3.0 ChEddi reports its state in the status report (System → Reports, TYPO3 14: Administration → Reports) under “ChEddi Environment”. Since version 0.5.0, four things are checked there:
- ChEddi Attachments. Whether PDF, Word and spreadsheet attachments can be read. If a prerequisite is missing, the report names the affected file types and the reason. You can still attach such files, but ChEddi cannot get at their text. In classic mode the libraries ship with the extension, but required PHP extensions have to be installed on the server.
- ChEddi Request Duration. A turn waits up to 180 seconds for the AI Suite server. If
max_execution_timeis lower, long turns end in an error. In that case raise the PHP value and the matching web server and proxy timeouts to at least 180 seconds. The report itself cannot see the web server and proxy timeouts. - ChEddi Upload Folder. Since version 0.5.0. Warns while chat attachments land in a public storage and names backend groups whose upload folder does not exist. Their members then cannot attach files.
- ChEddi Session Cleanup. Since version 0.5.0. Warns while no active scheduler task runs the clean-up command. The retention period the chat states depends on it.