Skip to main content
When a Salesforce deployment fails, MoxyCode opens the Deploy Errors panel automatically. Every error is listed, explained in plain English, and ready to fix — without leaving VS Code or searching documentation.

The Deploy Errors panel

The panel opens automatically after a failed deploy. It shows every error with:
FileThe Apex class, trigger, or LWC component with the error
LineThe exact line number where the error occurred
Error messageThe raw Salesforce CLI error message
ConfidenceHow certain MoxyCode is about the fix
RiskHow safe it is to apply the fix
MoxyCode Deploy Errors panel

Confidence ratings

Every error analysis includes a confidence rating so you know how much to trust the suggested fix.
RatingMeaning
🟢 High ConfidenceStraightforward fix — well understood pattern
🟡 Medium ConfidenceLikely correct but review the change before applying
🔴 Low ConfidenceComplex error context — understand the fix carefully before applying

Risk ratings

Every generated fix includes a risk rating so you know the impact of applying it.
RatingMeaning
Safe fixNo logic changes — safe to apply
⚠️ Minor RiskSmall logic change — review the diff
🔍 Review NeededSignificant change — understand it fully before applying

Free plan — Explain

On the Free plan, click Explain on any individual error to get a full AI analysis of that error. Each Explain click uses 1 of your 5 daily AI requests. The explanation includes:
  • What the error means in plain English
  • Exactly why it is happening in your specific code
  • How to fix it with a code example you can copy
MoxyCode Explain view for a single error
On the Free plan you get 5 AI requests per day shared across the entire product — Explain clicks, chat messages, and code analysis requests all count toward this limit.

Pro — Analyze & Generate Fixes

On Pro, click Analyze & Generate Fixes to generate a complete fix for every error at once. MoxyCode sends all errors to AI and returns a targeted fix for each one. Each generated fix shows:
  • Fixed code — the corrected version ready to apply
  • What Changed — a plain-English summary of exactly what was modified and why
  • Overall summary — confidence and risk rating for the full set of changes
MoxyCode generated fix with What Changed summary

Applying a fix

Safe Mode (default)

In Safe Mode, MoxyCode generates the fix but waits for your approval:
  1. Review the Fixed Code and What Changed summary
  2. Click Apply Fix to apply the change to your file
  3. Save the file to accept the changes (Cmd+S / Ctrl+S)
  4. Use Cmd+Z / Ctrl+Z to undo if needed

Auto Mode

In Auto Mode, MoxyCode applies fixes automatically without requiring you to click Apply Fix. You still need to save the file to accept the changes.
Use Safe Mode when working against production orgs or any org with live users. Switch to Auto Mode in development sandboxes where speed matters more.

Chat

The chat input at the bottom of the Deploy Errors panel lets you ask questions about your errors directly. Ask MoxyCode to explain an error in more detail, suggest an alternative fix, or help you understand the Salesforce context behind the issue. Each chat message uses 1 of your 5 daily AI requests on the Free plan.
MoxyCode deploy errors chat input
Chat messages are limited to 4,000 characters per message to ensure fair usage for all users.

Go to line

Click Go to line on any error to jump your cursor directly to the errored line in your file. This does not use any AI requests.

After applying fixes

Once you have applied your fixes and saved the file, run the deploy again:
MoxyCode deploy command
If the deploy succeeds, you’re done. If new errors appear, MoxyCode will open the panel again and repeat the process.
Some errors are layered — fixing one can reveal another underneath. Run the deploy again after each fix cycle until it succeeds cleanly.

Supported file types

MoxyCode fixes deployment errors in:
ExtensionType
.clsApex class
.triggerApex trigger
.jsLWC JavaScript
.htmlLWC HTML template

Common issues

The panel opens automatically when MoxyCode detects errors in the Salesforce CLI output. Make sure you are running MoxyCode: Deploy to Org and not the standard Salesforce CLI deploy command — MoxyCode only monitors its own deploys.
Analyze & Generate Fixes is a Pro feature. On the Free plan, use the Explain button on each individual error to get AI analysis and a suggested fix you can copy manually.
The 5 daily AI request limit on the Free plan is shared across the entire product — Explain clicks, chat messages, and code analysis requests all count. The limit resets 24 hours after your 5th request was made. Upgrade to Pro for unlimited requests.
Use Cmd+Z / Ctrl+Z to undo the applied fix immediately. Review the What Changed summary and the confidence and risk ratings before re-applying. For Low Confidence fixes, consider making the change manually instead.
Some errors are layered — fixing one reveals another underneath. Run MoxyCode: Deploy to Org again. MoxyCode will open the panel with the next set of errors and repeat the fix cycle.

Code Analysis

Catch issues before they become deployment errors

Safe Mode

Control when fixes are applied to your code