Skip to content

woltspace update doesn't sync the host CLI script #312

@woltspace-jerpint

Description

@woltspace-jerpint

Problem

woltspace update rebuilds the Docker image but never git pulls the host repo. The woltspace CLI script on the host stays at whatever version was originally cloned.

This causes drift: the container runs new code but the host CLI has stale logic. Real example: tunnel management moved to server/tunnel.py writing tunnel.json, but a user's host CLI still polls for the old tunnel-url file — _show_url() waits 30 seconds then gives up with "tunnel still digging."

Root cause

The update skill (/woltspace-update) calls woltspace rebuild --version <tag>, which:

  1. Builds a new Docker image (clones repo at build time inside Docker)
  2. Restarts the container

But step 0 is missing: update the host repo to the same tag so the woltspace script matches the container.

Proposed fix

In the rebuild subcommand (or the update skill), before building:

# Sync host repo to the target version
git fetch origin --tags --force --quiet
git checkout "v${VERSION}" 2>/dev/null || git checkout "${VERSION}" 2>/dev/null

Or more conservatively, just the CLI script:

# Pull latest woltspace script from the target tag
git show "${VERSION}:woltspace" > woltspace.tmp && mv woltspace.tmp woltspace

Files

  • woltspacerebuild) subcommand (~line 482)
  • .claude/skills/woltspace-update/SKILL.md — update skill should include the git pull step

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions