The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 02:00 UTC
fix(web): removing a secret provider lists the Simlock tokens that read from it (#31754)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
MarcoDotIO committed
Nov 8, 2026 at 21:02 UTC
b690f08cbf2bec04267202fb6b66db65d1b53b1f
2 files changed
+15
apps/web/src/components/settings/SecretsSettings.logic.test.ts
+10
@@ -31,6 +31,15 @@ const settings = Schema.decodeSync(ServerSettings)({
31
easDeviceHosts: [
32
{ kind: "eas", id: "eas", label: "EAS Simulator", accessToken: personal("op://expo") },
33
],
34
+ simlockDeviceHosts: [
35
+ {
36
+ kind: "simlock",
37
+ id: "pool",
38
+ label: "Simlock Pool",
39
+ gatewayUrl: "https://simlock.test",
40
+ agentToken: personal("op://simlock"),
41
+ },
42
+ ],
43
cloudSpeechCredentials: { openai: personal("op://voice"), xai: "" },
44
});
45
@@ -43,6 +52,7 @@ it.each([
52
"GitHub · github.com",
53
"https://hub.test · Management Key",
54
"EAS Simulator · Access Token",
55
+ "Simlock Pool · Agent Token",
56
"Voice · OpenAI",
57
],
58
],
apps/web/src/components/settings/SecretsSettings.logic.ts
+5
@@ -5,6 +5,7 @@ import {
5
isSecretReference,
6
secretReferencesInSettings,
7
type ServerSettings,
8
+ SimlockDeviceHostConfig,
9
UsageLimitSourceConfig,
10
} from "@t3tools/contracts";
11
import { getProviderClient } from "@t3tools/client-runtime/provider-clients";
@@ -18,6 +19,7 @@ type SecretUseSettings = Pick<
19
| "sourceControlHosts"
20
| "usageLimitSources"
21
| "easDeviceHosts"
22
+ | "simlockDeviceHosts"
23
| "cloudSpeechCredentials"
24
>;
25
@@ -92,6 +94,9 @@ export function secretProviderUses(
94
...settings.easDeviceHosts.flatMap((host) =>
95
uses({ settingsSchema: EasDeviceHostConfig }, `eas:${host.id}`, host.label, host),
96
),
97
+ ...settings.simlockDeviceHosts.flatMap((host) =>
98
+ uses({ settingsSchema: SimlockDeviceHostConfig }, `simlock:${host.id}`, host.label, host),
99
+ ),
100
...CloudSpeechProvider.literals.flatMap((provider) => {
101
const credential = settings.cloudSpeechCredentials[provider];
102
return isSecretReference(credential) && credential.provider === providerId