mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
Enable tui_app_server feature by default (#15661)
This commit is contained in:
committed by
GitHub
Unverified
parent
8d479f741c
commit
e7139e14a2
@@ -822,12 +822,8 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::TuiAppServer,
|
||||
key: "tui_app_server",
|
||||
stage: Stage::Experimental {
|
||||
name: "App-server TUI",
|
||||
menu_description: "Use the app-server-backed TUI implementation.",
|
||||
announcement: "",
|
||||
},
|
||||
default_enabled: false,
|
||||
stage: Stage::Stable,
|
||||
default_enabled: true,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::PreventIdleSleep,
|
||||
|
||||
@@ -112,6 +112,8 @@ trust_level = "trusted"
|
||||
"resume".to_string(),
|
||||
"--last".to_string(),
|
||||
"--no-alt-screen".to_string(),
|
||||
"--disable".to_string(),
|
||||
"tui_app_server".to_string(),
|
||||
"-C".to_string(),
|
||||
repo_root.display().to_string(),
|
||||
"-c".to_string(),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
use crate::bottom_pane::FeedbackAudience;
|
||||
use crate::status::StatusAccountDisplay;
|
||||
use codex_app_server_client::AppServerClient;
|
||||
use codex_app_server_client::AppServerEvent;
|
||||
use codex_app_server_client::AppServerRequestHandle;
|
||||
@@ -84,10 +86,6 @@ use color_eyre::eyre::Result;
|
||||
use color_eyre::eyre::WrapErr;
|
||||
use std::collections::HashMap;
|
||||
use std::path::PathBuf;
|
||||
use tracing::debug;
|
||||
|
||||
use crate::bottom_pane::FeedbackAudience;
|
||||
use crate::status::StatusAccountDisplay;
|
||||
|
||||
pub(crate) struct AppServerBootstrap {
|
||||
pub(crate) account_auth_mode: Option<AuthMode>,
|
||||
@@ -258,8 +256,8 @@ impl AppServerSession {
|
||||
.await
|
||||
{
|
||||
Ok(rate_limits) => app_server_rate_limit_snapshots_to_core(rate_limits),
|
||||
Err(error) => {
|
||||
debug!(error = ?error, "failed to fetch rate limits during TUI bootstrap");
|
||||
Err(err) => {
|
||||
tracing::warn!("account/rateLimits/read failed during TUI bootstrap: {err}");
|
||||
Vec::new()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,6 +112,8 @@ trust_level = "trusted"
|
||||
"resume".to_string(),
|
||||
"--last".to_string(),
|
||||
"--no-alt-screen".to_string(),
|
||||
"--enable".to_string(),
|
||||
"tui_app_server".to_string(),
|
||||
"-C".to_string(),
|
||||
repo_root.display().to_string(),
|
||||
"-c".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user