[codex] Add group chat room reset and clone (#756)

* Add group chat room reset and clone

* Clean npm cache before self update
This commit is contained in:
ekko
2026-05-15 15:52:16 +08:00
committed by GitHub
parent 94f1061734
commit 8196e49478
18 changed files with 373 additions and 9 deletions
+16 -1
View File
@@ -447,7 +447,22 @@ Options:
function doUpdate() {
console.log(' ⬆ Updating hermes-web-ui...')
const child = spawnCli(getNpmBin(), ['install', '-g', 'hermes-web-ui@latest'], {
const npm = getNpmBin()
try {
console.log(' 🧹 Cleaning npm cache...')
execFileSync(npm, ['cache', 'clean', '--force'], {
stdio: 'inherit',
env: getCurrentNodeEnv(),
})
} catch (err) {
console.log(` ⚠ Failed to clean npm cache, continuing update: ${err?.message || err}`)
}
runUpdateInstall(npm)
}
function runUpdateInstall(npm) {
const child = spawnCli(npm, ['install', '-g', 'hermes-web-ui@latest'], {
stdio: 'inherit',
windowsHide: true,
env: getCurrentNodeEnv(),