Context
apps/shared/RemoteClawKit/Tests/RemoteClawKitTests/ChatViewModelTests.swift currently omits 9 test functions that were added to the upstream counterpart during the v2026.3.11 cycle. Protocol-conformance methods and state-tracking fields were ported so the transport is a complete test double, but the new @Test functions themselves were not.
Reasons they were skipped (initial port)
- Fork's test file lacks helper infrastructure present upstream:
historyPayload, loadAndWaitBootstrap, sendUserMessage, emitExternalFinal, makeViewModel, sessionEntry, modelChoice, CallbackBox, AsyncGate.
- Fork uses different type shapes:
RemoteClawChatSessionsDefaults and RemoteClawChatSessionEntry lack a contextTokens field that upstream added. Porting requires either extending the fork types with contextTokens or adapting the tests to work without it.
Scope
- Decide: extend fork types with
contextTokens, or adapt tests to omit context-tokens assertions
- Port helper infrastructure (adapted as needed)
- Port the 9
@Test functions using the adapted helpers
- Verify Swift tests pass on macOS CI
Acceptance criteria
Out of scope
- Redesigning the test architecture
- Porting upstream tests beyond these 9
Context
apps/shared/RemoteClawKit/Tests/RemoteClawKitTests/ChatViewModelTests.swiftcurrently omits 9 test functions that were added to the upstream counterpart during the v2026.3.11 cycle. Protocol-conformance methods and state-tracking fields were ported so the transport is a complete test double, but the new@Testfunctions themselves were not.Reasons they were skipped (initial port)
historyPayload,loadAndWaitBootstrap,sendUserMessage,emitExternalFinal,makeViewModel,sessionEntry,modelChoice,CallbackBox,AsyncGate.RemoteClawChatSessionsDefaultsandRemoteClawChatSessionEntrylack acontextTokensfield that upstream added. Porting requires either extending the fork types withcontextTokensor adapting the tests to work without it.Scope
contextTokens, or adapt tests to omit context-tokens assertions@Testfunctions using the adapted helpersAcceptance criteria
@Testfunctions present and passing in the fork's test fileOut of scope