Open script service URLs in-app or external

Adds a Service URLs setting (ask / in-Paseo / external browser) that
controls where URLs from running scripts open on desktop. First click
prompts with a "don't ask again" checkbox; in-Paseo opens a workspace
browser tab. Closing a browser tab now clears its session partition.
This commit is contained in:
Mohamed Boudra
2026-05-03 15:14:28 +07:00
parent 02adadbbc8
commit f58cfe9008
12 changed files with 257 additions and 18 deletions
@@ -62,6 +62,11 @@ interface DropdownMenuContextValue {
const DropdownMenuContext = createContext<DropdownMenuContextValue | null>(null);
export function useDropdownMenuClose(): () => void {
const { setOpen } = useDropdownMenuContext("useDropdownMenuClose");
return useCallback(() => setOpen(false), [setOpen]);
}
function useDropdownMenuContext(componentName: string): DropdownMenuContextValue {
const ctx = useContext(DropdownMenuContext);
if (!ctx) {