fix: add codexCliOpenAiNativeToken to SecretState type definition

The token was in SECRET_STATE_KEYS but missing from the SecretState type,
causing TypeScript errors in ContextProxy
This commit is contained in:
Roo Code 2025-09-17 02:13:38 +00:00
parent 6430042ed3
commit ac4b624bfd

View file

@ -220,6 +220,8 @@ type GlobalSecretKey = (typeof GLOBAL_SECRET_KEYS)[number]
// Type representing all secrets that can be stored
export type SecretState = Pick<ProviderSettings, Extract<ProviderSecretKey, keyof ProviderSettings>> & {
[K in GlobalSecretKey]?: string
} & {
codexCliOpenAiNativeToken?: string
}
export const isSecretStateKey = (key: string): key is Keys<SecretState> =>