aKode fase 2b-1 (WIP): rimossi cloud-config, apps MCP ChatGPT, upload file, connectors-extension, rate limits backend; plugin remoti in corso (test non ancora compilanti)
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled
This commit is contained in:
@@ -47,7 +47,6 @@ use codex_app_server_protocol::ThreadListCwdFilter;
|
||||
use codex_app_server_protocol::ThreadListParams;
|
||||
use codex_app_server_protocol::ThreadSortKey as AppServerThreadSortKey;
|
||||
use codex_app_server_protocol::ThreadSourceKind;
|
||||
use codex_cloud_config::managed_config_bundle_loader_for_storage;
|
||||
use codex_config::CloudConfigBundleLoader;
|
||||
use codex_config::ConfigLoadError;
|
||||
use codex_config::LoaderOverrides;
|
||||
@@ -1126,21 +1125,15 @@ fn app_server_target_for_launch(
|
||||
})
|
||||
}
|
||||
|
||||
/// aKode never loads managed config bundles from a remote service; only local
|
||||
/// configuration and requirements files apply.
|
||||
async fn cloud_config_bundle_for_app_server_target(
|
||||
app_server_target: &AppServerTarget,
|
||||
bootstrap_config: &ConfigTomlLoadResult,
|
||||
codex_home: &Path,
|
||||
embedded_network_policy: &codex_app_server_client::EmbeddedNetworkPolicy,
|
||||
_app_server_target: &AppServerTarget,
|
||||
_bootstrap_config: &ConfigTomlLoadResult,
|
||||
_codex_home: &Path,
|
||||
_embedded_network_policy: &codex_app_server_client::EmbeddedNetworkPolicy,
|
||||
) -> std::io::Result<CloudConfigBundleLoader> {
|
||||
managed_config_bundle_loader_for_storage(
|
||||
embedded_network_policy
|
||||
.bind_bootstrap_auth(app_server_target.auth_config_for_cloud_loader(
|
||||
bootstrap_auth_config(codex_home, bootstrap_config)?,
|
||||
)),
|
||||
bootstrap_config.config_layer_stack.requirements_toml(),
|
||||
/*enable_codex_api_key_env*/ false,
|
||||
)
|
||||
.await
|
||||
Ok(CloudConfigBundleLoader::default())
|
||||
}
|
||||
|
||||
fn loader_overrides_are_default(loader_overrides: &LoaderOverrides) -> bool {
|
||||
@@ -1236,7 +1229,7 @@ async fn run_ratatui_app(
|
||||
manually_selected_oss_provider: Option<String>,
|
||||
overrides: ConfigOverrides,
|
||||
cli_kv_overrides: Vec<(String, toml::Value)>,
|
||||
mut cloud_config_bundle: CloudConfigBundleLoader,
|
||||
cloud_config_bundle: CloudConfigBundleLoader,
|
||||
feedback: codex_feedback::CodexFeedback,
|
||||
log_db: Option<log_db::LogDbLayer>,
|
||||
mut state_db: Option<StateDbHandle>,
|
||||
@@ -1544,17 +1537,6 @@ async fn run_ratatui_app(
|
||||
}
|
||||
let reloaded_config = startup_draft
|
||||
.run_until(&mut tui, async {
|
||||
// If this onboarding run included the login step, always refresh the cloud config
|
||||
// bundle and rebuild config. This avoids missing newly available cloud-managed
|
||||
// policy due to login status detection edge cases.
|
||||
if show_login_screen && !uses_remote_workspace && !workload_identity_selected {
|
||||
cloud_config_bundle = managed_config_bundle_loader_for_storage(
|
||||
embedded_network_policy.bind_bootstrap_auth(initial_config.auth_config()),
|
||||
initial_config.config_layer_stack.requirements_toml(),
|
||||
/*enable_codex_api_key_env*/ false,
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
|
||||
// Reload config when persisted trust or auth changes alter the current process.
|
||||
Ok::<_, std::io::Error>(
|
||||
|
||||
@@ -313,19 +313,6 @@ pub(super) async fn run_main_inner(
|
||||
err
|
||||
}
|
||||
})?;
|
||||
if std::io::stdin().is_terminal() && std::io::stdout().is_terminal() {
|
||||
codex_cloud_config::ensure_config_server_login(
|
||||
embedded_network_policy.bind_bootstrap_auth(bootstrap_auth_config(
|
||||
&codex_home,
|
||||
&presentation.bootstrap_config,
|
||||
)?),
|
||||
presentation
|
||||
.bootstrap_config
|
||||
.config_layer_stack
|
||||
.requirements_toml(),
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
// Keep normal terminal signals available until local configuration is ready. Once raw
|
||||
// mode begins, StartupDraft immediately takes ownership of input.
|
||||
let (initialized_terminal, terminal_restore_guard) = tokio::task::spawn_blocking(|| {
|
||||
@@ -394,7 +381,7 @@ pub(super) async fn run_main_inner(
|
||||
} else {
|
||||
Ok(())
|
||||
};
|
||||
let cloud_config_bundle = startup_draft
|
||||
let mut cloud_config_bundle = startup_draft
|
||||
.run_until(cloud_config_bundle_for_app_server_target(
|
||||
&app_server_target,
|
||||
&bootstrap_config,
|
||||
@@ -525,19 +512,6 @@ pub(super) async fn run_main_inner(
|
||||
config.cwd.as_path(),
|
||||
);
|
||||
|
||||
let mut cloud_config_bundle = if workload_identity_selected {
|
||||
cloud_config_bundle
|
||||
} else {
|
||||
startup_draft
|
||||
.run_until(managed_config_bundle_loader_for_storage(
|
||||
embedded_network_policy.bind_bootstrap_auth(
|
||||
app_server_target.auth_config_for_cloud_loader(config.auth_config()),
|
||||
),
|
||||
config.config_layer_stack.requirements_toml(),
|
||||
/*enable_codex_api_key_env*/ false,
|
||||
))
|
||||
.await??
|
||||
};
|
||||
let managed_worktree = if cli.shared.worktree {
|
||||
let (destination, bundle, worktree) = startup_draft
|
||||
.run_until(worktree_startup::prepare(
|
||||
|
||||
Reference in New Issue
Block a user