-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP feat: update default assistant name to [Deleted Assistant] #430
WIP feat: update default assistant name to [Deleted Assistant] #430
Conversation
This change is not self-explanatory. I don't understand how changing this constant addresses the issue you linked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake. It appeared as though the code only used this variable when there was no script available for a given thread, so I didn't check the create/edit workflow. Will fix today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing approval until follow-ups come through.
1ecd47b
to
9ca8bd5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not work as I expect.
In this screen recording, the assistant associated to the "Casual Greeting" thread has been deleted. However, there is no indication of this other than the fact that there are no messages.
Screen.Recording.2024-09-06.at.09.45.24.mov
EDIT: This seems to have been an issue with my environment. My apologies for the false alarm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you have found a way to re-run the thread even when script is not found. As long as it doesn't have side effect on server side, LGTM
6108d09
to
af6c9b5
Compare
7fbb2d1
7fbb2d1
to
af6c9b5
Compare
setThread(id); | ||
setScriptContent((await getScript(scriptId))?.script || []); | ||
setScriptId(scriptId); | ||
setForceRun(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you shouldn't need to setsetForceRun
, setting Thread
and ShouldRestart
should be sufficient. I see a double refreshing issue when switch to thread, like the thread reloads twices on screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I thought the same thing and removed it in a previous commit, but actually had to revert that change, because it caused the issue where it just reused the chat from the previous thread
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can try removing the shouldRestart, but I'm not sure if that will work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I fixed this by removing setShouldRestart
and keeping setForceRun
the reason I opted for this is because it doesn't look like setShouldRestart
consistently triggers the run
event (which updates the messages). It would probably be more ideal to get shouldRestart
to update the messages, but in the interest of time spent on this issue I opted to use the tool already available
19da86c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally and noticed some weird behavior that seemed unrelated to your PR.
Switching between a thread and then sending a message causes me to be in a weird state forever. Are you seeing the same thing @ryanhopperlowe?
Screen.Recording.2024-09-09.at.2.51.58.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there are some issues when testing this locally.
19da86c
to
fc32008
Compare
@StrongMonkey and I noticed that there is an issue with my most recent update that causes a double refresh when switching threads. Switching to WIP while I figure out how to prevent this |
Upon deleting an assistant, any left over chats with that assistant will be displayed in a read only state.
#90
While making this change, I discovered a bug where switching threads causes the websocket server to restart, but does not wait for the server to come back up before relaying new messages. It wasn't apparent until I started making my changes and should not cause any issues after this PR.