Agents: add machine-readable session status time#51683
Open
08820048 wants to merge 1 commit intoopenclaw:mainfrom
Open
Agents: add machine-readable session status time#5168308820048 wants to merge 1 commit intoopenclaw:mainfrom
08820048 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Contributor
Greptile SummaryThis PR appends machine-readable local ISO and UTC timestamps to the
Confidence Score: 5/5
Last reviewed commit: "Agents: add machine-..." |
9bc10cd to
cd8c2da
Compare
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
session_statusonly exposed human-readable local time, so reminder scheduling could not reliably compute exact timestamps.session_statustime line, and added a regression test.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
session_statusnow includes machine-readable current time alongside the readable local time, for example local ISO plus UTC.Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
session_statusagents.defaults.userTimezone=America/Los_Angeles,agents.defaults.timeFormat=12Steps
session_statusfor a session with a configured user timezone.🕒 Time:line in the returned status card.Expected
session_statusreturns exact machine-readable current time that an agent can use for reminder scheduling.Actual
local ISO ...andUTC ....Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
2026-02-08T03:15:00Zand confirmed it rendersSaturday, February 7th, 2026 — 7:15 PM,2026-02-07T19:15:00-08:00, and2026-02-08T03:15:00Z.pnpm test -- src/agents/openclaw-tools.session-status.test.tsand rawvitest rundid not exit cleanly, so I did not get a clean local Vitest completion signal even though the regression test was added.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoFailure Recovery (if this breaks)
9bc10cd21src/agents/date-time.ts,src/agents/tools/session-status-tool.ts,src/agents/openclaw-tools.session-status.test.tssession_statusRisks and Mitigations
Intl.DateTimeFormat(..., { timeZoneName: "longOffset" })could behave differently on some runtimes.