-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingfrontendPertains to the frontend.Pertains to the frontend.needs-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Description
Describe the bug
After calling window.mountChainlitWidget, window.unmountChainlitWidget, and window.mountChainlitWidget in sequence, the menu is lost.
To Reproduce
Steps to reproduce the behavior:
- use window.mountChainlitWidget to mount a chainlit plugin;
- use window.unmountChainlitWidget to unmount the chainlit plugin of step 1;
- use window.mountChainlitWidget to mount a chainlit plugin again;
- See error
Expected behavior
Commands Menu disappears after unmount and remounting the plugin
Screenshots
When we use window.mountChainlitWidget success,we can see the commands menu is showing corrected.👇

However,if we use window.unmountChainlitWidget to unmount.After that we use window.mountChainlitWidget again,we will can not see the commands menu.👇

I believe the root cause is that after the plug-in was uninstalled and remounted, no new session was initiated.Therefore the websocket of backend don`t know when should push the new config again.👇

Jimmy-Newtron
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfrontendPertains to the frontend.Pertains to the frontend.needs-triagestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closedIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed