chore(desktop): drop debug console.logs from launch-mode reset flow
The console.log breadcrumbs added while diagnosing the menu also caused an uncaught "write EPIPE" when the parent terminal pipe was already closed by the time the user clicked Change Launch Mode. Now that the flow is verified working, remove the chatter and keep only the actual error-path logging. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -18,11 +18,7 @@ function buildConnectionSubmenu(options: AppMenuOptions): MenuItemConstructorOpt
|
||||
{
|
||||
label: "Change Launch Mode…",
|
||||
click: () => {
|
||||
console.log("[desktop/menu] Change Launch Mode clicked");
|
||||
if (!options.onChangeLaunchMode) {
|
||||
console.warn("[desktop/menu] onChangeLaunchMode callback not provided");
|
||||
return;
|
||||
}
|
||||
if (!options.onChangeLaunchMode) return;
|
||||
void Promise.resolve(options.onChangeLaunchMode()).catch((error: unknown) => {
|
||||
console.error("[desktop/menu] onChangeLaunchMode failed", error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user