Skip to content

Return 501 when AI apply fix lacks optional SDK - #10

Closed
mikemikimike wants to merge 1 commit into
LaravelPlus:mainfrom
mikemikimike:fix/issue-7-optional-ai-sdk
Closed

mikemikimike wants to merge 1 commit into
LaravelPlus:mainfrom
mikemikimike:fix/issue-7-optional-ai-sdk

Conversation

@mikemikimike

Copy link
Copy Markdown

Summary

  • Return a 501 response when aiApplyFix is used without the optional Laravel AI SDK.
  • Add a regression check that keeps the SDK guard ahead of tool construction.

Fixes #7

Issue: #7

Testing

  • PHP lint across source, configuration, routes, migrations, and regression script
  • php tests/Issue7AiApplyFixTest.php
  • composer validate --no-check-publish
  • git diff --check

@coderabbitai

coderabbitai Bot commented Oct 31, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 592b9b3d-b1df-49be-805a-8e0023c8c87c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@Nejcc

Nejcc commented Oct 31, 2026

Copy link
Copy Markdown
Member

Thanks a lot for the PR, @mikemikimike, and for the clear write-up and test! We're working on a larger overhaul of this package right now, and this fix is already part of it: #20 adds one laravel/ai check used by all three AI endpoints (ai-apply, plus ai-suggest and ai-investigate, which had the same crash), so they return 501 instead of fataling. We'll close this one in favour of that, but your report helped shape the fix. Contributions are very welcome, so feel free to open more!

@Nejcc Nejcc closed this Oct 31, 2026
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.

ai-apply fatals without laravel/ai installed

2 participants