Secrets editor is read-only for my own public app

Hello,

My Streamlit Community Cloud app is deployed from my public GitHub repository manosv18/managers-lab, branch main.

I own the repository and can access its GitHub settings. In Community Cloud, I can open Settings, reboot the app, and use Edit with Codespaces. However, the Secrets text area is completely read-only: I cannot place the cursor, select text, or edit it, and the Save changes button remains disabled.

I corrected my Streamlit email identity to manosv18@gmail.com and reconnected GitHub as manosv18, but the problem persists. Rebooting the app and refreshing the browser did not help.

Could you help restore editing access to the Secrets settings for my app?

Thank you.

When the Secrets editor (secrets.toml) in Streamlit Community Cloud stays locked in read-only mode even though you own the public GitHub repository (manosv18/managers-lab) and can trigger Reboot / Edit with Codespaces, the cause is a cached GitHub OAuth permission mismatch on the original deployment record after changing your email identity.

Why It Happens

Streamlit Community Cloud gates write access to Settings → Secrets by checking whether your currently active GitHub OAuth token has admin / push permissions on the deployment’s bound repository ID. When you updated your email to manosv18@gmail.com and reconnected GitHub, Community Cloud kept the original app deployment record tied to the pre-update identity/token scope, putting the Monaco Secrets editor into viewer-only (readOnly: true) mode.

2-Step Fix to Restore Full Secrets Editing

  1. Refresh the Streamlit GitHub OAuth Token Scope:
    • Sign out of share.streamlit.io.
    • Go to GitHub → Settings → Applications → Authorized OAuth Apps → Streamlit and click Revoke.
    • Sign back into share.streamlit.io with Continue with GitHub (manosv18) so GitHub issues a fresh OAuth token with full repository write permissions.
  2. Re-bind the Deployment Record (Takes 30 Seconds):
    • If the Secrets box on the existing deployment still loads read-only after step 1, click Delete app on the Community Cloud dashboard (this only removes the cloud container instance, your manosv18/managers-lab GitHub repo is untouched) and immediately click Create app → select manosv18/managers-lab (main).
    • Creating the deployment under your freshly connected manosv18 identity immediately unlocks the Secrets text area and enables Save changes.