Repository navigation
feat(native): close AP-POLICY and advance AP-A11Y parity - #434
Merged
Merged
Conversation
Open
rynfar
force-pushed
the
nw/f6-policy-a11y
branch
from
November 19, 2026 18:51
432e8ff to
3393867
Compare
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.
Refs #106
Problem
Managed policy helpers (
AP-POLICY) and screen reader announcements (AP-A11Y) had missing call sites acrossapps/native:maxRuntimeMode) clamping/denials were missing in the composer and model picker permissions popover, and several settings/setup views were missingManagedControl,ManagedNotice,firstManagedDenial,allowedDrivers,wholeEnvironment, andlockedSettingsenforcement."Pinned 1 thread"on pin actions,"Undid <action> of <count> <noun>"after undo execution, multi-environment secondary fleet background thread announcements, and selection-change updates on background announcements.Changes
AP-POLICY(partial #106->done):crates/core/src/managed_policy.rs: addedis_runtime_mode_above,runtime_mode_ceiling_message,runtime_mode_denial,clamp_runtime_mode,clamp_typed_runtime_mode,updates_message,nightly_denied_message,updates_denial,providers_allowed_drivers_empty,providers_allowed_drivers_restricted, andsetting_lock_reason_for_any, with unit tests.crates/app/src/components/managed.rs: implementedManagedElementforSelect(alongsideButtonandSwitch) and added GPUI click-suppression + attribution render tests.crates/app/src/composer/{mod.rs,model_picker.rs}: wiredmaxRuntimeModeceiling enforcement inpermissions_section_with_policy(disabled reasons + tooltips), guardedset_runtime_mode, and added the warning banner with"Switch to <mode>"clamp action + GPUI test.crates/app/src/chatgpt_setup.rs&crates/app/src/onboarding/agents.rs: wrapped"Continue with ChatGPT"/"Reconnect account"/"Connect another ChatGPT account"inManagedControlusingmanaged_instance_locks(config.setupMode),driver_denial, andsetting_lock_reason.crates/app/src/settings/{providers.rs,providers/editor.rs}: hid Add provider whenallowedDriversis empty orproviderslocked, hid Text generators whenallowedDriversis restricted, locked provider enable/reset/delete/advanced controls onlockedSettings, and surfacedManagedNoticeabove Environment whenwhole_environmentis locked.crates/app/src/settings/{general.rs,projects.rs,diffs_browser.rs,access.rs,environments.rs,scheduled_tasks.rs}: wiredfirst_managed_denialandsetting_lock_reason_for_anyacross Labs/Projects/Browser/Access/Environments/Scheduled Tasks, plusBrowserCookieImport,RemoteClients, andConnectManagedNotice/ManagedControlcall sites, with GPUI tests.AP-A11Y(stayspartial #106honestly for non-macOS platform delivery & VoiceOver live verification):crates/core/src/announcements.rs&crates/app/src/announcements.rs: addedundone_announcement(showThreadUndoNotice.ts) andBackground::observe_secondary_fleet(BackgroundThreadAnnouncer.tsx) subscribed onAppEvent::Selection | AppEvent::Shell, with unit tests.crates/app/src/sidebar/{controller.rs,bulk.rs}: wired"Pinned 1 thread"(useThreadActions.ts) on local/scoped/drop pin commands and"Undid <action> of <count> <noun>"onundo_latest/run_owned_undo, with GPUI test.apps/native/parity/LEDGER.md: flippedAP-POLICY->done(blank Issue); updatedAP-A11Y(keptpartial #106solely for non-macOS platform delivery & VoiceOver live verification, matchingAP-NOTIFY#12andST-GENERAL#188).Verification
CARGO_INCREMENTAL=0 cargo clippy --workspace --all-targets -- -D warnings: pass (0 warnings)CARGO_INCREMENTAL=0 cargo test -p t3-core managed_policy -- --test-threads=1: 4/4 passCARGO_INCREMENTAL=0 cargo test -p t3-core announcements -- --test-threads=1: 14/14 passCARGO_INCREMENTAL=0 cargo test -p t3-core --test conformance -- --test-threads=1: 8/8 passCARGO_INCREMENTAL=0 cargo test -p t3-client -- --test-threads=1: 151/151 passT3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test -p t3-native --features snapshot -- --test-threads=1 managed_control_locks_button_switch_and_select_and_renders_attribution managed_runtime_mode_ceiling_renders_banner_blocks_upgrade_and_clamps_down managed_policy_notices_render_across_browser_connections_and_providers undo_latest_draft_and_undo_notice_emit_screen_reader_announcements general::tests: 5/5 passT3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test -p t3-native --features snapshot -- --test-threads=1 settings::environments composer::stream_error_tests::managed_runtime_mode composer::stream_error_tests::usage_limits composer::stream_error_tests::branch_mismatch: 6/6 passCARGO_INCREMENTAL=0 cargo build -p t3-native: passvp fmt --check apps/native/parity/LEDGER.md(via main native checkout withnode_modules): passnode --test apps/native/parity/sync.test.ts: 47/47 passnode apps/native/scripts/gen-theme.ts --check: skipped in bare worktree (noapps/web/node_modules; no theme files touched)Built with Antigravity (Gemini 3.1 Pro).