Open cjellick opened 3 months ago
sorry for bad screen shot...it was taken from a loom
Maybe related, but not sure: https://github.com/gptscript-ai/desktop/issues/222
Tested with electron build - 9d461669
Tried the following steps
image-generation
in my case)Find Tools
-> Add by URL
-> add github.com/gptscript-ai/current-time
https://github.com/user-attachments/assets/db59b4d8-2b3d-4120-8839-654b99dce10b
Note - When I quit the edit mode and launch a chat session with the assistant , I dont see any loss of existing tools (and the incorrect tool is not added to the assistant as expected)
Reopening this issue to address the issues seen in step 3 and step 4.
Unassigning myself because this code is being changed outside of my fix.
https://github.com/user-attachments/assets/9a370628-2f0c-4805-b4e1-f667ca89d181
I've made changes to this previously so that a user should no longer be able to add invalid tools (with the exception of system tools).
@cjellick - How do we (if at all) want to handle a user giving an invalid system tool?
Discussed with @cjellick and decided to use a hard-coded whitelist to verify System tools
Tested with electron build - 0f259cd7e4b
I am still seeing the same behavior outlined in https://github.com/gptscript-ai/desktop/issues/296#issuecomment-2330215556
https://github.com/user-attachments/assets/8c87fef5-40ea-4625-b795-06d06e9ef758
When I try to add a tool with invalid url - github.com/gptscript-ai/current-time , and enter my password when prompted by git-credentials-osxkeychain
, then I see the error message being presented for the tool as expected.
In this case I loose my existing http://github.com/gptscript-ai/gateway
credential which I am following up.
Keeping this issue open to see why I am being prompted by git-credentials-osxkeychain
in this workflow and when i deny it, i get into the state mentioned in https://github.com/gptscript-ai/desktop/issues/296#issuecomment-2347351122
Steps to repro: In the assistant editor, add a tool with an incorrect url - like i messed up the curent time context tool and called it
github.com/gptscript-ai/current-time
(missing thecontext
path part).This caused the current chat to fail to load:
and when i exited the editor and came back the entire tools section was blank, I assume because it failed to load and we hav some bad error handling.
You can see this bug starting at 0:04:51 of this video: https://www.loom.com/share/4c46566fc8c5437b93f125c6a87989ae