Skip to content

Warn about Assistant Start menu shortcuts before switching (#1) - #2

Merged
sorenbcoding merged 2 commits into
mainfrom
fix/1-start-menu-shortcuts-warning
Nov 6, 2026
Merged

sorenbcoding merged 2 commits into
mainfrom
fix/1-start-menu-shortcuts-warning

Conversation

@sorenbcoding

Copy link
Copy Markdown
Owner

Closes #1. Same fix in the desktop app: sorenbcoding/tenant-switcher-app#11.

What changes

  • Before a switch, the extension reads agent.showStartMenuShortcuts from Assistant's %AppData%\UiPath\agent-settings.json. When it's on, the preset card (or the status-bar quick pick) warns that the switch can freeze Windows Explorer.
  • Turn off and switch passes turnOffStartMenuShortcuts to switch.ps1. After Assistant has closed, and only if no UiPath.Assistant process is left, the new step Turn off Start menu shortcuts changes that single value. Every other byte and the encoding stay the same, and the file is written atomically. If Assistant is still running, the step is a warning and the file isn't touched.
  • When tenantSwitcher.restartAssistant is off, the warning only points to Assistant → Preferences.
  • New setting tenantSwitcher.warnAboutStartMenuShortcuts (default true) stops the warning.
  • README troubleshooting entry, CHANGELOG, and CLAUDE.md (the rule for Assistant's file, plus the issue/branch/PR workflow).

Testing

  • npm run typecheck, npm run build and the brand check pass.
  • npm test: 45 passed. New tests cover reading the setting, the PowerShell edit (byte for byte, with and without a BOM, already off, missing file), and the new step end to end. Assistant was running on the test machine, so the end-to-end test checked the "don't touch the file while Assistant runs" path.
  • Not yet tested in Studio. Do that before tagging a release.

🤖 Generated with Claude Code

sorenbcoding and others added 2 commits November 6, 2026 10:13
With Assistant's "Show in Windows Start Menu" on, Assistant rewrites one
shortcut per automation when it connects to another tenant, which can
freeze Windows Explorer. Before a switch the panel and status bar now
warn about it and offer to turn the setting off. switch.ps1 changes only
agent.showStartMenuShortcuts, and only while Assistant is closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README: troubleshooting entry for the Explorer freeze, the new
warnAboutStartMenuShortcuts setting and the Assistant settings file.
CHANGELOG: Unreleased fix. CLAUDE.md: the agent-settings.json rule and
the issue/branch/PR workflow that replaces pushing straight to main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sorenbcoding
sorenbcoding merged commit b3d4aa1 into main Nov 6, 2026
1 check passed
@sorenbcoding
sorenbcoding deleted the fix/1-start-menu-shortcuts-warning branch November 6, 2026 10:12
sorenbcoding added a commit that referenced this pull request Nov 19, 2026
…rning

Warn about Assistant Start menu shortcuts before switching (#1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Explorer freezes after switching tenants when Assistant shows automations in the Start menu

1 participant