Repository navigation
feat(native): add managed controls and accessibility announcements - #109
Merged
Merged
Conversation
This was referenced Nov 3, 2026
Open
rynfar
force-pushed
the
nw/106-policy-a11y
branch
from
November 3, 2026 06:06
b616d4b to
b9eff1b
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.
Native settings could expose actions that an organization's policy refuses, and thread activity had no screen reader announcements. This ports the shared managed control, notice and organization attribution, plus the web announcement queue and thread state machines. Refs #106 (M3); both AP-POLICY and AP-A11Y remain
partialwith the gaps below.The wrapper disables the underlying button/switch, retains a focusable explanation, and uses the web's copy and 50% disabled appearance. It covers provider enablement (including Antigravity setup), pairing-link creation, webhook schedule selection/save/re-enable, and the server update notice. Organization attribution appears in both Environments and Sharing & access. Add provider offers only policy-allowed featured and more drivers, and rechecks policy when advancing or saving an already-open dialog. Execution guards recheck policy on action; disabling a provider or webhook task remains available.
Pure core logic covers capability/driver denials, setting and instance-field locks, queue replacement/dedupe/cancellation, silent thread baselines, request IDs, stale details, run endings and cancelled queued runs. Open-thread activity uses the web's presented-run selection (excluding held queues) and includes synthetic secret/link input from the shell. AppState drives background and open-thread speech, with successful editor opens, model/provider selection and Undo notices wired to the shared queue. Stream-only shell ticks do not rebuild background observations; unchanged open-thread activity allocates nothing. Focus entry and blur events restart the 250ms settle deadline after each focus change, including A → B → A. Pending speech uses one cancellable settle timer and does not notify/repaint views.
macOS posts
NSAccessibilityAnnouncementRequestedNotificationusingNSAccessibilityPostNotificationWithUserInfo, onNSApplicationbecause GPUI does not expose an AX element to this client. Polite maps to Medium and assertive to High. Reviewed web callers are polite; the snapshot fixture exercises High too. The offscreen run called AppKit and logged the posted text; VoiceOver was not driven.Validation:
cargo clippy --workspace --all-targets -- -D warningscargo test --workspace(70 client, 968 core, 7 conformance, 28 app tests)cargo build -p t3-native --features snapshotnode scripts/gen-theme.ts --checknode --test parity/sync.test.ts(42 tests)packages/client-runtime:node ../../apps/native/conformance/generate.ts --checkvp run check:changed native--managed-policy-fixturechanges only client memory. Pointer activation and normal keyboard traversal to the locked Create link control, followed by Space/Enter, leave its dialog closed. No server policy or paid-provider turns were used.Local evidence (kept local per the worker brief):
Unmanaged baseline:
/private/tmp/native-106-evidence/before-light.pngLocked control and notice, light:
/private/tmp/native-106-evidence/policy-light.pngLocked control and notice, dark:
/private/tmp/native-106-evidence/policy-dark.pngKeyboard focus and inert activation:
/private/tmp/native-106-evidence/policy-keyboard-light.pngPointer activation:
/private/tmp/native-106-evidence/policy-locked-click.pngAppKit polite transcript:
/private/tmp/native-106-evidence/light.log—Needs approval: Replay demo. Model: Replay (dev)AppKit high-priority transcript:
/private/tmp/native-106-evidence/dark.log—Assertive announcement delivery fixtureAdd provider unmanaged baseline:
/private/tmp/native-106-evidence/add-provider-unmanaged.pngAdd provider policy-filtered featured list:
/private/tmp/native-106-evidence/add-provider-policy.pngAdd provider policy-filtered more list:
/private/tmp/native-106-evidence/add-provider-policy-more.pngPost-rebase keyboard/announcement pass:
/private/tmp/native-106-evidence/review-focus.png,/private/tmp/native-106-evidence/review-focus.logRemaining gaps:
ProviderInstanceCard.tsx: native has no binary/launch configuration or environment-variable editors; per-field/whole-environment locks are pure selectors ready for those surfaces.CodexSetupSection.tsx: native has no managed/existing setup-mode selector.AuthorizedClientsSettings.tsx/ConnectionsSettings.tsx: native has no server network-access toggle, Tailscale/WSL controls or server T3 Connect link management. Native cloud account sign-in is a different operation.SettingRowmanaged setting paths, project-default runtime choices and composer runtime ceiling controls are not wired in this slice; the existing scheduled-task ceiling remains in use. Multi-target first-denial selection is also absent with native's single live environment.ScheduledTasksSettings.tsxwebhook signatures/filters/delivery history remain the existing native task-editor gap.bootError.tsemergency DOM page / clipboard fallback has no native counterpart. Missing provider-jump/model-number shortcuts remain unported; existing model and provider selection actions announce.No edits to the other workers' transcript, webview, diff or composer-context files.
Built with GPT-6.1 Sol in Codex