Skip to content

amyboardweb: skip green-button gate on save's internal zA+zD pull#914

Merged
bwhitman merged 1 commit into
mainfrom
skip-save-internal-pull-gate
Apr 26, 2026
Merged

amyboardweb: skip green-button gate on save's internal zA+zD pull#914
bwhitman merged 1 commit into
mainfrom
skip-save-internal-pull-gate

Conversation

@bwhitman
Copy link
Copy Markdown
Collaborator

Summary

  • Save in control mode runs an internal zA+zD pull (so we can splice fresh knobs into the editor text) before the zB reboot + upload
  • That internal pull is implicit from clicking Save — re-prompting via the green Pull from AMYboard button was just extra clicks
  • Set _skip_pull_gate before sync_amy_state_async() so the modal goes straight to busy state for the internal pull
  • The subsequent zB-reboot modal still gates so the user confirms MIDI ports before the actual upload

Save flow now: 1 click on Save + 1 click on the green button (for upload), down from 3.

Test plan

  • Click "Write sketch and knobs to AMYboard" → first modal flashes busy directly (no green button), zA+zD completes silently
  • Then second modal opens with green Pull from AMYboard button
  • Click green → board reboots, upload completes, sketch restarts
  • Fresh page load still shows the green button (not skipped)
  • Try again on error still goes straight to busy (skip flag still works for retries)

🤖 Generated with Claude Code

When the user clicks "Write sketch and knobs to AMYboard" in control
mode, save() runs an internal sync_amy_state pull (zA+zD) before the
zB reboot + upload. That internal pull is implicit — the user already
clicked Save — so re-prompting them with the green Pull from AMYboard
button is just extra clicks. Set _skip_pull_gate before the pull so
the modal goes straight to busy state. The subsequent zB-reboot modal
still gates so the user confirms MIDI ports before the actual upload.

Net: save flow now requires one click (Save itself) plus one green
button click (for the upload), down from three.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bwhitman bwhitman merged commit 5a2a265 into main Apr 26, 2026
1 check passed
@bwhitman bwhitman deleted the skip-save-internal-pull-gate branch April 26, 2026 18:03
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