Repository navigation
feat(native): complete AP-SERVERCFG and ST-PROJECTS parity - #431
Merged
Merged
Conversation
Closes remaining web-parity gaps for AP-SERVERCFG (Refs #10, #252) and ST-PROJECTS (Closes #185): - AP-SERVERCFG: - Port splitSharedServerPatch / filterSharedServerPatch / isModelSelectionProviderEnabled / supportsSharedSettingsSync in crates/core/src/settings/shared.rs and fan out shared server settings patches across connected secondary environments in crates/app/src/settings/store.rs (keeping local settings scoped and reporting partial failures). - Port withoutEnvironmentThemes cache scrub, ServerConfigState::from_cached / is_live, ProviderStatusDeltas + held on-demand provider catalogs, resolve_shortcut_keybindings authority, and environment_themes_received + default_theme/default_appearance ServerSettings decode in crates/core/src/server_config.rs and crates/client/src/supervisor.rs. - Wire primary/connected shortcut fallback and project favicon cache invalidation in crates/app/src/app_state.rs. - ST-PROJECTS: - Ship full 1,671-icon Lucide 0.564.0 catalog + 251 deprecated/digit aliases in crates/core/src/settings/projects/lucide.rs + lucide_catalog.tsv, bounded cached SVG rendering in crates/app/src/project_icon.rs, and full search + local-env browse guard + ProjectFaviconPickerDialog copy in crates/app/src/settings/project_icon_picker.rs. - Add DraftHero heading and active/non-active environment picker Project settings entries in crates/app/src/new_thread.rs routed via open_scoped_project. - Add machine/checkout scope filtering, has_other_members danger copy, Show all environments empty state, model trait controls, and favicon invalidation in crates/app/src/settings/{mod,projects}.rs. - Update AP-SERVERCFG and ST-PROJECTS rows to done in apps/native/parity/LEDGER.md. Model: Antigravity (f5-servercfg-projects)
…PROJECTS Addresses all 4 review findings on PR #431: 1. Wire project default model trait controls in crates/app/src/settings/projects.rs directly through set_project_model / save_project_override so scratch projects (and all project targets) save projectSettingsOverrides.<id>.defaultModelSelection with project_model_unavailable checks instead of mutating global defaultModelSelection; add scratch-project GPUI test. 2. Enforce requiredScopesForServerSettingsPatch (crates/core/src/settings/shared.rs) upfront on the active environment in send_active_with_shared_fanout (and per target in send_scoped_environments), and report denied connected secondary environments in the partial failure summary instead of silently skipping; extend store.rs GPUI tests. 3. Add AppState::sync_shortcut_keybindings in crates/app/src/app_state.rs (invoked on reset, install_active_environment, and apply_fleet_view) to install [] (defaults) whenever authoritative resolved keybindings are None, clearing stale custom keybindings when switching to a loading primary or disconnecting the last fallback; add GPUI test. 4. Update AP-SERVERCFG in apps/native/parity/LEDGER.md to state accurately what is wired live at runtime vs ready core helpers (native matches web without mobile's providerCatalogsOnDemand or a disk ServerConfig cache). Model: Antigravity (f5-servercfg-projects)
…ject trait test Awaits AppEvent::ServerConfig via oneshot and drains cx.run_until_parked() before cx.shutdown() / cx.clear_globals() so send_projects finishes send_next(cx) while ClientPrefs is still registered. Model: Antigravity (f5-servercfg-projects)
This was referenced Nov 19, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #185
Refs #10, #252
Summary
Closes all remaining applicable web-parity gaps for
AP-SERVERCFGandST-PROJECTSinapps/native, bringing both rows todoneinapps/native/parity/LEDGER.md.Changes
AP-SERVERCFGcrates/core/src/settings/shared.rs&crates/core/src/settings/mod.rs: PortedSHARED_SERVER_SETTING_KEYS,split_shared_server_patch,is_model_selection_provider_enabled(text generator precedence + provider fallback),filter_shared_server_patch(driver-compatibility + target enabled check +continueThreadsAfterServerUpdateomit when target settings are absent), andsupports_shared_settings_sync.crates/core/src/server_config.rs&crates/core/src/server_config/tests.rs:without_environment_themes,ServerConfigState::from_cached,ServerConfigState::is_live,environment_themes_received, andEnvironmentCapabilities(environment_themes,provider_workspace_snapshots_on_demand,server_self_update_progress).ServerSettingsdefault theme/appearance contract fields (default_theme,default_theme_set_at,default_appearance,default_appearance_set_at) with lenient decoding forAP-THEMEsibling coordination.catalog_digest/loaded_catalog_digest,with_held_provider_catalogs,apply_fetched_machine_catalogs,ServerProviderDelta/apply_server_provider_deltas,ServerConfigStreamEvent::ProviderStatusDeltas, andresolve_shortcut_keybindings.crates/client/src/supervisor.rs: Treated both omitted andnullfields inproviderStatusDeltasas inherited from held provider catalogs and dropped unrebuildable delta entries.crates/app/src/settings/store.rs: Added multi-environment shared server settings fan-out (send_active_with_shared_fanout) splitting shared vs local patches, filtering per connected secondary environment withsettings:write, applying replies to fleet & activeServerConfigState, and reporting partial failures with failed + saved environment labels.crates/app/src/app_state.rs: Wiredresolve_shortcut_keybindingsfallback when primary config is unavailable, routedScopedRouteAction::ProjectSettingsviaopen_scoped_project, and addedinvalidate_project_favicons(matchingrefreshProjectFaviconUrlinapps/web/src/state/assets.ts).ST-PROJECTScrates/core/src/settings/projects/{lucide.rs,lucide_catalog.tsv,picker.rs}&crates/core/src/settings/projects.rs: Shipped the full 1,671-icon Lucide 0.564.0 catalog + 251 deprecated/digit aliases with 24×24 SVG rendering (stroke-width="1.75") and alias resolution for popular icons (code-2,globe-2,layers-3).crates/app/src/project_icon.rs: Rendered non-builtin Lucide icons via a bounded thread-local cachedArc<gpui::Image>(ImageFormat::Svg, max 512 entries keyed by(canonical_name, rgba)), falling back toFolderCodeonly for unknown future names.crates/app/src/settings/project_icon_picker.rs: Exposed all 1,671 searchable Lucide icons, removed the 167-icon limitation banner, required local/primary env + existing directory for local file browse, and matchedProjectFaviconPickerDialog.tsxcopy.crates/app/src/new_thread.rs: Added"Project settings"context-menu entries on the non-scratch draft hero project heading (open_project_settings_for_draft) and on every project row in the draft hero picker (open_project_settings_for_entry, supporting both active and non-active environments without switching environments).crates/app/src/settings/{mod,projects,project_actions}.rs: Addedopen_scoped_project(environment_id, project_id), machine/checkout scope filtering onShown(preservingall_targetsfor Pin/Archive and computinghas_other_membersfor danger copy),"Show all environments"button on hidden scoped projects,model_trait_controlseffort/traits picker + mixed-model status inNew threads, and favicon invalidation on favicon file updates.Ledger
apps/native/parity/LEDGER.md: Updated ONLYST-PROJECTS(partial #185->done) andAP-SERVERCFG(partial #10, #252->done;#252remains onAP-THEME).Verification
cargo clippy --workspace --all-targets -- -D warnings: pass (0 warnings)cargo build -p t3-native: passcargo test -p t3-core server_config -- --test-threads=1: 10/10 passedcargo test -p t3-core settings::shared -- --test-threads=1: 5/5 passedcargo test -p t3-core settings::projects -- --test-threads=1: 19/19 passedcargo test -p t3-client -- --test-threads=1: 151/151 passedT3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot project_icon -- --test-threads=1: 1/1 passedT3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot settings::store -- --test-threads=1: 5/5 passedT3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot settings::projects -- --test-threads=1: 2/2 passedT3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot settings::project_actions -- --test-threads=1: 1/1 passedT3_NATIVE_HOME=$(mktemp -d) cargo test -p t3-native --features snapshot new_thread -- --test-threads=1: 8/8 passedvp fmt --check apps/native/parity/LEDGER.md: passnode --test apps/native/parity/sync.test.ts: 47/47 passedgen-theme.ts --check: skipped in bare worktree withoutapps/web/node_modules(no theme/token files modified)Model: Antigravity (
f5-servercfg-projects)