Skip to content

test(amico-run): sessions-index month assertion follows the seed, not the calendar - #1655

Merged
aarontrowbridge merged 1 commit into
mainfrom
opencode/sessions-index-month-boundary
Oct 1, 2026
Merged

aarontrowbridge merged 1 commit into
mainfrom
opencode/sessions-index-month-boundary

Conversation

@aarontrowbridge

Copy link
Copy Markdown
Member

The sessions index — regeneration test seeds ses_a1 with updatedDaysAgo: 2 (relative to now) but asserted the index's month section equals the current month — which breaks in the first days of every month. Observed live on 2026-10-01: the suite on clean main went 1-fail with Expected: "2026-10" / Received: "2026-09", reddening CI for every PR this week.

The expectation now derives from the same 2 days ago timestamp the seed uses — boundary-safe by construction, no product change.

Verification

  • bun test test/sessions_verb.test.ts — 44 pass / 0 fail (was 1 fail on clean main, reproduced before the fix)
  • bun typecheck — clean. Test-only diff.

… the calendar

The fixture seeds ses_a1 with updatedDaysAgo: 2 — relative to now — but
the assertion compared the index's month section against the CURRENT
month. In the first days of each month the two disagree (Oct 1: the
seed landed in September) and the test reddened clean main. The
expectation now derives from the same 2-days-ago timestamp the seed
uses — month-boundary-safe by construction.
@coderabbitai

coderabbitai Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4cebb38d-3203-4474-b1db-64a27af73dc8

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aarontrowbridge
aarontrowbridge merged commit e0df822 into main Oct 1, 2026
12 checks passed
@aarontrowbridge
aarontrowbridge deleted the opencode/sessions-index-month-boundary branch October 1, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant