Repository navigation
Conversation
|
Focused wording-only fix is up for #63181. Local validation: |
|
Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 8:57 AM ET / 12:57 UTC. ClawSweeper reviewWhat this changesThe PR renames the timezone-only system-prompt section to “Time Zone” and updates the adjacent test plus date/time documentation to match. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain This PR remains the candidate fix for the open report at #63181. Its supplied diff is narrowly aligned with the reported misleading heading, but the provided evidence is focused test/CI evidence rather than an after-fix runtime prompt render, and the required local source/history inspection could not be completed in the restricted checkout; a close or merge-ready verdict would not be conservative. Priority: P2 Review scores
Verification
How this fits togetherThe agent system-prompt builder receives the configured user timezone and emits stable model context before a run. This section intentionally omits the live clock for prompt-cache stability; agents obtain live time through the session-status tool when needed. flowchart LR
A[Agent configuration] --> B[User timezone]
B --> C[System prompt builder]
C --> D[Stable Time Zone section]
D --> E[Model context]
E --> F[Session-status tool]
F --> G[Live date and time]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0, Docs +4. Total +4 across 6 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Capture a redacted after-fix runtime render from a configured session showing the “## Time Zone” section and its timezone line, then refresh the merge result and land this narrow wording correction if current-main review confirms the same prompt boundary. Do we have a high-confidence way to reproduce the issue? No high-confidence observed reproduction is included for the reported model-date error. The supplied diff and linked report identify a clear source-level prompt path, but focused test coverage does not reproduce the end-to-end reasoning failure on current main. Is this the best way to solve the issue? Unclear. Renaming the heading is the narrowest proposed remedy for the documented mismatch, but current-main source, sibling prompt paths, and feature history could not be independently inspected in this restricted review environment. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 4624f681add5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
Follow-up pushed on the existing branch. I aligned the remaining |
|
@clawsweeper re-review Follow-up is on the current head: the remaining |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pushed a docs-format follow-up for the failing check-docs lane. Validation: |
|
Refreshed this branch on current main and resolved the timezone docs conflicts. Kept the runtime section name aligned with |
8f79c93 to
70a0310
Compare
|
Fixed the red |
|
Rechecked this PR during the open-PR sweep. There are no inline review comments or human review requests on the current thread; the remaining blocker is the proof/context gate from ClawSweeper, with Real behavior proof still red. The docs-map/check-docs failure was already fixed on the current branch, and the PR remains mergeable. |
|
Rebased onto current main (9ad0a97) after GitHub marked the branch behind again. Local validation passed: node scripts/run-vitest.mjs src/agents/system-prompt.test.ts, node scripts/generate-docs-map.mjs --check, touched-docs oxfmt --check, and git diff --check. CI has been retriggered on the refreshed head. |
ac74a15 to
d6e6820
Compare
|
Follow-up: main advanced again during the sweep, so I rebased this PR onto the latest fetched main (ae27ee9). Local validation passed again: node scripts/run-vitest.mjs src/agents/system-prompt.test.ts, node scripts/generate-docs-map.mjs --check, and git diff --check. CI is rerunning on the refreshed head. |
d6e6820 to
71da1a5
Compare
|
Rebased on current main. No code changes beyond refreshing the existing timezone-heading branch; focused validation still passes: node scripts/run-vitest.mjs src/agents/system-prompt.test.ts, node scripts/generate-docs-map.mjs --check, and git diff --check upstream/main..HEAD. CI was green before the refresh and should rerun on the new head. |
71da1a5 to
e89b633
Compare
|
Rebased on current main again after main advanced. Focused validation still passes: node scripts/run-vitest.mjs src/agents/system-prompt.test.ts, node scripts/generate-docs-map.mjs --check, and git diff --check upstream/main..HEAD. CI was green before this refresh; waiting on the new head checks now. |
e89b633 to
2c26eb8
Compare
|
Sweep update: rebased onto latest main; no code changes were needed beyond refreshing the branch.\n\nValidation run locally:\n- node scripts/run-vitest.mjs src/agents/system-prompt.test.ts\n- node scripts/generate-docs-map.mjs --check\n- git diff --check upstream/main..HEAD |
2c26eb8 to
85408e6
Compare
|
Sweep refresh: rebased onto latest main after it advanced during the sweep; no code changes were needed beyond refreshing the branch.\n\nValidation run locally after the rebase:\n- node scripts/run-vitest.mjs src/agents/system-prompt.test.ts\n- node scripts/generate-docs-map.mjs --check\n- git diff --check upstream/main..HEAD |
85408e6 to
8a02b70
Compare
|
Sweep refresh: rebased onto latest main and resolved the system-prompt docs conflict by keeping the current docs structure while preserving the Time Zone section wording.\n\nValidation run locally after the rebase:\n- node scripts/run-vitest.mjs src/agents/system-prompt.test.ts\n- node scripts/generate-docs-map.mjs --check\n- git diff --check upstream/main..HEAD |
8a02b70 to
e02f6e0
Compare
|
Sweep refresh: rebased onto latest main, kept the current docs structure with the Time Zone wording, and refreshed docs/docs_map.md after the generator reported drift.\n\nValidation run locally after the rebase:\n- node scripts/run-vitest.mjs src/agents/system-prompt.test.ts\n- node scripts/generate-docs-map.mjs --check\n- git diff --check upstream/main..HEAD |
|
Superseded by #116090, landed on The landed fix keeps the useful part of this investigation but addresses the full bug class: it refreshes the user-local calendar date and IANA timezone below the stable prompt-cache boundary across CLI, embedded, command, and compaction paths, while keeping exact time tool-backed. A heading-only rename would still leave long-running sessions without current date grounding. Thanks @deepujain for the original investigation. The landed squash commit preserves Deepak as co-author. |
Summary
Fixes #63181.
Rename the timezone-only system prompt section from
Current Date & TimetoTime Zone.This keeps the prompt wording aligned with current behavior: the section only injects the configured timezone to preserve cache stability, and agents should still use
session_statuswhen they need the live date/time.Scope stays narrow:
Non-goals:
session_statusEvidence
mainemits a timezone-only prompt section under the misleadingCurrent Date & Timeheading, even though the section intentionally avoids live date/time injection for cache stability.node scripts/run-vitest.mjs src/agents/system-prompt.test.tspasses and exercises the production prompt builder that renders this section.node scripts/generate-docs-map.mjs --checkpasses, and the touched docs files passoxfmt --checkwith the shared OpenClaw formatter binary.node scripts/format-docs.mjs --checkstill reports pre-existing formatting issues in unrelated docs files outside this PR's diff.Tests and validation
node scripts/run-vitest.mjs src/agents/system-prompt.test.tsgit diff --checkReal behavior proof
Behavior addressed:
Current Date & TimeheadingLocal proof attempted:
tsxto print the rendered sectionObserved result:
tsxeval path in this worktree failed before prompt rendering because local workspace package resolution for@openclaw/fs-safe/configis not available in this environmentWhat was not tested:
Why this is still meaningful:
buildTimeSection()insrc/agents/system-prompt.tsRisk
Low risk.
This is a wording-only fix to better match the existing cache-stable timezone behavior. It does not change prompt timing semantics, model routing, tool access, or any runtime date/time source.