Skip to content
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

fix: tasklist when chainlit is submounted #1408

Closed
wants to merge 5 commits into from

Conversation

willydouhard
Copy link
Collaborator

Fixing #1400.

The issue is that the tasklist url is already containing the subpath.useApi will add the subpath again. So we just use useSWR raw here.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. backend Pertains to the Python backend. bug Something isn't working frontend Pertains to the frontend. labels Oct 7, 2024
@dokterbob dokterbob added the evaluate-with-priority What's needed to address this one? label Oct 8, 2024
Copy link
Collaborator

@dokterbob dokterbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've validated the fix! 👍🏼

We get some free cleanup, see my other comment.

Would also be nice to remove changes from socket.py from this patch. Specifically, this allows us to backport it to 1.3.x without merge conflicts. Same for lock files, AFAIK they have nothing to do with this fix.

git checkout main -- backend/chainlit/socket.py is your friend. ;)

@@ -70,7 +73,7 @@ const TaskList = ({ isMobile }: { isMobile: boolean }) => {
return parsedUrl.pathname + parsedUrl.search;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you go this way, I think you can (and should) also try to remove the workaround here as well; before you'd get double base URL's (so you removed them).

Now, you are making a query for a relative URL. Might as well query the full URL and have a bit less code.

@dokterbob
Copy link
Collaborator

@willydouhard Any chance you could continue with the other cleanup requested (e.g. removing unrelated changes)?

If not I can do it, but might not get to it until ~Monday.

@dokterbob
Copy link
Collaborator

Closed in favour of cleaned version (containing only changes to actual task list): #1433

@dokterbob dokterbob closed this Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Pertains to the Python backend. bug Something isn't working evaluate-with-priority What's needed to address this one? frontend Pertains to the frontend. size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants