Skip to content

feat(native): wire rich-text chat toggle, About update-track/CLI controls, and Browser/Device tab parity (ST-CHAT, ST-ABOUT) - #462

Merged
rynfar merged 2 commits into
nativefrom
feat/native-chat-about-tabs
Nov 20, 2026
Merged

rynfar merged 2 commits into
nativefrom
feat/native-chat-about-tabs

Conversation

@rynfar

@rynfar rynfar commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #251

Summary

Completes native client parity for ST-CHAT and ST-ABOUT, plus the #887 follow-up for Browser profile launcher submenus and Device platform tab icons:

  • ST-CHAT (settings/general.rs, composer/{rich_text,mod,view}.rs):
    • Replaced the placeholder unavailable_group(RICH_TEXT_UNAVAILABLE, ...) with a live "Rich text composer" Switch + reset button bound to ClientSettingChange::ComposerRichText.
    • Wired composer_rich_text() into RichTextState::cache_key so disabling clears decorations live on the open composer and skips inline formatting shortcuts (Mod+B/I/E/Shift+S), code-block indent/outdent/enter, and list continuation.
  • ST-ABOUT (core/updates/mod.rs, app/updates/{mod,dialog,tests}.rs, settings/about.rs):
    • Ported updateTrackSwitch.logic.ts (nothing_to_move, local_updater_stays_put returning true for externally built GPUI binaries, channel_switch_label, UpdateTrack persistence helpers, managed-policy helpers, and npm release metadata decoding).
    • Added UpdateTrackSwitchDialog with server.getNpmRelease lookup (and offline/error/not-found states), collect_channel_switch preview, nothing_to_move notes/guards, expandable skipped reasons, restarting-threads warning, ui_state persistence, and server.updateServer dispatch.
    • Wired Version row "Check for updates" button/status, Update track (Stable / Nightly) select with managed_policy (allowNightly + mode=off) guards and unswitchedMachines "Review" trigger, and t3 command (CliCommandSettingsRow) status / "Add to PATH" / "Install 't3' command" actions reusing t3_client::local::cli_command_status() and onboarding profile helpers.
  • Right panel tabs (right_panel/tabs.rs):
    • Added per-profile submenu on the Browser + menu entry (and empty-state launcher dropdown) to open Default, configured named profiles from ClientSettingsDoc::browser_profiles(), or Incognito.
    • Added distinct platform-aware icons (AppleIcon / AndroidIcon SVG, fallback Icon::Smartphone) on SurfaceKind::Device tabs.
  • Ledger (apps/native/parity/LEDGER.md): Marked ST-CHAT and ST-ABOUT done (cleared #251), noting GPUI native binary self-update uses external/local builds via localUpdaterStaysPut while server track switching runs in full.

Verification

  • vp fmt --check apps/native/parity/LEDGER.md: PASS
  • node apps/native/scripts/gen-theme.ts --check: PASS
  • node apps/native/conformance/generate.ts --check: PASS
  • node --test apps/native/parity/sync.test.ts: 47 passed, 0 failed
  • CARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: PASS (0 warnings)
  • CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core: 1872 unit + 8 conformance = 1880 passed, 0 failed
  • CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-client -- --test-threads=1: 167 passed, 0 failed
  • T3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- --test-threads=1: 217 passed, 0 failed
  • Targeted --features snapshot tests (general::tests, about::tests, track_switch_dialog_*, channel_switch_run_*, right_panel::tabs::*, right_panel::tests, composer rich-text tests): 20 passed, 0 failed
  • CARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: PASS

Model: Antigravity (h2-chat-about)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant