Skip to content

Fix ccc session bootstrap and config sync#1

Open
calderbuild wants to merge 2 commits into
Tinghecui:mainfrom
calderbuild:fix/ccc-bootstrap-sync
Open

Fix ccc session bootstrap and config sync#1
calderbuild wants to merge 2 commits into
Tinghecui:mainfrom
calderbuild:fix/ccc-bootstrap-sync

Conversation

@calderbuild
Copy link
Copy Markdown

Summary

This fixes the main setup and connection issues that showed up when using ccc from an installed copy.

  • resolve the real script path in ccc so symlink installs still load the correct .remote-cc.env
  • start the local bridge with nohup so it survives the exec connect.sh handoff
  • stop persisting a fixed user-level local-bridge MCP on the VPS and rely on session-managed .mcp.json
  • remove default skills sync from connection bootstrap to avoid noisy / broken uploads from local broken symlinks
  • harden directory upload logic to skip broken symlinks and dereference valid links before upload
  • simplify the staged MCP JSON upload path handling
  • clear any stale user-level local-bridge registration before each session starts

Why

The previous flow had a few coupled failure modes:

  • ccc installed via symlink could read the wrong config path and report No server configured
  • the bridge process could die as soon as ccc replaced itself with connect.sh, which broke reverse tunneling with connect_to localhost port 3100: failed
  • fixed local-bridge registration on the VPS conflicted with per-session remote ports
  • syncing local ~/.claude/skills pulled in broken symlinks and made connection bootstrap noisy and fragile

Validation

  • bash -n scripts/*.sh setup.sh install.sh cloud-setup/*.sh
  • cd local-bridge && npm run check
  • manually verified ccc can connect successfully with project MCPs showing local-bridge and remote-cc-playwright as connected

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>
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