GuidesUpdated

The coding agent says done, but the app is still broken

Recover when an agent claims a fix that doesn't work: reproduce the failure, check services and logs, send evidence and check the new diff.

On this page

An agent can finish its edit while the feature still fails in the running app. Start the correction with a failure you can reproduce, not another broad prompt.

Canopy local run controls and process output for a project
Canopy local run controls and process output for a project

Reproduce the failure yourself

Open the page or command the task should have fixed. Write down what you did, what happened and what should have, plus any input, account or viewport that matters. Screenshot a visual mismatch; capture a log line or failing test for a process error.

Example: the settings form never finishes saving

The agent says profile saving works. You enter a new display name, press Save, and the spinner never stops. Note the URL and account role, then open Chrome's Network panel.

A 500 response points to the API log. No request means the browser code stopped earlier. If the request succeeds but a refresh restores the old name, check which backend or account the page used. These are three different failures.

Collect one observation from each layer before asking for another edit.
LayerQuestionEvidence to record
BrowserDid Save send a request?URL, method, status, safe response excerpt
ServiceDid the intended API handle it?Process, port, matching timestamp, first error
RepositoryDid the fix touch this path?Branch, latest commit, relevant diff and test
ResultDid the name persist after reload?Observed value, using a disposable account

Check the stack before changing code

In Canopy's Servers panel, check process state, ports and output, and confirm the site points at the expected API. A stopped server, stale port, missing environment variable or old browser state can look like a code bug. Restart and reproduce first.

Compare the claim with the diff

Read the changed files and latest commit. Did the agent change the failing component? Does its test exercise the behavior or a nearby helper? If the test passes and the UI fails, the test is incomplete, the runtime path differs, or the stack is misconfigured.

Send a focused correction

Send the reproduction, logs, screenshot or test output, and the branch. Ask the agent to diagnose first, name the likely cause, make the smallest fix, then rerun the failing check and report the result. In Canopy, element annotations and scoped screenshots tie feedback to the preview.

Check the final state, not the second summary

Repeat the reproduction, then read the new diff and tests. A valid name should save once, show success and survive a reload. Force one API failure: the form should show an error and allow a retry. Hiding the spinner by dropping the request is not a fix.

If a PR changed, check CI on the latest commit and that comments were addressed. Close the task when the acceptance check passes in the running app, or document the remaining failure for its owner.

  • Note the checkout, URL and account so a reviewer can repeat the check.
  • Read the latest diff, including any test changed to make a failure disappear.
  • A passing build does not exercise save and retry.

Copyable resources

Copyable follow-up prompt

Fill in the reproduction and evidence before sending another agent turn.

The requested behavior still fails on branch [branch/PR].
Steps to reproduce: [numbered steps and input]
Actual result: [what I saw]
Expected result: [what should happen]
Current evidence: [screenshot, log line, failing command, URL/port]
Checks already run: [command and result]
Read the current diff and running path before editing. Explain the likely cause, make the smallest fix, rerun the failing check, and report the exact result and anything still uncertain.

Frequently asked questions

If tests pass, why can the app still be broken?

Tests cover only the behavior they exercise. The failing UI path, environment, integration or input may not be in them.

Should I tell the agent to try again?

Give it a specific reproduction and evidence first. A broad retry can repeat the same wrong assumption.

More questions and answers →

Sources and further reading