Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow saving empty secrets via secret manager and slash command#4580

Merged
Cohee1207 merged 3 commits into
stagingfrom
feat/empty-secrets
Oct 2, 2025
Merged

Allow saving empty secrets via secret manager and slash command#4580
Cohee1207 merged 3 commits into
stagingfrom
feat/empty-secrets

Conversation

@Cohee1207
Copy link
Copy Markdown
Member

Closes #4577

Checklist:

@Cohee1207 Cohee1207 requested a review from Wolfsblvt October 1, 2025 19:32
@Cohee1207
Copy link
Copy Markdown
Member Author

@codex review

@github-actions github-actions Bot added 👷 Maintainer [ISSUE][PR] Posts by a maintainer or author of SillyTavern ✨ Feature Changes [PR] Changing or tweaking an existing feature in its functionality 🟩 ⬤⬤○○○ [PR][🎯Auto-applied] [Small] 20-100 lines changed labels Oct 1, 2025
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Comment thread public/scripts/secrets.js
Copy link
Copy Markdown
Member

@Wolfsblvt Wolfsblvt left a comment

Choose a reason for hiding this comment

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

Reading empty secrets via slashcommand shows an unrelated and wrong error. Enabled allowKeysExposure in config, the secrets (and empty secrets) show up in the secret manager.
Calling this

/secret-read [your-secret-id-here] | /echo Secret: "{{pipe}}"

shows
image

It's not disabled though.
I mean, it outputs the correct value to the command, but likely only because very single slashcommand will always return '' on errors.

Nitpick, and not needed, but maybe nice.
Show some kind of indicator that there is an empty secret, in the secret manager. It just renders as... nothing.
image

@github-actions github-actions Bot added the 🏭 Backend Changes [PR] Contains changes to the backend and/or API label Oct 2, 2025
@Cohee1207
Copy link
Copy Markdown
Member Author

Reading empty secrets via slashcommand shows an unrelated and wrong error. Enabled allowKeysExposure in config, the secrets (and empty secrets) show up in the secret manager.

Fixed in 1c2aedc

Nitpick, and not needed, but maybe nice.

I don't dig fake empty values in the UI. And key exposure is not recommended anyway, so the possibility of someone to get confused is low.

@Cohee1207 Cohee1207 merged commit 1d279e5 into staging Oct 2, 2025
10 checks passed
@Cohee1207 Cohee1207 deleted the feat/empty-secrets branch October 2, 2025 18:23
docfail pushed a commit to docfail/SillyTavern-Jitakuura that referenced this pull request Oct 27, 2025
…yTavern#4580)

* Allow saving empty secrets via secret manager and slash command
Closes SillyTavern#4577

* Fix logic on cancel

* Fix /secrets-read with empty secret value
samuelx5 pushed a commit to samuelx5/SillyTavern that referenced this pull request Dec 9, 2025
…yTavern#4580)

* Allow saving empty secrets via secret manager and slash command
Closes SillyTavern#4577

* Fix logic on cancel

* Fix /secrets-read with empty secret value
sammeh543 pushed a commit to sammeh543/SillyTavern that referenced this pull request Feb 24, 2026
…yTavern#4580)

* Allow saving empty secrets via secret manager and slash command
Closes SillyTavern#4577

* Fix logic on cancel

* Fix /secrets-read with empty secret value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏭 Backend Changes [PR] Contains changes to the backend and/or API ✨ Feature Changes [PR] Changing or tweaking an existing feature in its functionality 👷 Maintainer [ISSUE][PR] Posts by a maintainer or author of SillyTavern 🟩 ⬤⬤○○○ [PR][🎯Auto-applied] [Small] 20-100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE_REQUEST] Allow no API key to be entered after secret is saved

2 participants