The search chat history feature doesn't work on macOS 10.15.7 Catalina
Alfred: 5.5
Workflow: v2024.7
Debugging information as follows:
[22:58:03.942] Logging Started...
[22:58:11.886] ChatGPT / DALL-E[Keyword] Processing complete
[22:58:11.890] ChatGPT / DALL-E[Keyword] Passing output '' to Script Filter
[22:58:11.900] ChatGPT / DALL-E[Script Filter] Queuing argument '(null)'
[22:58:11.970] ChatGPT / DALL-E[Script Filter] Script with argv '(null)' finished
[22:58:11.972] ERROR: ChatGPT / DALL-E[Script Filter] Code 1: /Users/jpg2webp/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/A3768CAA-7E3C-4D74-AA12-7030A4958E13: execution error: Error: TypeError: dirContents(archiveDir)
.filter(file => file.endsWith(".json"))
.toReversed is not a function. (In 'dirContents(archiveDir)
.filter(file => file.endsWith(".json"))
.toReversed()', 'dirContents(archiveDir)
.filter(file => file.endsWith(".json"))
.toReversed' is undefined) (-2700)
After some searching I found that this `toReversed` function was introduced in ES2023, according to the MDN Web Docs description, the minimum compatible version of Safari for this function is 16+, while last supported version of Safari on macOS Catalina system is 15.6.1 🤣
Since Alfred is still compatible with Catalina, can this problem be solved?
(This comment is translated using chatgpt because my native language is not English)