From 2f44e075a245952d15af06c4fe756009fe0efb8c Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 25 Oct 2026 20:12:48 +0800 Subject: [PATCH] agent: TZ is not an agent's folder (#3600) c888ef272 made a routing rule's hours fall back to the machine's zone, which reads TZ in internal/provider/grouprule.go. TestFolderVarsAreListed asks every variable those packages read to be one a sandbox clears, or to be excused; TZ is the machine's zone, not a folder, so it is excused. Run: go test ./internal/agent -run TestFolderVarsAreListed -count=1, ok (red at origin/main 642d430ec per #3600, the same message). Fixes #3600 --- internal/agent/agentenv_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/agent/agentenv_test.go b/internal/agent/agentenv_test.go index e7ad344ab..94d9ac77f 100644 --- a/internal/agent/agentenv_test.go +++ b/internal/agent/agentenv_test.go @@ -38,6 +38,7 @@ var notAnAgent = map[string]string{ "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "Claude Code's behaviour flag, not an agent's folder", "GIT_SSH": "the user's own SSH program for git, which a skill fetched with their git keeps", "GIT_SSH_COMMAND": "the same, as a command", + "TZ": "the machine's time zone, which a routing rule's hours fall back to (c888ef272), not a folder", } // TestFolderVarsAreListed says every variable the packages that find an