Skip to content

Fix workflow switching and scope BLE partial writes - #601

Merged
makermelissa merged 2 commits into
circuitpython:mainfrom
makermelissa-ai-assistant:fix/issue-27-workflow-switching
Nov 30, 2026
Merged

makermelissa merged 2 commits into
circuitpython:mainfrom
makermelissa-ai-assistant:fix/issue-27-workflow-switching

Conversation

@makermelissa-ai-assistant

Copy link
Copy Markdown
Contributor

Fixes #27

Summary

  • Let the device-hosted Wi-Fi editor choose a different workflow after disconnecting. Keep Wi-Fi auto-connect on page load.
  • Switch to the hosted HTTPS editor when the current page is insecure, carry the active document, and retain the unload warning for unsaved background tabs. Secure pages switch in place.
  • Keep the connection indicator accurate while the picker is open. Close the outgoing USB serial session even if file access is still pending, and ignore status callbacks from an old workflow selection.
  • Reuse a BLE write prefix only after a confirmed save to the same path and file-transfer connection. A workflow change, new file client, or intervening mutation requires a full write. Stop retries if the target changes.

Validation

  • Exercised Wi-Fi startup and reconnect, choosing BLE on a device-hosted page, secure in-place switching, picker cancellation, and partial USB cleanup with mocked connections.
  • Checked same-path saves across workflow and board changes, same-device partial writes, intervening mutations, Save As, Unicode prefix boundaries, and late saves and retries after a target change.
  • Ran a BLE transfer wrapper check with simulated status responses.
  • Production build passed on macOS, and git diff --check passed.

AI assistance

Codex reproduced the switching and save issues, implemented the changes, and ran the local checks.

@makermelissa
makermelissa merged commit 3ae37b4 into circuitpython:main Nov 30, 2026
1 check passed
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.

BLE Workflow: Fix Switching to BLE from a different Workflow

2 participants