Fix ccc session bootstrap and config sync#1
Open
calderbuild wants to merge 2 commits into
Open
Conversation
Tinghecui
added a commit
that referenced
this pull request
Mar 31, 2026
…ts sync, symlink handling - ccc.sh: use nohup to keep bridge alive after exec connect.sh - install.sh: remove fixed MCP registration, rely on session-level .mcp.json - prepare-session.sh: add agents directory sync (user + project level) - connect.sh: handle broken symlinks in upload_dir_if_exists, clear stale user-level local-bridge MCP before session, add agents directory upload Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This fixes the main setup and connection issues that showed up when using
cccfrom an installed copy.cccso symlink installs still load the correct.remote-cc.envnohupso it survives theexec connect.shhandofflocal-bridgeMCP on the VPS and rely on session-managed.mcp.jsonskillssync from connection bootstrap to avoid noisy / broken uploads from local broken symlinkslocal-bridgeregistration before each session startsWhy
The previous flow had a few coupled failure modes:
cccinstalled via symlink could read the wrong config path and reportNo server configuredcccreplaced itself withconnect.sh, which broke reverse tunneling withconnect_to localhost port 3100: failedlocal-bridgeregistration on the VPS conflicted with per-session remote ports~/.claude/skillspulled in broken symlinks and made connection bootstrap noisy and fragileValidation
bash -n scripts/*.sh setup.sh install.sh cloud-setup/*.shcd local-bridge && npm run checkccccan connect successfully with project MCPs showinglocal-bridgeandremote-cc-playwrightas connected