Skip to content

Add eager Docker image pull on agent start#6

Merged
gricha merged 1 commit intomainfrom
feature/eager-image-pull
Jan 6, 2026
Merged

Add eager Docker image pull on agent start#6
gricha merged 1 commit intomainfrom
feature/eager-image-pull

Conversation

@gricha
Copy link
Copy Markdown
Owner

@gricha gricha commented Jan 6, 2026

Summary

When the agent starts, it now begins pulling the workspace image in the background. This prevents users from waiting for the image download when creating their first workspace.

Changes

  • Add src/docker/eager-pull.ts with background image pull logic
  • Call startEagerImagePull() when agent starts listening

Features

  • Pulls image immediately when agent starts
  • Retries every 20s if Docker isn't available yet (max 10 retries)
  • Non-blocking - agent starts normally while pull happens
  • Skips if local workspace:latest image already exists

Test plan

  • CI passes
  • Start agent, verify image pull begins in background
  • Start agent without Docker, verify retries every 20s

🤖 Generated with Claude Code

When the agent starts, it now begins pulling the workspace image in the
background. This prevents users from waiting for the image download when
creating their first workspace.

Features:
- Pulls image immediately when agent starts
- Retries every 20s if Docker isn't available yet
- Non-blocking - agent starts normally while pull happens
- Skips if local image already exists

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gricha gricha merged commit bc42ef3 into main Jan 6, 2026
4 checks passed
@gricha gricha deleted the feature/eager-image-pull branch January 6, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant