Skip to content

rust: Port hotkey background shortcut control to obs-hotkey after extraction #4313

Closed

Description

@zackees

Phase 6 follow-up to #4312. Do not begin the Rust replacement until the behavior-neutral extraction lands. Its branch is port/4312-hotkey-background-control-extract (branch-only, no PR yet).

Port libobs/obs-hotkey-background-control.c.h to obs-hotkey: wake_background_client, obs_hotkeys_retry_background, obs_hotkeys_configure_background and obs_hotkeys_set_background_probe. Preserve null-core early returns, mutex ownership, callback invocation before unlocking, repeated retry/configure wakeups, CONFIGURE_FAILED flag clearing, probe no-op behavior and cancellation of configure when disabling the probe.

Existing characterization: test/cmocka/test_portal_shortcuts.c (unchanged). Add Tier 1 safe-core assertions in the existing obs-tests-core category binary, a renamed original-C oracle and randomized Tier 3 state/callback parity with a mutation check. Keep every applicable Tier 2 fixture (including isolated hotkey and portal consumers) linking the real implementation, and verify hybrid/reference symbols. No Tier 4 network API changes. Public headers and the C++ websocket plugin remain unchanged. Reuse the private lock seam and put host specifics only at the platform/FFI boundary.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    on Nov 9, 2026
  2. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: hotkey background shortcut control on port/4313-hotkey-background-control, stacked on port/4312-hotkey-background-control-extract at c31e2c9 (maintainer-directed branch-only work). 1. Verify/add direct C characterization. 2. Commit RED safe-core tests, then GREEN Rust core/FFI and original-C differential parity. 3. Run focused validation and lint, push branch only; no PR until the queue drains.

  3. added
    ready
    on Nov 9, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Nov 10, 2026
  5. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming: resume the held hotkey background shortcut swap on port/4313-hotkey-background-control-land after #4931 merged. 1. Cherry-pick only the swap characterization, RED and GREEN commits onto current master, preserving concurrent hotkey work. 2. Re-verify RED, focused Rust and differential tests, focused Tier 2 against both libraries, and lint. 3. Publish the landing PR and arm auto-merge pinned to its verified head in this session.

  6. moved this from Ready to In progress in obs-rust Multiviewon Nov 17, 2026
  7. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Landed in #4959 (merge d0be0cd). Background retry, configure and probe control are implemented in obs-hotkey Rust (rust/obs-hotkey/src/ffi/background_control.rs) with the static wake helper in the safe core, plus Tier 1 and differential tests and the hotkey-background-control source set. Closing.

  8. moved this from In progress to Done in obs-rust Multiviewon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancementportreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions