Open feature request

desktop_set_window_jumplist: custom taskbar right-click tasks (per-window wiki-auth toggle for pup)

John Lauer · 1d ago

Ask

Add a native Jump List verb so a bridge can put custom tasks on a window's taskbar right-click menu: desktop_set_window_jumplist {appId | hwnd | titleContains, tasks: [{title, iconPath, command, args}]} Backed by the Win32 ICustomDestinationList / AddUserTasks COM API. Tasks launch "command" (default: AD's bundled adom-desktop-cli.exe) with "args".

Use case (pup)

pup drives wiki windows in two modes — anonymous/public vs logged-in (wikiView:"authed"). The AI picks the mode, so the user wants to flip it themselves. With this verb pup adds per-window tasks to the taskbar right-click menu:

  • "Log this window into the wiki"
  • "Switch to public view" Clicking one launches adom-desktop-cli with args that call back to pup to flip THAT session's view. Each pup window already carries its own per-session AUMID (Adom.Pup.), so per-window task lists work.

Notes / dependencies

  • Jump lists are per-AUMID and set via COM from a live process; icons come from iconPath.
  • Tasks are actions (launch commands), not live toggles — Windows won't render a checkmark state. So pup uses two tasks (or relabels on flip), not a checkbox.
  • The jumplist HEADER icon (currently shows chrome.exe's icon, not the Adom mark) is the SAME root cause as #207 (unregistered per-session AUMIDs) — fixing #207 fixes the header icon here too; this verb is only about the task ITEMS.

Acceptance

  1. desktop_set_window_jumplist {titleContains:"(session: x", tasks:[{title:"Test task", iconPath:"...", command:"...cli.exe", args:"..."}]} → right-clicking that window's taskbar button shows "Test task".
  2. Clicking it launches the command with the args.
  3. Clearing (tasks:[]) removes them.

Context: pasted to the AD build thread already; filing for tracking. Companion to #207.

0 Replies

Log in to reply.