Repository navigation
Conversation
The dialog handled Cmd/Ctrl+Enter with a plain onKeyDown, which let the keypress carry on to the editor's own Cmd+Enter (run) shortcut, so saving and syncing also started a run. Register the dialog's keys through the keyboard system at modal priority while it is open, so it claims them. Cmd+Shift+Enter is claimed too, so it no longer opens the run panel behind the dialog. Fixes OpenFn#4836
Holding Cmd+Enter could start several save-and-syncs: the isSaving check read React state, which a key repeat can outrun before the next render. Guard with a ref that is set synchronously instead. Cmd+Shift+Enter in the commit message saved and synced before this branch, and the previous commit turned it into a no-op. It now syncs again, and still does not open the run panel behind the dialog.
MDEx rendered AI assistant messages in the legacy LiveView component, which OpenFn#4908 removed. Nothing has called it since, and mix hex.audit now fails on five advisories published for MDEx 0.13.3 on 30 Nov 2026, so every PR's lint job fails. Remove the dependency instead of upgrading it to 0.15.0, and drop mdex and mdex_native from the lock file with mix deps.unlock --unused. Closes OpenFn#4948
hex.audit fails on every branch while MDEx 0.13.3 is in the lock file. This brings in OpenFn#5295's change so CI passes here too; it drops out of this PR's diff once OpenFn#5295 is merged and main is merged in.
yaml_elixir 2.12.1 expands nested YAML aliases without a limit, so a crafted file can exhaust memory. The advisory fails mix hex.audit in CI lint. 2.13.0 carries the fix and fits the existing ~> 2.12 constraint, so only mix.lock changes.
…in-sync-dialog # Conflicts: # CHANGELOG.md
…/4836-cmd-enter-in-sync-dialog
This branch has not been deployed
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.
Description
This PR fixes Cmd/Ctrl+Enter in the GitHub "Save and sync" dialog also
running the workflow behind it.
The dialog handled Cmd/Ctrl+Enter with a plain
onKeyDownon the commitmessage textarea. That let the keypress carry on to the editor's own
Cmd+Enter (run) shortcut, so saving and syncing also started a run.
The dialog now registers its keys through
useKeyboardShortcutat modalpriority (100) with
enabled: isOpen, the same pattern asDiscardChangesDialogandAlertDialog, so it claims them while open.Cmd+Shift+Enter is claimed too: it still saves and syncs from the dialog, as
it did before, and no longer opens the run panel behind it. Holding the keys
down starts only one save and sync (the in-flight guard is a ref, so a key
repeat that arrives before the next render can't start a second one).
Closes #4836
Validation steps
the run panel does not open behind it.
Automated: new tests in
Header.keyboard.test.tsxdrive the realHeader with the dialog open. They fail on
main(a run is submitted) andpass with this change.
Additional notes for the reviewer
the textarea has focus (for example after tabbing to Cancel). This
matches the dialog's hint text.
GitHubSyncModal.test.tsxnow wraps renders inKeyboardProvider,which the dialog needs. The app already provides it in
CollaborativeEditor.mainand are unchanged here.AI Usage
Please disclose whether you've used AI anywhere in this PR (it's cool, we just
want to know!):
You can read more details in our
Responsible AI Policy
Pre-submission checklist
/reviewwith Claude Code)
(e.g.,
:owner,:admin,:editor,:viewer)