feat(happier): interactive daemon auth during install#4
feat(happier): interactive daemon auth during install#4danljungstrom wants to merge 1 commit intohappier-dev:mainfrom
Conversation
Add a whiptail prompt (devbox + UI enabled) asking to authenticate the daemon during install. Shows a QR code via hstack auth login that can be scanned with the Happier mobile app. On success, restarts the service and skips manual auth steps in post-install output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughIntroduces a new daemon authentication flow for devbox installations with UI enabled. Adds configuration variables and prompts users to authenticate during install, then performs daemon login post-installation via a command-line tool, with conditional service restart on success. Changes
Sequence DiagramsequenceDiagram
participant User
participant InstallScript as Install Script
participant HSTACK as HSTACK_BIN
participant Service as Stack Service
participant UI as Post-Install UI
User->>InstallScript: Trigger devbox install with UI
InstallScript->>User: Prompt for daemon authentication
User->>InstallScript: Confirm authentication
InstallScript->>HSTACK: Execute mobile auth (300s timeout)
alt Authentication Success
HSTACK-->>InstallScript: Exit code 0
InstallScript->>Service: Restart (if AUTOSTART=1)
Service-->>InstallScript: Restart complete
InstallScript->>UI: Display "Daemon authenticated & running"
else Authentication Failure
HSTACK-->>InstallScript: Non-zero exit code
InstallScript->>UI: Display auth instructions
end
UI-->>User: Show final status message
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
hstack auth loginthat can be scanned with the Happier mobile appDetails
HAPPIER_PVE_DAEMON_AUTHvariable flows from the whiptail UI through to the install scriptTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit