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:

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:

Whatever the answer, you can make cancellation cheap by how you order the work:

  1. Read everything you need from the Set: notes, track lists, device parameters, tempo.
  2. Compute the result in memory. Network requests and file processing belong here too.
  3. Check whether the user has backed out.
  4. 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:

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

A command flow that holds together

Put together, a well-behaved command follows roughly this sequence:

  1. 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".
  2. Resolve the handle the command receives with context.getObjectFromHandle(handle, MidiClip) or the matching type.
  3. Validate. If the clip is empty or the selection doesn't fit, stop early rather than opening a dialog for nothing.
  4. Show a modal web view if you need options. Skip it if you don't.
  5. Wrap the read, compute and write phases in a progress dialog if they take noticeable time.
  6. Finish. The run ends, so anything worth keeping goes to the storage directory first.
PhaseUIIf the user backs out
OptionsModal web viewNothing has changed. Exit cleanly.
Read and computeProgress dialogNothing written yet. Abort requests and exit.
WriteProgress dialogKeep 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.

More examples are in the extension directory.

What to verify before you ship

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.

Browse all extensions → · Submit yours →