ai
ai copied to clipboard
Bug: repo name is being empty
Describe the bug
Sometimes the repo name is being empty in the bubble chat in the extension. this is happening due the repo name detector logic we have in this line of code:
const repoName = window.location.href.split("/").pop() ?? "";
This is happening when the URL has a slash at the end of it.
Steps to reproduce
- go to https://github.com/ahmadbilaldev/langui/
- check the network when you use the AI chat
Browsers
No response
Additional context (Is this in dev or production?)
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Contributing Docs
- [ ] I agree to follow this project's Contribution Docs