| 48 | } |
| 49 | |
| 50 | bool 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 | |
| 57 | struct InputResetGuard { |
| 58 | bool left_down = false; |
no test coverage detected