fix: complete installer chain - non-interactive, mandatory components, correct success detection #89
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
Fixes comprehensive installer chain issues identified in Installation Test Suite #76:
• Non-interactive execution: Fixed TTY detection in all setup scripts to prevent hanging in
curl | bashscenario• Mandatory components: Removed optional prompts for subagents and hooks - they are core Agent OS features
• Always update instructions: Changed setup.sh to
OVERWRITE_INSTRUCTIONS=trueby default• Correct success detection: Fixed hooks config path validation to check actual installation location
Test Results
✅ Before: Subagent installer hung with "Setup cancelled"
✅ After: Completes with "✅ Subagent integration installed successfully!"
✅ Before: Hooks installer prompted for user input in piped execution
✅ After: Runs automatically with "✅ Claude Code hooks installed successfully!"
✅ Before: Instructions never updated to latest versions
✅ After: Always downloads and installs latest instruction files
✅ Before: False success reporting (checking wrong config paths)
✅ After: Validates actual config files exist at correct locations
Verification Evidence
Complete installer test from GitHub:
curl -sSL https://raw.githubusercontent.com/carmandale/agent-os/d8b4e61/setup-claude-code.sh | bashResult: ✅ All components installed successfully without prompts or hanging
Files Modified
setup.sh: Default OVERWRITE_INSTRUCTIONS=true, fixed bash pipe syntaxsetup-claude-code.sh: Fixed hooks config path validation (2 locations)integrations/setup-subagent-integration.sh: Added TTY detection for non-interactivehooks/install-hooks.sh: Added TTY detection for non-interactiveCloses
Fixes Installation Test Suite #76
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]