fix: bound food dialog waits and budget combined writes - #40
Merged
Merged
Conversation
Co-authored-by: Dan <miller0daniel@gmail.com>
Contributor
|
Follow-up live validation using a fresh local build and the existing environment credentials:
Boundary: final Save Changes and Add to Diary actions were intentionally not exercised live, so this is authenticated pre-submit validation rather than proof of a production write. Additional finding outside this PR: the servings exporter returned zero calories/macros for both existing Breakfast foods while the live diary UI showed populated nutrition (460 kcal total). Its nutritional fields therefore cannot currently be trusted for write verification; this merits a separate export-parser investigation. |
Co-authored-by: Dan <miller0daniel@gmail.com>
Contributor
|
Follow-up fixes and live write validation:
|
Co-authored-by: Dan <miller0daniel@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix custom-food creation/logging timeout paths in crono rather than changing the meal prompt.
Diagnosis
The September 10 attempts ended with remote automation timeouts. The installed CLI and repository use a 120-second budget for combined creation and logging, and 60 seconds for standalone logging. Several fallback selectors select the first matching control even when hidden, with no explicit action timeout; those waits can consume the operation budget. The shared search selector also contains an extra parenthesis. A real Chromium fixture reproduced a further issue: waiting for the first td can wait on a hidden nutrition-editor cell instead of a search result.
The original remote DOM/step trace is unavailable, so the precise stalled element in that session cannot be established. Missing diary rows do not establish whether a custom food was saved. No production diary writes were made during this investigation.
Changes
Validation
Local validation ran on Node 22.20.0. Browser fixtures never contact Cronometer; this is not a claim of live production end-to-end verification. Existing dependency audit reports 14 vulnerabilities; dependency upgrades are outside this fix. Catalog search and explicit dates for custom-food/log commands remain separate limitations.