Skip to content

test: tolerate minute-aligned scheduled wakeups - #1044

Open
yuaanlin wants to merge 1 commit into
agentclientprotocol:mainfrom
yuaanlin:codex/fix-idle-cron-updates
Open

test: tolerate minute-aligned scheduled wakeups#1044
yuaanlin wants to merge 1 commit into
agentclientprotocol:mainfrom
yuaanlin:codex/fix-idle-cron-updates

Conversation

@yuaanlin

Copy link
Copy Markdown

Summary

  • allow the scheduled-wakeup live audit to wait through the full minute-alignment window
  • keep a small buffer for the autonomous model turn to complete
  • raise the Vitest case timeout accordingly

ScheduleWakeup(delaySeconds=60) is persisted as a minute-aligned cron entry. Depending on where scheduling lands within a minute, delivery can take close to two minutes. The previous 75-second predicate timeout can therefore fail even though the idle ACP stream delivers the wakeup correctly. I reproduced both outcomes against current main: one run timed out at 75 seconds, while a second run delivered LIVE_WAKE_OK through the idle ACP stream.

Related: #838

Verification

  • npm run check
  • npm run build
  • npm run test:run (971 passed, 27 skipped)
  • live SDK/ACP probe on Agent SDK 0.3.238 observed SCHEDULED followed by autonomous LIVE_WAKE_OK while idle

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