Move fullscreen transcript control to TUI configuration (#46849)

## What changed

Use `tui.fullscreen_transcript` to opt into the fullscreen transcript, including scrolling, selection, and search. It defaults to `false`; `--no-alt-screen` and `tui.alternate_screen = "never"` still take precedence.

The new preference controls both the first frame and application startup. Boolean CLI overrides for it are allowed during daemon startup. The old `features.transcript_v2` flag is deprecated and ignored, with a notice directing users to the new setting; it does not migrate into or override the preference.

## Testing

Add coverage for default terminal scrollback, fullscreen persistence through startup, alternate-screen restrictions, daemon override validation, and independence from the deprecated flag. Update existing history and activity tests to use the new preference.

GitOrigin-RevId: 4117bf1ee548fa8d101a594f9506673d87c74c15
This commit is contained in:
Eric Traut
2026-09-20 16:59:00 +00:00
committed by copyberry
parent 79ef00ded1
commit a2de8fedcc
20 changed files with 106 additions and 75 deletions
+10 -2
View File
@@ -95,7 +95,7 @@ pub enum Feature {
AnalyticsPlanHistory,
/// Discover model catalogs for OpenAI API-key authentication.
ApiKeyModelDiscovery,
/// Enable the interactive transcript composer and turn-selection UI.
/// Deprecated no-op; use `tui.fullscreen_transcript` instead.
TranscriptV2,
// Stable.
/// Enable the default shell tool.
@@ -592,6 +592,10 @@ impl Features {
Feature::WebSearchCached,
);
}
"transcript_v2" => {
self.record_legacy_usage_force("features.transcript_v2", Feature::TranscriptV2);
continue;
}
"tui_app_server" => {
continue;
}
@@ -696,6 +700,10 @@ impl Features {
fn legacy_usage_notice(alias: &str, feature: Feature) -> (String, Option<String>) {
let canonical = feature.key();
match feature {
Feature::TranscriptV2 => (
"`[features].transcript_v2` is deprecated and ignored.".to_string(),
Some("Use `[tui].fullscreen_transcript` in config.toml instead.".to_string()),
),
Feature::WebSearchRequest | Feature::WebSearchCached => {
let label = match alias {
"web_search" => "[features].web_search",
@@ -937,7 +945,7 @@ pub const FEATURES: &[FeatureSpec] = &[
FeatureSpec {
id: Feature::TranscriptV2,
key: "transcript_v2",
stage: Stage::UnderDevelopment,
stage: Stage::Deprecated,
default_enabled: false,
},
// Stable features.
-9
View File
@@ -14,15 +14,6 @@ use std::collections::BTreeMap;
use toml::Table;
use toml::Value as TomlValue;
#[test]
fn transcript_v2_resolves_explicit_config_overrides() {
let mut features = Features::with_defaults();
for enabled in [false, true, false] {
features.apply_map(&BTreeMap::from([("transcript_v2".to_string(), enabled)]));
assert_eq!(features.enabled(Feature::TranscriptV2), enabled);
}
}
#[test]
fn sleep_tool_config_rejects_unknown_mode() {
assert!(toml::from_str::<FeaturesToml>("[sleep_tool]\nmode = 'off'").is_err());