Conversation
…andling - bump version to 1.0.1 - enhance volume validation and error messages - update hook event names to PascalCase
- enhance SSH file synchronization - improve error messaging for copy failures - update version in feature configuration
✅ PR Validation Passed
📋 Pipeline Status
🤖 Generated by @helpers4 CI • 2026-04-07 |
There was a problem hiding this comment.
Pull request overview
This PR updates two devcontainer features (peon-ping and local-mounts) to improve synchronization and runtime behavior, while also bumping their published feature versions.
Changes:
- Add volume validation + more defensive JSON handling for peon-ping config/hooks generation.
- Enhance local-mounts synchronization (fallback copy strategy + broader SSH file syncing) and adjust SSH agent guidance/detection to use
ssh-add -l. - Bump feature versions for both features.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/peon-ping/install.sh | Adds volume validation and hardens JSON read/write paths; updates Copilot hook generation. |
| src/peon-ping/devcontainer-feature.json | Bumps peon-ping feature version to 1.0.1. |
| src/local-mounts/README.md | Updates SSH agent setup instructions to use ssh-add -l checks. |
| src/local-mounts/install.sh | Adds cp fallback logic, broadens SSH file sync, and changes runtime SSH agent socket detection. |
| src/local-mounts/devcontainer-feature.json | Bumps local-mounts feature version to 1.0.8. |
Comments suppressed due to low confidence (3)
src/local-mounts/README.md:67
- These host-shell snippets use
if ! ssh-add -l ...; thento decide whether to recreate the agent.ssh-add -lalso returns non-zero when the agent is running but has no keys loaded, so this can unnecessarily kill/recreate a valid agent/socket. Consider branching on the specific “cannot connect to agent” failure case (and treating “no identities” as an alive agent).
```bash
# Stable SSH agent socket (optional, recommended for devcontainers)
export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock"
if ! ssh-add -l &>/dev/null; then
rm -f "$SSH_AUTH_SOCK"
eval "$(ssh-agent -a "$SSH_AUTH_SOCK")" >/dev/null
ssh-add 2>/dev/null
fi
src/local-mounts/README.md:79
- Same issue as the zsh snippet above:
ssh-add -lreturns non-zero when the agent is reachable but has no identities, so this condition can recreate a healthy agent/socket unnecessarily. Consider checking for the specific “cannot connect to agent” case rather than treating any non-zero as failure.
```bash
# Stable SSH agent socket (optional, recommended for devcontainers)
export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock"
if ! ssh-add -l >/dev/null 2>&1; then
rm -f "$SSH_AUTH_SOCK"
eval "$(ssh-agent -a "$SSH_AUTH_SOCK")" > /dev/null
ssh-add 2>/dev/null
fi
src/local-mounts/README.md:90
- Same issue as the other host-shell examples:
ssh-add -lnon-zero can mean “agent alive but no identities”, so this condition may recreate an agent unnecessarily (especially common before keys are added to the keychain). Consider distinguishing “cannot connect to agent” from “no identities” in the check.
```bash
export SSH_AUTH_SOCK="$HOME/.ssh/agent.sock"
if ! ssh-add -l &>/dev/null; then
rm -f "$SSH_AUTH_SOCK"
eval "$(ssh-agent -a "$SSH_AUTH_SOCK")" >/dev/null
ssh-add --apple-use-keychain 2>/dev/null
fi
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- refactor SSH agent check to use a function - enhance error handling for agent responses fix(peon-ping): 🐛 validate volume range using awk
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.
Description
Please include a summary of what this PR does and why it's needed.
Type of Change
Related Issues
Closes #(issue number)
How Has This Been Tested?
Describe the tests you ran and how to reproduce them:
Checklist
Screenshots (if applicable)
Add screenshots for UI changes.
Additional Context
Add any other context about the PR here.