Skip to content

F preflight setup check#2

Open
albin-paul-saju wants to merge 6 commits intomainfrom
f-preflight-setup-check
Open

F preflight setup check#2
albin-paul-saju wants to merge 6 commits intomainfrom
f-preflight-setup-check

Conversation

@albin-paul-saju
Copy link
Copy Markdown
Owner

No description provided.

- Add preflight module that detects standalone `agent` CLI or falls
  back to `cursor agent`, and enforces Node >=18
- Update AI Review setup and orchestrator to use preflight validation
- Use process.execPath for MCP server to ensure Node >=18
- Add unit tests for preflight logic with dependency injection
- Update README with AI Review setup instructions

Made-with: Cursor
@albin-paul-saju albin-paul-saju force-pushed the f-preflight-setup-check branch from 2db7675 to 964b820 Compare March 24, 2026 09:47
- Refactor resolvePrerequisites() to return a PrerequisiteResult
  object and throw on failure instead of returning null
- Add UserCancelledError (following vscode-azext-utils pattern)
  to distinguish user cancellation from real errors
- Wrap enableAiReview() in top-level try/catch: silently swallow
  cancellations, show error notification for actual failures
- In reviewOrchestrator doReview(), prompt user to run
  "Enable AI Review" when preflight fails instead of throwing

Made-with: Cursor
Use spawn-based login detection that reads stdout immediately
(handles the hanging `agent status` command), check for login
before MCP setup, and replace modal dialogs with persistent
notification-based prompts for Node upgrade, CLI install, and
agent login flows.

Made-with: Cursor
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