fix(installer): add --no-sandbox for root VS Code extension install + .work/ in .gitignore

This commit is contained in:
Deploy Bot
2026-05-16 11:52:51 +01:00
parent 879e0e5b7e
commit e45cac8709
2 changed files with 21 additions and 3 deletions

3
.gitignore vendored
View File

@@ -24,6 +24,9 @@ tests/reports/
.kilo/EVOLUTION_LOG.md
.kilo/WORKFLOW_AUDIT.md
# Local workspace / worktrees
.work/
# Temporary research artifacts (one-off scripts, diagnostic outputs)
agent-evolution/archive/scripts/
agent-evolution/archive/reports/

View File

@@ -179,10 +179,15 @@ install_vscode_extension() {
return 1
fi
local root_flags=""
if [ "$EUID" -eq 0 ]; then
root_flags="--no-sandbox --user-data-dir=/tmp/vscode-root"
fi
info "Installing Kilo Code extension ($VSCODE_EXTENSION)..."
"$bin" --install-extension "$VSCODE_EXTENSION" --force || {
"$bin" $root_flags --install-extension "$VSCODE_EXTENSION" --force || {
warn "Extension install via marketplace failed, trying OpenVSX..."
"$bin" --install-extension "https://open-vsx.org/extension/kilocode/kilo-code" --force || warn "Extension install failed. Install manually from Extensions panel."
"$bin" $root_flags --install-extension "https://open-vsx.org/extension/kilocode/kilo-code" --force || warn "Extension install failed. Install manually from Extensions panel."
}
ok "Kilo Code extension installed"
}
@@ -218,7 +223,17 @@ print_summary() {
echo "========================================"
echo " Kilo + APAW Installation Complete"
echo "========================================"
ok "VS Code: $(command -v code &>/dev/null && code --version | head -1 || echo 'codium/VS Code OSS')"
local vscode_ver="N/A"
if command -v code &>/dev/null; then
if [ "$EUID" -eq 0 ]; then
vscode_ver=$(code --no-sandbox --user-data-dir=/tmp/vscode-root --version 2>/dev/null | head -1 || echo "VS Code (root)")
else
vscode_ver=$(code --version 2>/dev/null | head -1 || echo "VS Code")
fi
elif command -v codium &>/dev/null; then
vscode_ver=$(codium --version 2>/dev/null | head -1 || echo "VSCodium")
fi
ok "VS Code: $vscode_ver"
ok "Kilo Ext: $VSCODE_EXTENSION"
ok "Node: $(node --version 2>/dev/null || echo 'N/A')"
ok "Bun: $(bun --version 2>/dev/null || echo 'N/A')"