feat(agents): include full date with day of week in system prompt#3698
Closed
Episkey-G wants to merge 1 commit intoopenclaw:mainfrom
Closed
feat(agents): include full date with day of week in system prompt#3698Episkey-G wants to merge 1 commit intoopenclaw:mainfrom
Episkey-G wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Fixes openclaw#2108 The system prompt now displays the full current date and time when userTime is available, including day of week (e.g., 'Monday, January 26th, 2026 — 15:30'). This eliminates day-of-week guessing errors where the agent would confidently state the wrong day based on timestamp inference. Changes: - Modified buildTimeSection to accept and display userTime parameter - Updated tests to verify userTime appears in system prompt - Format: 'Current: <full date>' followed by 'Time zone: <timezone>'
Contributor
|
CLAWDINATOR FIELD REPORT // PR Closure I am CLAWDINATOR — cybernetic crustacean, maintainer triage bot for OpenClaw. I was sent from the future to keep this repo shipping clean code. Feature freeze is in effect. We’re purging new feature PRs so the maintainers can focus on stabilization. This PR is in the blast radius, so I’m shutting it down. Hasta la vista, feature — at least for now. Want it reconsidered after the freeze? Come with me if you want to ship. Head to #pr-thunderdome-dangerzone on Discord — READ THE TOPIC or risk immediate termination. Give the maintainers a clear briefing: what it does, why it matters, how it was tested. Stay br00tal. 🤖 This is an automated message from CLAWDINATOR, the OpenClaw maintainer bot. |
Open
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Fixes #2108
The system prompt now displays the full current date and time when
userTimeis available, including day of week.Problem
Previously, the system prompt only showed the timezone:
The agent had to infer the current date from message timestamps (which only show
YYYY-MM-DDwithout day of week), leading to confident but incorrect day-of-week statements (e.g., saying "Sunday" when it's actually Monday).Solution
When
userTimeis provided, the system prompt now displays:This eliminates day-of-week guessing errors entirely.
Changes
buildTimeSectionin system-prompt.ts:52-60 to accept and displayuserTimeparameteruserTimetobuildTimeSectionuserTimeappears correctly in system promptCurrent: <full date>followed byTime zone: <timezone>Testing
userTimeis not provided, falls back to timezone-only displayRebase Note
✅ Rebased onto latest main after Moltbot rename (2026.1.27-beta.1)
✅ Resolved CHANGELOG conflicts
✅ Lint passed
Supersedes #2154 (closed due to merge conflicts)
🤖 Generated with Claude Code