[Bug]:
Description
Bug report: Webcmd does not reliably launch the selected Chrome profile
Status: Open local report; not filed upstream
Severity: High for authenticated tasks that must use a specific profile
Component: Webcmd local browser setup, Chrome profile import/selection, and Windows process startup
Date observed: 2026-09-24
Environment: Windows; PowerShell 7.6.6 was used for later commands; Webcmd 0.8.4; Node.js 26.7.0; Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe; requested Chrome profile Profile 15
Summary
Webcmd accepted a request to use Chrome Profile 15, but did not provide evidence that its browser session was actually using that profile. The user observed Chrome launching with the wrong profile. Browser startup then timed out or failed after repeated attempts. During the attempts, the user also observed many flashing PowerShell windows that interfered with normal computer use.
The exact child-process cause of the flashing windows has not been isolated. The report separates observed CLI output from likely causes below.
Reproduction and observed sequence
-
With Webcmd initially unconfigured,
webcmd doctor --verboseselected its bundled Cloak browser and downloaded a 535 MB CloakBrowser binary:Selected browser: Cloak (bundled default) Downloading ... cloakbrowser-windows-x64.zip Binary ready: C:\Users\denni\.cloakbrowser\chromium-146.0.7680.177.5\chrome.exeThis was not the requested Chrome Profile 15.
-
Configure Chrome with the requested profile:
webcmd setup --browser chrome --chrome-profile "Profile 15"The command reported success.
webcmd setup --statusreported Chrome's executable, but no selected Chrome profile name or path:{"configured":true,"mode":"local","browser":{"kind":"chrome","executablePath":"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"}} -
The subsequent Chrome-mode diagnostic timed out:
[FAIL] Connectivity: failed (Browser exec command timed out after 8s; it may still complete in the browser.) -
No Webcmd profile alias existed.
webcmd profile listreturned[], and session creation using--profile defaultfailed withPROFILE_NOT_FOUNDuntilwebcmd profile create defaultwas run. -
After creating the alias and a session, an initial
browser runtimed out. The session was reported busy, and later its tab list was empty. -
A second
browser runattempt failed with:runtime_command_failed: Failed to launch Webcmd-managed Chrome after 3 attempts -
The user reported that Chrome had launched, but it was not the correct profile, and that repeated flashing PowerShell windows were interfering with use of the computer.
Actual behavior
- Webcmd reports the Chrome executable but does not confirm the effective Chrome profile used by the launched session.
- A targeted
--chrome-profile "Profile 15"setup did not ensure, or visibly verify, that Profile 15 was active. - Browser startup produced an 8-second connectivity timeout and later a three-attempt launch failure.
- Webcmd required a separate profile-alias creation step that was not surfaced by setup.
- The user experienced repeated flashing PowerShell windows during the process.
No Toastmasters page was edited through Webcmd.
Expected behavior
- When a Chrome profile is specified, Webcmd should identify the exact source profile and expose the effective profile path/name for each session before browsing.
- If the requested profile cannot be selected or verified, fail closed without opening another profile.
- Browser startup should not trigger repeated visible console windows; on Windows, process launch should be predictable and use the supported PowerShell 7+ host workflow.
- Setup should either create the required Webcmd profile alias or explain clearly that one must be created before session startup.
- Startup timeouts should distinguish browser launch, profile selection, daemon connectivity, and session initialization, and should avoid automatic repeated launches when the profile is unverified.
Likely causes (not confirmed)
- Profile-import versus profile-selection ambiguity. Webcmd's
--chrome-profilehelp describes importing a Chrome profile, while the runtime uses Webcmd-managed profiles. The CLI output did not show whether the existing Chrome profile was used directly or copied/imported into a separate managed profile. The user's observation confirms the resulting launch was not the intended profile, but the exact mapping failure is unknown. - Incomplete local profile/session setup. The runtime had no profile aliases until
webcmd profile create defaultwas run. This made the initial session flow fail before browser work. - Windows Chrome/runtime startup issue. The connectivity timeout and later three-attempt failure may involve startup latency, Chrome singleton behavior, or Webcmd daemon/runtime coordination. The available output does not establish which one.
- PowerShell window flashing. This was reported by the user during repeated Webcmd attempts. The process tree and exact component spawning those windows were not captured, so attribution to Webcmd, its runtime, or the host shell remains unverified.
Impact
The intended authenticated site work was blocked because the active Chrome identity could not be trusted. Repeated launch attempts were disruptive, and the first diagnostic also downloaded the unused 535 MB CloakBrowser runtime. Webcmd was stopped rather than retried further.
Suggested diagnostics and fixes
- Show the source Chrome profile and effective Webcmd profile/session identity in
setup --status,doctor, and session creation output. - Add a preflight that compares the expected profile path with the actual launched browser before permitting navigation.
- Make profile import semantics explicit: whether cookies/profile data are copied, how long they persist, and which profile the resulting session actually uses.
- Create or select the required Webcmd alias during setup, or provide a clear non-launching prerequisite check.
- Limit automatic launch retries and report one actionable failure without repeatedly opening console windows.
- Provide a Windows 11+/PowerShell 7+ launch path that runs without flashing transient PowerShell windows.
Side effects recorded
- Webcmd local configuration was changed to Chrome mode with the Profile 15 selection request.
- The downloaded CloakBrowser binary remains at
C:\Users\denni\.cloakbrowser\chromium-146.0.7680.177.5. - The Webcmd daemon was stopped after the failed attempts.
Steps to Reproduce
- Run
webcmd ... - ...
- See error
Expected Behavior
Bug report: Webcmd does not reliably launch the selected Chrome profile
Status: Open local report; not filed upstream
Severity: High for authenticated tasks that must use a specific profile
Component: Webcmd local browser setup, Chrome profile import/selection, and Windows process startup
Date observed: 2026-09-24
Environment: Windows; PowerShell 7.6.6 was used for later commands; Webcmd 0.8.4; Node.js 26.7.0; Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe; requested Chrome profile Profile 15
Summary
Webcmd accepted a request to use Chrome Profile 15, but did not provide evidence that its browser session was actually using that profile. The user observed Chrome launching with the wrong profile. Browser startup then timed out or failed after repeated attempts. During the attempts, the user also observed many flashing PowerShell windows that interfered with normal computer use.
The exact child-process cause of the flashing windows has not been isolated. The report separates observed CLI output from likely causes below.
Reproduction and observed sequence
-
With Webcmd initially unconfigured,
webcmd doctor --verboseselected its bundled Cloak browser and downloaded a 535 MB CloakBrowser binary:Selected browser: Cloak (bundled default) Downloading ... cloakbrowser-windows-x64.zip Binary ready: C:\Users\denni\.cloakbrowser\chromium-146.0.7680.177.5\chrome.exeThis was not the requested Chrome Profile 15.
-
Configure Chrome with the requested profile:
webcmd setup --browser chrome --chrome-profile "Profile 15"The command reported success.
webcmd setup --statusreported Chrome's executable, but no selected Chrome profile name or path:{"configured":true,"mode":"local","browser":{"kind":"chrome","executablePath":"C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"}} -
The subsequent Chrome-mode diagnostic timed out:
[FAIL] Connectivity: failed (Browser exec command timed out after 8s; it may still complete in the browser.) -
No Webcmd profile alias existed.
webcmd profile listreturned[], and session creation using--profile defaultfailed withPROFILE_NOT_FOUNDuntilwebcmd profile create defaultwas run. -
After creating the alias and a session, an initial
browser runtimed out. The session was reported busy, and later its tab list was empty. -
A second
browser runattempt failed with:runtime_command_failed: Failed to launch Webcmd-managed Chrome after 3 attempts -
The user reported that Chrome had launched, but it was not the correct profile, and that repeated flashing PowerShell windows were interfering with use of the computer.
Actual behavior
- Webcmd reports the Chrome executable but does not confirm the effective Chrome profile used by the launched session.
- A targeted
--chrome-profile "Profile 15"setup did not ensure, or visibly verify, that Profile 15 was active. - Browser startup produced an 8-second connectivity timeout and later a three-attempt launch failure.
- Webcmd required a separate profile-alias creation step that was not surfaced by setup.
- The user experienced repeated flashing PowerShell windows during the process.
No Toastmasters page was edited through Webcmd.
Expected behavior
- When a Chrome profile is specified, Webcmd should identify the exact source profile and expose the effective profile path/name for each session before browsing.
- If the requested profile cannot be selected or verified, fail closed without opening another profile.
- Browser startup should not trigger repeated visible console windows; on Windows, process launch should be predictable and use the supported PowerShell 7+ host workflow.
- Setup should either create the required Webcmd profile alias or explain clearly that one must be created before session startup.
- Startup timeouts should distinguish browser launch, profile selection, daemon connectivity, and session initialization, and should avoid automatic repeated launches when the profile is unverified.
Likely causes (not confirmed)
- Profile-import versus profile-selection ambiguity. Webcmd's
--chrome-profilehelp describes importing a Chrome profile, while the runtime uses Webcmd-managed profiles. The CLI output did not show whether the existing Chrome profile was used directly or copied/imported into a separate managed profile. The user's observation confirms the resulting launch was not the intended profile, but the exact mapping failure is unknown. - Incomplete local profile/session setup. The runtime had no profile aliases until
webcmd profile create defaultwas run. This made the initial session flow fail before browser work. - Windows Chrome/runtime startup issue. The connectivity timeout and later three-attempt failure may involve startup latency, Chrome singleton behavior, or Webcmd daemon/runtime coordination. The available output does not establish which one.
- PowerShell window flashing. This was reported by the user during repeated Webcmd attempts. The process tree and exact component spawning those windows were not captured, so attribution to Webcmd, its runtime, or the host shell remains unverified.
Impact
The intended authenticated site work was blocked because the active Chrome identity could not be trusted. Repeated launch attempts were disruptive, and the first diagnostic also downloaded the unused 535 MB CloakBrowser runtime. Webcmd was stopped rather than retried further.
Suggested diagnostics and fixes
- Show the source Chrome profile and effective Webcmd profile/session identity in
setup --status,doctor, and session creation output. - Add a preflight that compares the expected profile path with the actual launched browser before permitting navigation.
- Make profile import semantics explicit: whether cookies/profile data are copied, how long they persist, and which profile the resulting session actually uses.
- Create or select the required Webcmd alias during setup, or provide a clear non-launching prerequisite check.
- Limit automatic launch retries and report one actionable failure without repeatedly opening console windows.
- Provide a Windows 11+/PowerShell 7+ launch path that runs without flashing transient PowerShell windows.
Side effects recorded
- Webcmd local configuration was changed to Chrome mode with the Profile 15 selection request.
- The downloaded CloakBrowser binary remains at
C:\Users\denni\.cloakbrowser\chromium-146.0.7680.177.5. - The Webcmd daemon was stopped after the failed attempts.
webcmd Version
webcmd --version 0.8.4
Node.js Version
22.x
Operating System
Windows
Logs / Screenshots
Hi! I’d like to work on this issue.
I want to work on this issue :) /assign