fix(post-update): use venv-repair for instant symlink restoration #213

Merged
lmiranda merged 1 commits from fix/post-update-venv-repair into development 2026-01-27 16:56:52 +00:00
Owner

Summary

  • Replace old venv creation (in marketplace directory) with venv-repair.sh (symlinks to external cache)
  • Instant restoration if cache exists, full setup only on first run

Problem

After marketplace updates, users had to start a broken session, wait for hook to fix, then restart. Two session starts per update.

Solution

Make post-update.sh call venv-repair.sh so symlinks are restored BEFORE the next session starts.

BEFORE:
Update → Start (broken) → Hook fixes → Restart → Works

AFTER:
Update → post-update.sh → Start → Works immediately

Test plan

  • Delete symlinks, run post-update.sh, verify restored
  • Start new session, verify MCP servers load

🤖 Generated with Claude Code

## Summary - Replace old venv creation (in marketplace directory) with venv-repair.sh (symlinks to external cache) - Instant restoration if cache exists, full setup only on first run ## Problem After marketplace updates, users had to start a broken session, wait for hook to fix, then restart. Two session starts per update. ## Solution Make `post-update.sh` call `venv-repair.sh` so symlinks are restored BEFORE the next session starts. ``` BEFORE: Update → Start (broken) → Hook fixes → Restart → Works AFTER: Update → post-update.sh → Start → Works immediately ``` ## Test plan - [ ] Delete symlinks, run post-update.sh, verify restored - [ ] Start new session, verify MCP servers load 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lmiranda added 1 commit 2026-01-27 16:56:06 +00:00
Replace the old approach (create venvs in marketplace directory) with
the new venv-repair.sh approach (symlinks to external cache).

This ensures post-update.sh:
- Instantly restores symlinks if cache exists
- Only does full pip install on first run
- Works correctly after marketplace updates

Flow after this fix:
  Update marketplace → post-update.sh → venv-repair → Session works

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 7492cfad66 into development 2026-01-27 16:56:52 +00:00
lmiranda deleted branch fix/post-update-venv-repair 2026-01-27 16:56:52 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#213