feat: add 3-letter DOW prefix to injected timestamps

Changes [2026-01-28 20:30 EST] to [Wed 2026-01-28 20:30 EST].
Costs ~1 extra token but provides day-of-week for smaller models
that can't derive DOW from a date. Frontier models already handle
it, but this is cheap insurance for 7B-class models.
This commit is contained in:
Conroy Whitney
2026-01-28 22:07:26 -05:00
committed by Tak Hoffman
parent 76391bba3f
commit a6c68e8690
3 changed files with 20 additions and 13 deletions

View File

@@ -163,7 +163,7 @@ describe("gateway agent handler", () => {
await vi.waitFor(() => expect(mocks.agentCommand).toHaveBeenCalled());
const callArgs = mocks.agentCommand.mock.calls[0][0];
expect(callArgs.message).toBe("[2026-01-28 20:30 EST] Is it the weekend?");
expect(callArgs.message).toBe("[Wed 2026-01-28 20:30 EST] Is it the weekend?");
mocks.loadConfigReturn = {};
vi.useRealTimers();