Add Amazon Bedrock setup to TUI onboarding (#40679)

## What changed

- Add a feature-gated Amazon Bedrock option to eligible TUI sign-in flows.
- Discover existing AWS profiles and environment credentials, with manual setup for profiles, access keys, environment variables, and Bedrock API keys.
- Collect the AWS Region, mask secrets during entry, persist the selected Bedrock configuration through the app server, and restart the embedded server when the provider changes.

## Testing

- Cover wizard eligibility, sign-in option rendering, credential discovery ordering, region entry, and secret masking.

GitOrigin-RevId: 0a49afb6aca442b88e8448efa80336777848f4ac
This commit is contained in:
alexsong-oai authored and copyberry committed 2026-08-25 19:30:21 +00:00
1 parent 4b24638e1c
commit f1a6f7c9b3
9 files changed
+1617 -63

No files matched your search

+8
View File
@@ -305,6 +305,8 @@ pub enum Feature {
ToolCallMcpElicitation,
/// Prompt Codex Apps connector auth failures through MCP URL elicitations.
AuthElicitation,
/// Offer Amazon Bedrock setup during TUI sign-in onboarding.
BedrockSetupWizard,
/// Enable personality selection in the TUI.
Personality,
/// Enable native artifact tools.
@@ -1507,6 +1509,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::BedrockSetupWizard,
key: "bedrock_setup_wizard",
stage: Stage::UnderDevelopment,
default_enabled: false,
},
FeatureSpec {
id: Feature::Personality,
key: "personality",