ai_co_discuss 0.4.47 → 0.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runner/cli_login.mjs +2 -1
- package/web/admin.css +1 -1
- package/web/admin.js +2 -2
- package/web/modern.js +1 -1
package/package.json
CHANGED
package/runner/cli_login.mjs
CHANGED
|
@@ -162,7 +162,8 @@ function start_console(data, target, exe) {
|
|
|
162
162
|
const files = { 'host.ps1': `${CONSOLE_HOST}`, 'command.txt': `"${exe}"` };
|
|
163
163
|
if (target) return run_as_user(data, target, "& (Join-Path $Job 'host.ps1') -Job $Job", { files, wait: false });
|
|
164
164
|
const folder = owner_folder(files);
|
|
165
|
-
|
|
165
|
+
// Not detached: a PowerShell started detached (no console) exits at once with code 0 without running its script.
|
|
166
|
+
spawn(POWERSHELL, ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', join(folder, 'host.ps1'), '-Job', folder], { stdio: 'ignore', windowsHide: true }).unref();
|
|
166
167
|
return { folder };
|
|
167
168
|
}
|
|
168
169
|
|