fix: route document naming through the canonical namer; sanitize LLM-chosen names
Stop self-naming in the document generators and defer to NetworkStorageIntegration's single namer (rule N1): - FreeDocumentGenerator and GenericTemplateGenerator no longer bake in a date prefix, em-dash or contact name. They set the clean subject, upload explicitly to the case folder (the AfterSave hook fires before the Case link exists), then realign the Document + Attachment names to the canonical stored name returned by the upload. - CaseFolderManager sanitizes every model-chosen name server-side: writeFile splits dir/basename and de-duplicates via buildStoredFileName; createFolder, renameItem and moveItem sanitize their final segment. The LLM can no longer pick a raw filename. Refs Task Master #7 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user