Skip to content

feat(native): complete timestamp locale, Linux notification delivery, and Linux screen-reader parity (ST-GENERAL, AP-NOTIFY, AP-A11Y) - #464

Merged
rynfar merged 1 commit into
nativefrom
feat/native-notify-a11y-locale
Nov 20, 2026
Merged

rynfar merged 1 commit into
nativefrom
feat/native-notify-a11y-locale

Conversation

@rynfar

@rynfar rynfar commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #188
Closes #12
Closes #106

Summary

  • ST-GENERAL (#188):
    • Audited IntlTimestampClock (crates/core/src/timeline/locale.rs) against Node v22.22.3 / ICU 78.2 Intl.DateTimeFormat across explicit-script and language-only locale tags (zh-Hans-CN, zh-Hant-TW, zh-Hans, zh-Hant, sr-Latn-RS, sr-Cyrl-RS, az-Latn-AZ, en, fr, de, bg, tr, es, ja, ko, pt, lt, ug, mr, etc.).
    • Added best_patterns_key in crates/core/src/timeline/locale.rs so explicit language-only and default-script variants (bg/bg-Cyrl/bg-Cyrl-BG, tr/tr-Latn/tr-Latn-TR, lt/lt-Latn/lt-Latn-LT, ug/ug-Arab/ug-Arab-CN, mr/mr-Deva/mr-Deva-IN) match V8's exact clock patterns without broadening distinct regional tags (tr-CY, es, es-ES, es-MX, es-Latn-CO).
    • Upgraded IntlTimestampClock::numeric_date from FixedCalendarDateTimeFormatter<Gregorian, _> to calendar-aware DateTimeFormatter<MD> / DateTimeFormatter<YMD> with NNBSP/NBSP normalization so non-Gregorian calendars (fa-IR Persian, th-TH Buddhist) and Bulgarian (bg/bg-BG г.) match Intl.DateTimeFormat while preserving all 3,060 committed oracle cases.
    • Added deterministic regression tests in crates/core/src/timeline/tests.rs and crates/core/src/timeline/locale.rs.
  • AP-NOTIFY (#12):
    • Audited crates/core/src/notifications* & crates/app/src/notifications* against ThreadNotificationCoordinator.tsx / ThreadNotificationCoordinator.logic.ts / threadNotifications.ts / NotificationSettings.tsx.
    • Ported isSnoozedForNotification (is_snoozed_for_notification) and snoozed completion suppression (NotificationGate::observe_with_snooze_at + app-layer guard in present_notification) so completions landing during a snooze are silenced and never replay after wake while input/approval alerts still notify immediately.
    • Added Linux freedesktop delivery confirmation in crates/app/src/notifications/delivery.rs (#[cfg(target_os = "linux")] spawning notify-send non-blocking via the app's Tokio runtime, strictly guarded behind #[cfg(not(test))], mapping exit code 0 -> Accepted, non-zero -> Failed, NotFound -> Unavailable) with cross-platform unit tests for the arg builder (including -- flag injection safety and synchronous replacement hint) and exit-status/error mapper.
  • AP-A11Y (#106):
    • Audited crates/core/src/announcements.rs & crates/app/src/announcements.rs against announce.ts, BackgroundThreadAnnouncer.tsx, ThreadActivityAnnouncer.tsx, turnDetailAnnouncement.ts, and accessibilityAnnouncements.ts.
    • Added non-blocking Linux screen-reader delivery fallback via spd-say in crates/app/src/announcements.rs (#[cfg(target_os = "linux")], strictly guarded behind #[cfg(not(test))], mapping Assertive -> -p important, Polite -> -p message, with -- option terminator and empty-message guard) plus cross-platform unit tests for build_spd_say_args, alongside existing macOS NSAccessibilityPostNotificationWithUserInfo and clean Windows fallback.
  • Ledger (apps/native/parity/LEDGER.md):
    • Marked ST-GENERAL (L166), AP-NOTIFY (L194), and AP-A11Y (L200) -> done (clearing #188, #12, #106), and cleared stale #99 from ST-DIFFS (L169).

Verification Gates

  1. vp fmt --check apps/native/parity/LEDGER.md: PASS
  2. node apps/native/scripts/gen-theme.ts --check: PASS
  3. node apps/native/conformance/generate.ts --check: PASS
  4. node --test apps/native/parity/sync.test.ts: 47 passed, 0 failed
  5. CARGO_INCREMENTAL=0 cargo clippy --manifest-path apps/native/Cargo.toml --workspace --all-targets -- -D warnings: PASS (0 warnings)
  6. CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-core: 1,885 unit + 8 conformance = 1,893 passed, 0 failed (incl. 3,060 committed V8 Intl oracle cases)
  7. CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-client -- --test-threads=1: 170 passed, 1 pre-existing host-load timing flake in untouched mcp_apps::tests::cached_app_uses_replacement_connection_and_refuses_other_or_missing_environments (passes 4/4 sequentially when running mcp_apps::tests -- --test-threads=1; 0 edits in crates/client)
  8. T3_NATIVE_HOME=$(mktemp -d) CARGO_INCREMENTAL=0 cargo test --manifest-path apps/native/Cargo.toml -p t3-native -- --test-threads=1: 225 passed, 0 failed
  9. Targeted --features snapshot tests: notifications (3 passed, 0 failed), announcements (2 passed, 0 failed), timestamp (2 passed, 0 failed)
  10. CARGO_INCREMENTAL=0 cargo build --manifest-path apps/native/Cargo.toml -p t3-native: PASS

Generated with Antigravity (h3-notify-a11y-locale).

… and Linux screen-reader parity (ST-GENERAL, AP-NOTIFY, AP-A11Y)
@rynfar
rynfar merged commit fab0ffe into native Nov 20, 2026
2 checks passed
@rynfar
rynfar deleted the feat/native-notify-a11y-locale branch November 20, 2026 08:24
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