- start_clone_repos waits for the first connect when a setup script exists,
not only when there are repositories, so the script sees the CA, SSH keys
and Git credentials.
- wip_ref appends 8 hex of sha256(raw folder) when sanitising changed the
name, so `a b` and `a_b` never share a WIP branch.
- triple-c-apply-connect moves new CA files to a temporary name and swaps
them in; a failed move keeps the CA installed before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- triple-c-apply-connect: the background re-clone closes the apply lock's
fd, so a later connect never waits on it; --prepare takes the lock.
- R6: under copy-at-connect Hybrid/EFS no longer link ~/.ssh to EFS; the
copied keys vanish with the task (UI says so, and that old keys on EFS
stay until removed).
- R7: a copy-at-connect start that finds credentials still in the secret
force-deletes it and creates it again (retrying ~30 s while AWS finishes),
so no AWSPREVIOUS version keeps them.
- TRIPLE_C_CUSTOM_ENV (unsalted fingerprint) left out of the secret.
- Terminals get only the credential pairs (no file reads; keychain off the
runtime), so a bad SSH/CA file never drops the API keys.
- ConnectBundle values are Zeroizing; UI copy updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy-at-connect (phase 6, Q2): with secrets_delivery copy_at_connect the
project secret keeps settings, repos and the agent token but drops
TRIPLEC_FILES and every credential pair (SECRET_ENV_KEYS and all custom
variables), marking TRIPLEC_CREDENTIALS=connect. After every connect (start,
attach, background re-attach) the app uploads the SSH/CA files and a
connect.env as root into /dev/shm/triple-c and runs the new
triple-c-apply-connect: CA install as root, SSH merge and git credential
helper as claude, a `connected` marker the first clone waits for, and a
background re-clone of failed repos only. Terminals add the pairs to their
own ExecSpec env. A failed push is a workspace-warning.
The entrypoint's CA, SSH, git-credential, Hybrid-home and clone functions
move to container/entrypoint-lib.sh (sourced first; defines only), so both
scripts run the same code; Docker behaviour is unchanged. HostSection gets
the Credentials choice with its warnings (and the gateway note, R1).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>