Public-repo app shows no Fork/GitHub buttons

App: https://chart-lookalikes.streamlit.app/
Repo: GitHub - rajdeepgaur/chart-lookalikes · GitHub (public)

The Fork and GitHub buttons don’t appear in the app’s toolbar for any visitor, including logged-out visitors in incognito.

The app’s context endpoint stores the repository as private:

GET https://chart-lookalikes.streamlit.app/api/v2/app/context
"source":{"type":"GitHub","repository":{"isPrivate":true}}

Initially, rajdeepgaur/chart-lookalikes belonged to a public repo, and was later switched to private. I renamed that repo, created a new public repo under the original name, and redeployed the app from it. The stored visibility seems to be left over from the old repo.

Already tried, with no change:

  • Rebooting the app
  • Deleting and redeploying the app at the same URL
  • Signing out of and back into share.streamlit.io
  • Disconnecting and reconnecting GitHub under Linked accounts

Hey, thanks for sharing all those details and welcome (or welcome back!) to the Streamlit community! :balloon: This is a classic case of Streamlit Community Cloud getting “stuck” with stale GitHub coordinates or repo visibility metadata after a repo is renamed, deleted, or recreated. Even after deleting and redeploying the app, the backend can sometimes retain the old repo’s private/public status, which affects toolbar features like Fork and GitHub buttons for all users.

According to the official docs, when you rename, move, or change the visibility of a repo, you must delete the app, make your changes in GitHub, and then redeploy. However, if the backend cache is stale (as in your case), there’s no user-accessible way to reset this binding yourself. The only solution is to contact Streamlit support and ask them to clear the stale binding on their backend so the app recognizes the new public repo and restores toolbar features. Community members, if you’ve found a workaround, please jump in and share! For more, see the docs on renaming or changing your app’s GitHub coordinates and managing your GitHub connection.

Sources: