skip to content

An OpenClaw assistant's replies drift away from the tone in SOUL.md and it keeps forgetting the owner's time zone — what do you check and change?

level: seniorimportance: should knowfreq 5%

answer

  1. is the right file even loaded
  2. one resolved workspace per agent
  3. raw versus injected
  4. time zone is config, not prose
  5. unset falls back to the host

basics

~20 s

Confirm the SOUL.md you edited is in the agent's resolved workspace and injected whole and uncontradicted, using openclaw agents list and /context list. The time zone comes from agents.defaults.userTimezone, which falls back to the Gateway host's zone, not from USER.md prose.

solid answer

~40 s

For tone, check the file is the one in play: `openclaw agents list` shows the agent's resolved workspace, and edits to an old `~/openclaw` folder or another agent's workspace are never merged. Then `/context list` shows whether `SOUL.md` is injected, truncated past `bootstrapMaxChars`, or a missing-file marker; also check that `contextInjection` is not `"never"`. Sub-agent sessions get only `AGENTS.md`, and style rules duplicated in `AGENTS.md` muddy the voice. For time, OpenClaw stamps message envelopes and the prompt's Temporal Context with `agents.defaults.userTimezone`; unset, it uses the host's zone, often UTC on a server. Set an IANA zone there; a sentence in `USER.md` cannot override it.

code

json · 7 lines
json
{
  "agents": {
    "defaults": {
      "userTimezone": "America/Chicago"
    }
  }
}

go deeper

for a junior

Know that persona lives in SOUL.md and that the owner's time zone is a config setting, agents.defaults.userTimezone, rather than something the assistant remembers.

for a middle

Explain the host-zone fallback when userTimezone is unset, and use /context list to see whether SOUL.md is injected, truncated or missing.

for a senior

Diagnose in order: resolved workspace, injection mode, truncation, session type, contradictions; and explain why prompt prose cannot override envelopes and Temporal Context.

for a principal

Decide which behaviours a team pins in config versus leaves to persona files, accepting that file-based tone is probabilistic and needs short, reviewed rules.

## Two symptoms, two different layers An owner reports that their OpenClaw assistant has started sounding generic, nothing like the voice in `SOUL.md`, and that it keeps getting times wrong, as if it did not know where they live. The two symptoms look like one "it forgot who I am" problem, but they come from different layers: **tone** comes from a workspace file the model reads, while the **time zone** comes from config that OpenClaw uses to build the prompt. ## Tone: is the persona actually reaching the model? Work from "is the right file loaded" towards "is the file good". 1. **Is it the right folder?** Each agent uses exactly one resolved workspace. Editing `SOUL.md` in an older `~/openclaw` directory, or in a different agent's workspace in a multi-agent roster, changes nothing; extra folders are never merged. Run `openclaw agents list` to see which path the agent uses. When a session executes in another folder or worktree, OpenClaw still loads `SOUL.md`, `IDENTITY.md` and `USER.md` only from the configured workspace. 2. **Is it injected at all?** `/context list` shows each injected file. A missing `SOUL.md` shows up as a short missing-file marker. In the embedded runtime, `agents.defaults.contextInjection: "never"` disables bootstrap injection entirely. 3. **Is it whole?** A `SOUL.md` larger than `agents.defaults.bootstrapMaxChars` is injected with its middle cut out, so rules in the middle silently disappear. `/context list` reports raw versus injected size. 4. **Which session is talking?** Sub-agent sessions receive only `AGENTS.md`, so work delegated to a sub-agent carries no persona; a reply built from its output can read flat. Group and channel contexts also call for a tone that fits the room. 5. **Is it contradicted?** If `AGENTS.md` also carries style rules, or `SOUL.md` is full of "maintain professionalism at all times" filler, the model gets mush. The project's guidance is to keep operating rules in `AGENTS.md`, voice in `SOUL.md`, and make the voice rules short and concrete. Edits to the workspace files are picked up on a later turn of a long-lived main session; no Gateway restart is needed. Remember that even a perfect `SOUL.md` is guidance: it makes a tone more likely, it does not guarantee it. ## Time zone: a config value, not a sentence in USER.md OpenClaw shows time to the model on three surfaces: | Surface | What it shows | Zone used | |---|---|---| | Message envelopes | inbound messages wrapped with a timestamp | `agents.defaults.userTimezone`, else the host's zone | | System prompt | a Temporal Context block with the local date and zone | `agents.defaults.userTimezone`, else the host's zone | | Tool payloads | provider time plus normalised UTC fields | not configurable | - When `userTimezone` is **unset**, OpenClaw resolves the **Gateway host's** time zone at runtime. A Gateway on a cloud machine set to UTC therefore tells the model it is UTC, every turn, no matter what the owner said in chat. - The prompt carries the date and zone but deliberately no live clock; for the exact time the agent calls `session_status` when that tool is available. - The same resolved zone drives heartbeat active hours, so a wrong zone also shifts when the assistant is allowed to be proactive. - The date in the prompt rolls over at the zone's midnight, so an owner several hours away from the host's zone sees "today" and "tomorrow" mixed up for part of every day, which is a common form of "it keeps forgetting my time zone". Writing "I live in Chicago" into `USER.md` is not the fix. It is prompt guidance that competes with envelopes and a Temporal Context block that both say otherwise. Set the zone where OpenClaw reads it: ```json { "agents": { "defaults": { "userTimezone": "America/Chicago" } } } ``` Use an IANA zone name. `USER.md` can still hold directives about how the owner likes times written, which is what it is for. ## A short checklist - `openclaw agents list`: is the edited folder the agent's workspace? - `/context list`: is `SOUL.md` injected, complete, not a missing marker? - Is the drifting reply coming from a sub-agent or a group context? - Is `agents.defaults.userTimezone` set, or is the host's zone leaking through? - Are tone rules duplicated or contradicted in `AGENTS.md`? Which session a message lands in, and how a run assembles its prompt step by step, are separate subjects; here the question is which file or key carries persona and time.

  • Why is a USER.md line saying 'I am in Chicago' an unreliable fix for wrong times?
    It is prompt guidance competing with two signals OpenClaw generates every turn: message envelopes and the Temporal Context block, both stamped with `agents.defaults.userTimezone` or, when unset, the Gateway host's zone. The model sees conflicting zones. Setting the config value fixes the source; `USER.md` can then hold directives about how times should be written.
  • Why can output from delegated work sound generic even when SOUL.md is fine?
    Sub-agent sessions inject only `AGENTS.md`; persona, identity, user and memory files are filtered out to keep delegated context small. A reply assembled from a sub-agent's result can therefore lack the voice. Keeping the main session's final wording in the persona, rather than passing sub-agent text straight through, reduces the effect.

  • Writing the time zone into USER.md is the reliable fix.
  • When userTimezone is unset, OpenClaw always assumes UTC.
  • Editing SOUL.md in an old ~/openclaw folder still changes the running agent.
  • Sub-agents inherit SOUL.md and USER.md from the parent session.
  • You must restart the Gateway before an edited SOUL.md takes effect.