forked from admin/VolcanicAgenticCore
feat(claude-code): pass the session time zone to claude -p as TZ
This commit is contained in:
@@ -37,7 +37,9 @@ conversation is replayed each time.
|
||||
`--strict-mcp-config --mcp-config <bridge>`, `--input-format stream-json --output-format stream-json
|
||||
--include-partial-messages --verbose`, `--system-prompt-file <tmp>`, `--model <id>`, `--effort <level>`,
|
||||
plus settings that disable hooks, auto-memory, plugins, slash commands and the token reminder (which would
|
||||
defeat prompt caching). Only an allow-list of environment variables is passed through, and compaction
|
||||
defeat prompt caching). Only an allow-list of environment variables is passed through, plus `TZ` set to
|
||||
the session's time zone (the chat's zone on Telegram, read per call so a `/timezone` change applies from
|
||||
the next model call; never the host's own `TZ`, and not on Windows, which ignores it), and compaction
|
||||
inside Claude is disabled: the core owns compaction. `claude` and its login/doctor processes don't go
|
||||
through the host's process spawn policy (`AgenticCoreOptions.ProcessEnvironment`): they already get a
|
||||
replaced, allow-listed environment. The Bridge inherits `claude`'s environment, and the core tools it
|
||||
|
||||
Reference in New Issue
Block a user