MCPcopy Create free account
hub / github.com/WallBreaker2/op / IsCodexDesktopEnvironment

Function IsCodexDesktopEnvironment

tests/mouse_keyboard_test.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool IsCodexDesktopEnvironment() {
51 const std::wstring origin = test_support::GetEnvString(L"CODEX_INTERNAL_ORIGINATOR_OVERRIDE");
52 return test_support::ContainsInsensitive(origin, L"Codex Desktop") ||
53 !test_support::GetEnvString(L"CODEX_THREAD_ID").empty() ||
54 !test_support::GetEnvString(L"CODEX_SHELL").empty();
55}
56
57struct InputResetGuard {
58 bool left_down = false;

Callers 1

TESTFunction · 0.85

Calls 3

GetEnvStringFunction · 0.85
ContainsInsensitiveFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected