logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
3.14k stars 222 forks source link

Mobile Issue: Cannot Save Chat #884

Open ticmain opened 20 hours ago

ticmain commented 20 hours ago

Copilot version: 2.7.4

Describe how to reproduce In Obsidian Mobile (v 1.7.7) chats do not save if the designated "Default Conversation Folder Name" already exists. The save fails with the error:

plugin:copilot:159469 Error saving chat as note: Error: Folder already exists. at t. (app.js:1:750805) at app.js:1:237226 at Object.next (app.js:1:237331) at a (app.js:1:236049)

If the folder designated as ""Default Conversation Folder Name" does not already exist, the save works as expected. However, subsequent updates/new chat saves then do now work after.

Expected behavior

Expected behavior is for copilot chats to save/update on demand or on new chat creation.

Screenshots See this Loom for a demo: https://www.loom.com/share/ea356400ce8441a782b964c9acd6cd32?sid=4fbbf8f0-17b1-46ed-bd51-68b034b3ca11

logancyang commented 17 hours ago

Probably because the util from Obsidian API that checks for folder existence did not work on mobile (android in this case?)

jrossi commented 5 hours ago

I am getting the error on the desktop.

Screenshot 2024-12-02 at 4 59 26 AM
logancyang commented 5 hours ago

I am getting the error on the desktop.

Screenshot 2024-12-02 at 4 59 26 AM

What OS? What's your folder structure?

jrossi commented 5 hours ago

Mac OSX 15.1 (24B83) Obsidian: Version 1.7.7 (Installer 1.5.3)

Screenshot 2024-12-02 at 5 13 01 AM

I changed it to a top level folder as I thought my Johnney.decimal folder setup my be an issue. Before trying this out. it was set to: 00-09 System/01 Inbox/01.03 Copilot chat logs