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
This commit is contained in:
yetone
2026-10-25 20:12:48 +08:00
parent 5df62c5cda
commit 2f44e075a2
+1
View File
@@ -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