Agents: add machine-readable session status time#51683
Agents: add machine-readable session status time#5168308820048 wants to merge 1 commit intoopenclaw:mainfrom
Conversation
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
cd8c2da to
197f8b4
Compare
|
Codex review: needs changes before merge. Summary Reproducibility: yes. at source level: docs direct agents to Next step before merge Security Review findings
Review detailsBest possible solution: Land a current-main patch that threads local ISO-with-offset plus UTC time through the shared status text contract, covers both Do we have a high-confidence way to reproduce the issue? Yes, at source level: docs direct agents to Is this the best way to solve the issue? No, not as-is. The direction is narrow and maintainable, but the PR must be refreshed for the current shared status contract, current formatter output, and changelog policy before it is the best fix. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 7c0f5463a564. |
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.