Skip to content

Commit 3b4e3fa

Browse files
committed
chore: don't block in coder
1 parent c398e30 commit 3b4e3fa

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

run_once_after_install-nvim-plugins.sh.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ if ! command -v nvim >/dev/null 2>&1; then
88
exit 0
99
fi
1010

11+
# Skip blocking plugin sync under Coder - Lazy auto-installs on first launch
12+
# and the sync can exceed Coder's script timeout
13+
if [ -n "$CODER_AGENT_TOKEN" ]; then
14+
echo "Running under Coder, skipping blocking Lazy sync (plugins install on first nvim launch)"
15+
exit 0
16+
fi
17+
1118
echo "Installing Neovim plugins via Lazy..."
1219

1320
# Run Lazy sync in headless mode

run_once_install-packages.sh.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ retry_apt() {
3636
if "$@"; then
3737
return 0
3838
fi
39-
echo "apt command failed (attempt $attempt/$max_attempts), retrying in 5s..."
39+
echo "apt command failed (attempt $attempt/$max_attempts), retrying in 2s..."
4040
attempt=$((attempt + 1))
41-
sleep 5
41+
sleep 2
4242
done
4343
echo "apt command failed after $max_attempts attempts"
4444
return 1

0 commit comments

Comments
 (0)