[Bug] Agent defaults timestamps to current date for multi-day session work instead of actual work date
Bug Description
Title: Agent defaults timestamps to "now" for work done in earlier (multi-day) parts of a session
Summary:
When a long Claude Code session spans multiple calendar days (resumed after a pause), and the agent later records a timestamp for past work — e.g. logging Jira worklogs, writing changelog dates, stamping "done on" notes — it defaults
the date to the current time instead of the date the work was actually performed. The model has no persistent sense of elapsed time between turns, so it implicitly assumes "work = now."
Concrete repro:
1. Day 1: agent implements a feature, runs builds (build logs timestamped day 1).
2. Session is paused, resumed on Day 4.
3. Day 4: user asks the agent to log time / close tickets.
4. Agent reads the current date (correctly = Day 4) and logs all worklogs with started = Day 4.
Expected: worklog started = Day 1 (the real work date), derivable from build log timestamps / git commit dates already present in the session.
Actual: all time logged on Day 4 (wrong day), and the amount was a scope-based estimate rather than the session's real wall-clock.
Impact: silently corrupts time-tracking / dated records. The user has to catch it manually. Affects any workflow where the agent attaches a date to past actions.
Suggested mitigation:
- When stamping a date for past work, derive it from in-session evidence (build/tool output timestamps, file mtimes, commit dates) rather than the current clock.
- Surface elapsed-time/day boundaries to the agent (e.g. inject "last turn was N hours/days ago" on resume), or have time-logging tools prompt for the work date when it differs from "now."
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 2.1.168
- Feedback ID: decf10d3-ec4b-49ef-bbce-ba45ad9bdfb8
Errors
[]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗