Commit 3d6c2ba
authored
fix(integrations-claude-code): label 'Current time' as UTC in recall context (#1568)
The recall hook injects "Current time - <ts>" into <hindsight_memories>
without a timezone label, while the value is computed in UTC. Client
LLMs running in non-UTC timezones often misread this as local time —
e.g. a 2026-05-10 23:55 UTC stamp prompts a Claude Code session in JST
(local 2026-05-11 08:55) to remark "sounds like a good place to wrap
up for the day."
The opencode integration already labels its equivalent line with " UTC"
(hindsight-integrations/opencode/src/hooks.ts:117). Aligning claude-code
with that convention removes the foot-gun.1 parent 8004679 commit 3d6c2ba
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
227 | | - | |
| 230 | + | |
228 | 231 | | |
229 | 232 | | |
230 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
0 commit comments