aKode fase 2a: rimossi cloud tasks, chatgpt apply, responses-api-proxy, codex app, remote control, guardian decisions; realtime senza fallback OpenAI; doctor senza sonde OpenAI
This commit is contained in:
@@ -47,6 +47,7 @@ async fn runtime_client(
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
#[ignore = "aKode: runtime registration with auth.openai.com is disabled"]
|
||||
async fn analytics_runtime_covers_regional_account_and_report_requests() -> Result<()> {
|
||||
skip_if_no_network!(Ok(()));
|
||||
let bases = [
|
||||
@@ -185,6 +186,7 @@ async fn analytics_runtime_covers_regional_account_and_report_requests() -> Resu
|
||||
}
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
|
||||
#[ignore = "aKode: runtime registration with auth.openai.com is disabled"]
|
||||
async fn analytics_runtime_bootstrap_preserves_sign_in_guidance() -> Result<()> {
|
||||
skip_if_no_network!(Ok(()));
|
||||
if std::env::var(PROBE_SERVER).is_ok() {
|
||||
|
||||
@@ -6,7 +6,9 @@ use crate::AppServerTarget;
|
||||
use crate::app_server_session::AppServerSession;
|
||||
use crate::app_server_session::AppServerSessionEvent;
|
||||
use crate::backend_id::BackendId;
|
||||
#[cfg(test)]
|
||||
use crate::legacy_core::config::Config;
|
||||
#[cfg(test)]
|
||||
use crate::local_settings::LocalSettings;
|
||||
use codex_app_server_client::AppServerEvent;
|
||||
use codex_app_server_protocol::ServerNotification;
|
||||
@@ -33,6 +35,7 @@ impl InitialBackendSessions {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub(crate) fn register(
|
||||
&mut self,
|
||||
connection: AppServerSession,
|
||||
|
||||
@@ -38,7 +38,6 @@ use codex_app_server_client::InProcessClientStartArgs;
|
||||
use codex_app_server_client::RemoteAppServerClient;
|
||||
use codex_app_server_client::RemoteAppServerConnectArgs;
|
||||
pub use codex_app_server_client::RemoteAppServerEndpoint;
|
||||
use codex_app_server_client::cloud_backend;
|
||||
use codex_app_server_protocol::Account as AppServerAccount;
|
||||
use codex_app_server_protocol::AskForApproval;
|
||||
use codex_app_server_protocol::ConfigWarningNotification;
|
||||
@@ -1243,7 +1242,6 @@ async fn run_ratatui_app(
|
||||
mut state_db: Option<StateDbHandle>,
|
||||
environment_manager: Arc<EnvironmentManager>,
|
||||
embedded_network_policy: codex_app_server_client::EmbeddedNetworkPolicy,
|
||||
cloud_preview_available: bool,
|
||||
managed_worktree: Option<ManagedTuiWorktree>,
|
||||
daemon_startup_warning: Option<String>,
|
||||
managed_daemon: bool,
|
||||
@@ -2291,36 +2289,8 @@ async fn run_ratatui_app(
|
||||
Ok(StartupHooksReviewOutcome::OpenHooksBrowser(data)) => Some(data),
|
||||
};
|
||||
|
||||
let mut initial_backends = app::backend_sessions::InitialBackendSessions::singleton(app_server);
|
||||
if cfg!(any(target_os = "macos", target_os = "linux"))
|
||||
&& config.features.enabled(Feature::TuiMultiBackend)
|
||||
&& cloud_preview_available
|
||||
&& !workload_identity_selected
|
||||
&& config
|
||||
.config_layer_stack
|
||||
.requirements_toml()
|
||||
.config_server
|
||||
.is_none()
|
||||
{
|
||||
// A daemon-backed resume can rebuild Config without the local transport handle.
|
||||
let mut cloud_config = config.clone();
|
||||
embedded_network_policy.bind_config(&mut cloud_config);
|
||||
match Box::pin(cloud_backend::connect(&cloud_config)).await {
|
||||
Ok(client) => initial_backends.register(
|
||||
AppServerSession::new(
|
||||
backend_id::BackendId::new(),
|
||||
client,
|
||||
ThreadParamsMode::Cloud,
|
||||
),
|
||||
AppServerTarget::Cloud,
|
||||
cloud_config,
|
||||
local_settings.clone(),
|
||||
),
|
||||
Err(error) => tui.insert_history_lines(vec![ratatui::text::Line::from(format!(
|
||||
"Could not add the Cloud connection. {error}"
|
||||
))]),
|
||||
}
|
||||
}
|
||||
// aKode: the native ChatGPT Cloud backend was removed; only local/remote app servers remain.
|
||||
let initial_backends = app::backend_sessions::InitialBackendSessions::singleton(app_server);
|
||||
|
||||
// Keep the large event-loop future out of the enclosing startup futures so session
|
||||
// transitions have enough stack headroom to rebuild configuration and the chat widget.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Public wrapper around the internal ChatComposer for simple, reusable text input.
|
||||
//!
|
||||
//! This exposes a minimal interface suitable for other crates (e.g.,
|
||||
//! codex-cloud-tasks) to reuse the mature composer behavior: multi-line input,
|
||||
//! This exposes a minimal interface suitable for other crates to reuse the
|
||||
//! mature composer behavior: multi-line input,
|
||||
//! paste heuristics, Enter-to-submit, and Shift+Enter for newline.
|
||||
|
||||
use crossterm::event::KeyEvent;
|
||||
|
||||
@@ -374,7 +374,6 @@ pub(super) async fn run_main_inner(
|
||||
workload_identity_selected,
|
||||
std::env::var_os(codex_exec_server::CODEX_EXEC_SERVER_URL_ENV_VAR).as_deref(),
|
||||
)?;
|
||||
let cloud_preview_available = app_server_target.uses_embedded_network_policy();
|
||||
let remote_cwd_override = cli
|
||||
.cwd
|
||||
.clone()
|
||||
@@ -1011,7 +1010,6 @@ pub(super) async fn run_main_inner(
|
||||
state_db,
|
||||
environment_manager,
|
||||
embedded_network_policy,
|
||||
cloud_preview_available,
|
||||
managed_worktree.clone(),
|
||||
daemon_startup_warning,
|
||||
managed_daemon,
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
source: tui/src/status/tests.rs
|
||||
assertion_line: 1155
|
||||
expression: sanitized
|
||||
---
|
||||
/status
|
||||
|
||||
>_ OpenAI Codex (v0.0.0)
|
||||
|
||||
Visit https://chatgpt.com/settings/usage for up-to-date
|
||||
information on rate limits and credits
|
||||
|
||||
Model: gpt-5.1-codex-max (reasoning none, summaries auto)
|
||||
Directory: [[workspace]]
|
||||
Permissions: Custom (workspace with network access, Ask for approval)
|
||||
Agents.md: <none>
|
||||
|
||||
Token usage: 1.2K total (800 input + 400 output)
|
||||
Context window: 100% left (1.2K used / 272K)
|
||||
Monthly credit limit: [██████████████░░░░░░] 68% left (resets 07:08 on 7 May)
|
||||
8000 of 25.000 credits used
|
||||
Reference in New Issue
Block a user