fix: harden self-update flow and improve chat message readability (#562)
* fix: resolve Windows CLI module loading on absolute paths * fix: improve chat tool rows layout and timestamp readability * fix: make web update restart more reliable * fix: make web self-update detect package manager correctly
This commit is contained in:
committed by
GitHub
parent
7b5fd9e70c
commit
8bfbed0e68
@@ -24,6 +24,10 @@ function getBunBinary() {
|
||||
|
||||
const BUN_BIN = getBunBinary();
|
||||
|
||||
function importFromFilePath(filePath) {
|
||||
return import(pathToFileURL(filePath).href);
|
||||
}
|
||||
|
||||
function isBunRuntime() {
|
||||
return typeof globalThis.Bun !== 'undefined';
|
||||
}
|
||||
@@ -625,7 +629,7 @@ const commands = {
|
||||
return;
|
||||
}
|
||||
|
||||
const { startWebUiServer } = await import(pathToFileURL(serverPath).href);
|
||||
const { startWebUiServer } = await importFromFilePath(serverPath);
|
||||
await startWebUiServer({
|
||||
port: options.port,
|
||||
attachSignals: true,
|
||||
@@ -926,7 +930,7 @@ const commands = {
|
||||
executeUpdate,
|
||||
detectPackageManager,
|
||||
getCurrentVersion,
|
||||
} = await import(pathToFileURL(packageManagerPath).href);
|
||||
} = await importFromFilePath(packageManagerPath);
|
||||
|
||||
// Check for running instances before update
|
||||
let runningInstances = [];
|
||||
|
||||
Reference in New Issue
Block a user