Skip to content

Fix interrupt duration parsing - #292

Open
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/interrupt-duration-parsing
Open

Fix interrupt duration parsing#292
anxkhn wants to merge 1 commit into
google-deepmind:mainfrom
anxkhn:fix/interrupt-duration-parsing

Conversation

@anxkhn

@anxkhn anxkhn commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Parse interrupt durations with a strict full-string pattern.

The previous split-based parser raised ValueError for malformed numeric fields and accepted some inputs with trailing garbage, despite documenting a one-hour fallback for unparseable values. Invalid strings now consistently use that fallback while valid hour/minute combinations retain their behavior.

Tests

  • Added malformed hour and minute cases
  • Added zero-valued duration forms

@anxkhn

anxkhn commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

hey @jagapiou, could you please review this pr when you have a chance?

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.

2 participants