Bug: Existing published application lost its Republish association

My Gita Sara Staging application was successfully published at:
/gita-sara- staging1.ai.studio/

While republishing the application after updating server-side environment secrets, the deployment remained in progress for an unusually long time. I refreshed the Google AI Studio editor.

After refreshing, the editor no longer recognized the existing published deployment. Instead of offering Republish, it asks me to publish a new application. When I enter my original subdomain, gita-sara-staging1, it reports that the URL is already taken.

Current observations:

  • The original published website is still accessible.

  • Its /health endpoint reports site=ready, firestore=ready, commerce=ready.

  • The latest server-side webhook secret appears not to have reached the published deployment.

  • The webhook endpoint currently returns HTTP 503.

  • The application editor cannot republish to its existing URL.

Expected behavior:
The existing application should remain associated with its published URL and allow subsequent updates through Republish, including updated server-side secrets.

Requested resolution:
Please restore the association between my existing AI Studio application and its published deployment so I can republish updates to the original URL.

Please preserve the existing URL, application, Firebase project, Firestore database, and associated configuration.

Staging Firebase project ID: project-d7d03809-e426-4c80-…

Please investigate this as a deployment-management issue. I do not want to delete or recreate the application.

Hello @Sri_Ganesh,

We have made some changes. Please reload Google AI Studio, open your existing app, and open the Publish panel to check if the Republish option is now available for gita-sara-staging1.ai.studio (you do not need to unpublish, delete your Cloud Run service, or remix your app).

If you are still facing this issue, please reply with the approximate time of your attempt and a sanitized HAR file captured with the steps below:

  • Open Google AI Studio in Google Chrome and navigate to your app’s Publish panel where the issue occurs.
  • Open Developer Tools by pressing F12 (Ctrl+Shift+I on Windows/Linux, or Cmd+Option+I on Mac) and select the Network tab.
  • Make sure the round Record button in the top-left corner is red, check Preserve log, and click Clear network log.
  • Reload the page and open the Publish panel to reproduce the issue.
  • Click the Export HAR (sanitized) download icon (or right-click any request in the table and select Copy > Save all listed as HAR (sanitized)) to save the .har file.

Hi @Payal_Sharma2,

I can now see republish button. Thanks for the response and fix.

I am following up on the GitHub synchronization and published-app association issues previously reported for my existing Gita Sara application.

Application details:

  • AI Studio App ID: b684609c-0fd7-4cf0-80bf-73c4b88ac041

  • Existing GitHub repository: Jeevanmuktha/gita-sara (formerly GitaSara/gita-sara)

  • Existing published application: [https:/gita-sara.ai.studio]

  • Cloud Run service: gita-sara

  • Region: asia-southeast1

1. Original GitHub association remains unavailable

In the original AI Studio workspace, the GitHub Sync panel only displays Create new repository. It does not offer an option to select or reconnect the existing repository.

The repository remains accessible on GitHub, and we have continued development there. However, the original AI Studio workspace and the GitHub development versions are now different.

I have preserved the AI Studio source as a ZIP export and verified that substantial source differences exist. I do not want to overwrite either version or create another repository.

I understand that Google has suggested importing an existing repository into a new AI Studio workspace. However, my requirement is specifically to preserve the original workspace and its existing published application, rather than replace them with a new project.

2. Existing published-app association

I also previously reported that the Publish interface did not recognize the existing Cloud Run deployment, despite the Cloud Run service’s Edit in AI Studio action opening the correct original workspace.

Could you please confirm whether the recent Republish fix also resolves this original-workspace association issue?

Requested assistance

Could your team please:

  1. Investigate and, if supported, restore the original AI Studio application’s GitHub repository binding without creating a new repository or overwriting source code.

  2. Verify that the original AI Studio workspace remains associated with the existing Cloud Run deployment and published URL.

  3. Provide a safe, supported recovery procedure if backend reconnection is not possible.

Preserving the original application, published URL, GitHub history, Firebase configuration and existing user data is essential.

I can provide screenshots, repository details, the source export and additional diagnostics privately if needed.

Thank you for your assistance.

Hello @Sri_Ganesh,

  • Republish on your main app (b684609c-0fd...): Yes, the recent update covers this app too, and it is still linked to gita-sara.ai.studio.
  • Reconnecting Jeevanmuktha/gita-sara: Reconnecting an existing AI Studio app to an existing GitHub repository is not supported right now, and the link cannot be restored manually.
  • Workaround: To keep working from Jeevanmuktha/gita-sara with GitHub sync, you can use Import from GitHub to import it as a new app. This creates a separate app, so your current app and gita-sara.ai.studio stay unchanged.

Hi @Payal_Sharma2,

Thank you for confirming that the recent Republish fix applies to our original Gita Sara application and that its existing published URL, gita-sara.ai.studio, remains associated with it.

I also understand that reconnecting the original AI Studio application to our existing GitHub repository is currently unsupported.

We can proceed with your suggested Import from GitHub workaround to establish a separate development application. However, I would appreciate clarification on the long-term deployment workflow.

Our GitHub repository contains substantial ongoing development, including UI/UX improvements, additional functionality, security enhancements and automated testing. Eventually, these improvements need to be published to our existing Gita Sara website, rather than creating a second public application.

Could you please clarify the following?

  1. Publishing future updates: If we import our GitHub repository as a new AI Studio application, how can we subsequently publish those changes to the existing gita-sara.ai.studio URL?

  2. Preserving the original application: Is there a supported way to transfer or promote the new application’s code to the existing published application without changing its URL, Cloud Run configuration, Firebase integration or existing user data?

  3. Deployment alternatives: Could we deploy updates directly from GitHub to the existing Cloud Run service while preserving the original AI Studio application’s publishing functionality? If so, what limitations should we expect?

  4. Future GitHub reconnection: Is support for reconnecting existing AI Studio applications to existing GitHub repositories planned? This would be preferable to maintaining two independent applications.

Our priority is to maintain one production website with a reliable GitHub-based development and deployment workflow, without losing the original AI Studio project or disrupting existing users.

We are happy to maintain a separate staging application for development and testing, provided there is a clear, supported path for promoting approved changes to the original production website.

Thank you again for your assistance. I would appreciate your recommendation on the safest long-term architecture for this workflow.

Hello @Sri_Ganesh,

Transferring or promoting code from one AI Studio app into another is not supported in AI Studio, and deploying directly from GitHub to the existing Cloud Run service will not preserve AI Studio publishing (external Cloud Run deployments do not sync back into AI Studio, and clicking Republish later overwrites the service).

To move gita-sara.ai.studio to your newly imported app, first unpublish your original app (b684609c-0fd...) to release the subdomain, add any needed variables in the Secrets panel of the imported app, and immediately publish the imported app to the same Google Cloud project using gita-sara as the custom URL (see Set a custom URL). Unpublishing only removes the app’s Cloud Run deployment, so keeping the same Firebase configuration in your repository and publishing to the same Google Cloud project preserves your existing Firebase integration and Firestore user data.

For the test, set up isolation before any app code runs, including during import or preview if either step runs it. Verify the test copy can’t read or write production data or call production services. If you can run that copy at a temporary address, leave the live URL in place and send one synthetic webhook event with test credentials through the usual authentication path. Check both the HTTP response and the downstream result for that event. Use its ID, if available, to match the result to the request. That matters here because /health showed ready in staging while the webhook returned 503.