Progress Dialogs and Modal Web Views in Ableton Live Extensions
Published Nov 18, 2026 · guide
How to use withinProgressDialog and showModalDialog in the Ableton Extensions SDK, plan for cancellation, and what to verify in the docs before you ship.
Two UI helpers and one runtime constraint
Beyond the right-click context menu, the Ableton Extensions SDK gives you two UI helpers. withinProgressDialog shows progress while your command works. showModalDialog opens a modal web view. Most UI decisions follow from one runtime fact: an extension runs once per invocation and then stops. There is no long-running background process.
In practice, the user right-clicks a clip slot, track or clip and picks your command. Everything after that happens inside that single run: asking for options, doing the work and writing to the Set. Nothing keeps going after the run ends. To remember something between runs, such as the last key a user picked or an API key, use the per-extension storage directory.
The exact signatures (arguments, options, return values) are in the TypeDoc API reference in the official SDK documentation. This guide covers when and how to use the helpers. Confirm the details against the reference for the API version you set as minimumApiVersion in manifest.json.
When a command needs a progress dialog
Many commands finish almost instantly, like renaming scenes or nudging some notes. Wrapping them in a progress dialog only adds a flash on screen. Use one when the user would otherwise click and see nothing happen for a noticeable stretch:
- Network calls. Extensions run on Node.js with networking available, so a command might wait on a remote service.
- Large batches. Loops over every track, clip or device in a big Set.
- File work. Reading, writing or converting files through
fs. - Heavy computation before you write notes or parameter values back.
Without feedback, users assume the click didn't register and try again. Because each invocation is a separate run, a second click can start a second job on the same material.
If the API lets you update the message, name the phase the work is in. "Reading tracks" and "Writing notes" tell the user more than a generic spinner. In the reference, check whether withinProgressDialog supports determinate progress (a percentage), text updates during the run, or only an indeterminate state. Design your phases around whichever it offers.
Cancellation: design for it before you know the API
The published overview mentions progress dialogs but doesn't describe how cancellation works. Before relying on it, check the API reference for three things:
- Whether the progress dialog offers the user a way to cancel at all.
- How your code finds out about it: a flag you poll, a signal, a rejected promise, or something else.
- What happens to work already in flight when the user cancels.
Whatever the answer, you can make cancellation cheap by how you order the work:
- Read everything you need from the Set: notes, track lists, device parameters, tempo.
- Compute the result in memory. Network requests and file processing belong here too.
- Check whether the user has backed out.
- Write all changes to the Set in one short pass at the end.
With this order, a cancel at any point before step 4 leaves the Set exactly as it was. A cancel during step 4 could leave a half-applied edit, which is why that phase should be as short as you can make it.
Also test how your edits show up in Live's undo history. The overview doesn't say whether one invocation becomes one undo step, so run your command on a test Set and press undo to see what happens.
For network work, Node's standard AbortController can stop a request in progress. If the SDK's cancellation mechanism can be wired to one, do that. If it can't, at least check between requests rather than only at the end.
Modal web views for collecting input
showModalDialog opens a modal web view, which means HTML, CSS and JavaScript. Use it when a command needs more than a single click: choosing options, typing a prompt, picking from a list, or previewing something before committing.
Treat the dialog as a form. It collects parameters and returns them, and your command code then does the work. Check the reference for the details that shape this:
- How you pass data into the web view, such as the current clip's name or the track list.
- How the web view returns a result to your command.
- Whether the call waits until the dialog closes.
- What your code receives when the user dismisses the dialog without confirming.
That last point matters most. A dismissed dialog is your first cancellation path, and it should end the command without touching the Set.
Small things that make dialogs pleasant
- Defaults that work. A user who presses confirm right away should get a sensible result.
- Remember last choices in the storage directory, so repeated use doesn't mean re-entering the same settings.
- Keep it small. Live is still the main window. The dialog is a stop on the way back to it.
- Don't prompt for credentials every run. Ask once and store them in the storage directory. The safety checklist for users and authors covers handling them responsibly.
A command flow that holds together
Put together, a well-behaved command follows roughly this sequence:
- The user right-clicks an item. Your command was attached to that scope with
ui.registerContextMenuAction(scope, title, commandId), using a scope such as"MidiClip","ClipSlot"or"AudioTrack". - Resolve the handle the command receives with
context.getObjectFromHandle(handle, MidiClip)or the matching type. - Validate. If the clip is empty or the selection doesn't fit, stop early rather than opening a dialog for nothing.
- Show a modal web view if you need options. Skip it if you don't.
- Wrap the read, compute and write phases in a progress dialog if they take noticeable time.
- Finish. The run ends, so anything worth keeping goes to the storage directory first.
| Phase | UI | If the user backs out |
|---|---|---|
| Options | Modal web view | Nothing has changed. Exit cleanly. |
| Read and compute | Progress dialog | Nothing written yet. Abort requests and exit. |
| Write | Progress dialog | Keep this phase short. Check undo behavior in testing. |
How published extensions map to these patterns
The extensions below are useful references for the kinds of jobs that need UI. Their descriptions don't say which helpers each one uses, so where source is public, read it before borrowing an approach.
- Yoink ♡: right-click an audio track, paste a link, trim the section on a waveform, and it lands in your Set as a WAV. Text entry, a visual editor and a slow fetch step make this a clear case for both an interface and progress feedback.
- the-fnk (Ableton MCP): adds an "Ask Claude…" action to Session clip slots. You type an instruction and Claude generates or edits MIDI. A text prompt plus a wait on a remote model is the typical modal-then-progress shape.
- Progressive: you pick a key, major or minor, and a progression, and it lays out clips. This is option-form territory, where good defaults and remembered choices pay off.
- Repeat It: adds, removes and organizes audio effects across selected tracks or the whole Set. Batch edits across many tracks are where a clear write phase matters.
- PS Clip Jockey: pushes edits from a master clip to every linked clip in the arrangement. Writes fan out to many clips, so reading and computing first, then writing once, is the safer structure.
- Scene Name Committer: right-click a track, choose the command, and scene names follow that track's clip names. It's a compact job where extra UI may not be worth adding at all.
More examples are in the extension directory.
What to verify before you ship
- The exact
withinProgressDialogandshowModalDialogsignatures in the TypeDoc reference, for yourminimumApiVersion. - Whether and how cancellation reaches your code, and what your command does in each case.
- What a dismissed modal returns, and that dismissing it leaves the Set untouched.
- Undo behavior after a full run, tested on a throwaway Set.
- Behavior on a large Set, which is where missing progress feedback shows up.
- The packaged
.ablxfromextensions-cli package, installed through Settings → Extensions as a user would.
If you build UI with an AI coding assistant, the workflow guide covers iterating against the docs. When your extension is ready, you can submit it to the marketplace.