Skip to content

fix(apps): resolve pre-existing RemoteClawKit compile errors from v2026.3.11 sync #2388

@alexey-pelykh

Description

@alexey-pelykh

Context

The v2026.3.11 upstream sync (#2379, merged 2026-04-17 as 5809662258) left apps/shared/RemoteClawKit/Sources/RemoteClawKit/GatewayChannel.swift referencing three symbols whose source files are classified EXCLUDE-GUT in HQ disposition and never made it into the fork:

  1. ThrowingContinuationSupport — referenced at GatewayChannel.swift:48
  2. GatewayDeviceAuthPayload — referenced at GatewayChannel.swift:439, 450
  3. GatewayConnectChallengeSupport — referenced at GatewayChannel.swift:618

Running swift test on apps/shared/RemoteClawKit currently fails with:

error: cannot find 'ThrowingContinuationSupport' in scope
error: cannot find 'GatewayDeviceAuthPayload' in scope
error: cannot find 'GatewayConnectChallengeSupport' in scope

These symbols were deliberately gutted as part of the CLI-native auth cleanup (Pi-embedded device auth was replaced with CLI-native auth). The consumers in GatewayChannel.swift were not cleaned up in the same pass.

Impact

  • RemoteClawKit module does not compile → RemoteClawChatUI does not compile → RemoteClawKitTests cannot build/run.
  • Existing ChatViewModelTests, GatewayNodeSessionTests, etc. are all blocked.
  • CI does not catch this because there are currently no macOS/Swift build or test jobs in .github/workflows/.

Scope

  1. Identify the code paths in GatewayChannel.swift that reference the gutted symbols.
  2. Determine the correct disposition per section (GUT the call sites, stub them, or surface for discussion if any path is actually needed for current gateway operation).
  3. Verify swift build and swift test --filter ChatViewModelTests succeed after the fix on macOS.

Acceptance criteria

  • swift build on apps/shared/RemoteClawKit succeeds on macOS.
  • swift test --filter ChatViewModelTests runs (all tests pass or clear rationale for any expected failures).
  • GatewayChannel.swift no longer references ThrowingContinuationSupport, GatewayDeviceAuthPayload, or GatewayConnectChallengeSupport.

Related

  • Discovered while porting Port 9 skipped @Test functions in ChatViewModelTests.swift #2381 (ChatViewModel tests) — that PR's tests cannot execute until this compile break is resolved.
  • HQ disposition entries (EXCLUDE-GUT):
    • apps/shared/OpenClawKit/Sources/OpenClawKit/DeviceAuthPayload.swift — "gutted: device auth payload — CLI-native auth"
    • apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayConnectChallengeSupport.swift — "gutted: gateway connect challenge — CLI-native auth"
    • apps/shared/OpenClawKit/Sources/OpenClawKit/ThrowingContinuationSupport.swift — "dead: async utility only used by gutted commands"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions