Frontend

Fix Error Patterns

The 90% → 100% workflow: six techniques for getting Claude to reliably close out error loops rather than introducing new problems while fixing old ones.

The 90% Problem

Why Claude gets stuck at 90% complete

Claude commonly reaches a point where the main feature works but there are 3–5 lingering errors — type errors, console warnings, edge case failures. Without specific techniques, Claude enters a loop: fix one error, introduce another, fix that, circle back.

Root cause: Claude fixes errors one at a time without a holistic view of all current errors. Each fix is locally reasonable but globally creates new problems because Claude doesn't re-verify the full error list after each change.

The six techniques below are specifically for the 90% → 100% phase. They're not needed when everything is working — apply them when you're chasing the last cluster of errors.

Techniques 1–3

Snapshot, batch, and isolate

TechniqueHow to apply
1. Error snapshotBefore fixing anything, paste ALL current errors into one message. Claude addresses the full list together, not piecemeal.
2. Batch fixingInstruct Claude: "Fix all these errors in one pass without introducing new ones." One-by-one fixing creates loops.
3. Isolate the sourceFor type errors, ask Claude to trace the error back to its origin type — fixing the symptom vs fixing the root.
# Error snapshot prompt (Technique 1):
"Here are ALL current errors from the TypeScript compiler and browser console.
Fix them in a single pass. Do not fix one and rerun — address all of them together:

[paste full error output here]"
Technique 1 alone (the full error snapshot) resolves most 90% stalls. Claude's default is to fix the first error it sees. Give it the full picture first.
Techniques 4–6

Verify, revert, and branch

TechniqueHow to apply
4. Post-fix verificationAfter any fix, instruct Claude to re-run the type checker and confirm zero new errors before moving on.
5. Revert on regressionIf fixing error A introduces error B, revert the change and try a different approach — don't stack fixes on unstable ground.
6. Branch and compareFor stubborn errors, have Claude try two alternative approaches in separate code blocks. Compare which is cleaner before committing.
# Post-fix verification prompt (Technique 4):
"After making these changes, run: npx tsc --noEmit
Confirm there are zero new TypeScript errors before we proceed."

# Branch and compare prompt (Technique 6):
"Give me two approaches to fix this type error.
Show both as code blocks. I'll pick the better one."
Technique 5 (revert on regression) requires discipline. The instinct is to fix the new error that appeared. Resist it — the stacked fix makes the root cause harder to find.
Full Workflow

The 90% → 100% checklist

StepAction
Step 1Collect all errors: TypeScript compiler, ESLint, browser console — paste everything
Step 2One-pass fix prompt: "Fix all of these together without introducing new errors"
Step 3Verify: run tsc, ESLint, and check browser console — confirm zero new issues
Step 4If new errors appeared: revert the last change completely
Step 5For stubborn errors: trace to root type, or branch to try two approaches
Step 6Repeat from Step 1 until the error list is empty
When to call advisor: If you've been in the 90% phase for more than 3 iterations, call advisor. It will see the full error history and often identifies a root cause that was invisible from the individual error messages.
Check your understanding
1. Why does Claude often get stuck at 90% complete?
Correct.Not quite. Without seeing the full error list, Claude fixes the first error it sees — which often introduces a new one. The piecemeal approach creates loops.
2. What is Technique 1 (Error Snapshot)?
Correct.Not quite. The Error Snapshot means collecting TypeScript compiler output, ESLint warnings, and browser console errors — then pasting everything at once. This alone resolves most 90% stalls.
3. If fixing error A introduces error B, you should:
Correct.Not quite. Revert on regression. Stacking a fix for B on top of a bad fix for A buries the root cause. Start fresh from a clean baseline.