GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [Bug]: Publishing an empty duplicate variable row deletes the stored secret · Issue #31328 · pingdotgg/t3code Closed Closed Copy link Labels via-triageFiled through npx t3 triage DescriptionWhat happenedSettings > Providers > a provider instance > Environment > Variables. Add a variable (name One commit triggers it, not a later edit; any later edit or provider-instance echo that republishes the pair repeats it. Diagnosis
Resolving the environment treats a missing secret as no-value (documented Test.ts cases cover inline shapes only), so sessions/services read FOO as "". Reproducing this pair stores FOO initially (redacted in settings.json), then commits a second empty-sensitive FOO row; the previously stored secret is deleted by the empty row's persistence pass. Reproduced live at Steps to reproducePreconditions: provider instance you control, not locked by org policy; open Settings > Providers > that instance > Environment > Variables; no existing FOO variable. Use disposable values.
Live verified on a disposable Replay (dev) instance. Versionmain @ EnvironmentmacOS, Node 26 (vp engines 26.12.1), desktop web client reached via a local dev server ( Evidencebefore (file present):
environment: [ { "name": "FOO", "value": "", "sensitive": true, "valueRedacted": true } ]
secrets:
asset-access-signing-key.bin
cloud-link-ed25519-key-pair.bin
mcp-oauth-signing-key.bin
secret-request-salt.bin
server-signing-key.bin
provider-env-ZGV2UmVwbGF5-Rk9P.bin
after (file absent):
environment: [ { "name": "FOO", "value": "", "sensitive": true, "valueRedacted": true },
{ "name": "FOO", "value": "", "sensitive": true } ]
secrets:
$ ls | grep -i provider-env-
(provider-env-ZGV2UmVwbGF5-Rk9P.bin no longer present)Related issuesClosest neighbour is #10022 (fixed by merged PR #10054) — same secret store, same persistence function, different failure mode: that one missed a required write on redacted saves; this one makes an erroneous remove-secret pass because the write that saved the stored secret is present but the duplicate's marker absent. PR #12487 (merged) covers duplicate operation-order regressions; #23427 covers blur-order boundaries. None cover the redacted + explicit-empty pair. #30115 touches unpublished rows but is out of scope here: this is the publish-commit path (publishRows → onChange → persistSettingsSecrets), not the re-delivery reconciliation. Fix applied or workaroundUntil fixed: while the duplicate row's name input is focused, do not navigate or click; blur or Enter commits and deletes the secret. Press Cmd+R/Ctrl+R instead — a reload discards the unpublished row without committing (only blur or Enter commits). If the secret is already gone, re-enter the value from Settings after the duplicate row is removed. Typing an invalid character into the duplicate name (e.g. Filed bypulse-alpha-free (OpenCode, via T3 Code) Activity
MetadataMetadataAssigneesLabelsvia-triageFiled through npx t3 triage TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |