Troubleshooting
Frontman Troubleshooting Guide
Section titled “Frontman Troubleshooting Guide”This guide helps you diagnose and fix common Frontman issues quickly: Frontman not loading, agent timeouts, tool call failures, WebSocket disconnects, and code edits that do not apply.
If you are looking for setup docs, start with Reference. You can also check Compatibility, Configuration, Environment Variables, Models, and Architecture.
Quick triage checklist (do this first)
Section titled “Quick triage checklist (do this first)”When Frontman is not working, these checks resolve most issues:
- Confirm your app dev server is running and reachable in the preview.
- Hard refresh the browser tab (
Cmd/Ctrl + Shift + R). - Confirm Frontman is connected (no persistent socket/disconnected state).
- Verify API key/model access if the run fails before output.
- Retry the prompt once after reconnect (to clear stale pending tool calls).
- If file tools fail, confirm your framework integration is installed and active in dev mode.
- Capture logs before restarting services (see What to include in a bug report).
Frontman UI not loading
Section titled “Frontman UI not loading”Symptoms
Section titled “Symptoms”/frontman(or your configured base path) is blank.- You see a 404 for the Frontman route.
- The page loads but chat/preview never initialize.
Likely causes
Section titled “Likely causes”- Framework integration is not installed or not enabled in dev mode.
- Wrong base path configuration.
- Dev server is running, but Frontman middleware did not mount.
- Verify integration setup:
- Astro:
@frontman-ai/astro(see Astro integration docs) - Next.js:
@frontman-ai/nextjs(see Next.js integration docs) - Vite:
@frontman-ai/vite(see Vite integration docs)
- Astro:
- Restart the dev server after config changes.
- Confirm the expected Frontman route/path in your integration config.
- Check browser devtools network tab for missing Frontman assets.
WebSocket disconnected or reconnect loop
Section titled “WebSocket disconnected or reconnect loop”Symptoms
Section titled “Symptoms”- “Disconnected” status in chat.
- Prompt send fails or hangs.
- Reconnect spinner loops continuously.
Likely causes
Section titled “Likely causes”- Expired/invalid auth token or session.
- Backend restart or network interruption.
- Cross-origin/proxy misconfiguration in local setup.
- Refresh the page and re-authenticate if prompted.
- Restart Frontman backend and your dev server.
- If using a local reverse proxy/worktree hostnames, confirm routing is still valid (see Self-hosting for deployment and networking context).
- Retry with a new prompt after reconnect (old in-flight tool calls may have failed).
Agent stuck, slow, or timing out
Section titled “Agent stuck, slow, or timing out”Symptoms
Section titled “Symptoms”- Long “thinking” state with no text/tool output.
- Run fails with timeout.
- Agent appears paused indefinitely.
Likely causes
Section titled “Likely causes”- LLM provider latency/outage.
- Tool call waiting on a client-side result.
- Interactive question tool waiting for user input.
- Wait 15–30 seconds and check if a tool call appears in chat.
- If a question drawer is open, answer it (the run is intentionally paused).
- Cancel and retry once.
- Switch to a different model/provider if available.
- Check provider/key/quota status (see API key, model, or quota errors).
Tool call failed (screenshot, DOM, click, file tools)
Section titled “Tool call failed (screenshot, DOM, click, file tools)”Symptoms
Section titled “Symptoms”- Tool block shows error.
- Agent says it could not execute a tool.
- Repeated “tool call failed” messages.
Likely causes
Section titled “Likely causes”- Browser-side tool cannot access expected DOM state.
- Preview page changed (route/modal/auth state mismatch).
- File relay path/tool guardrails blocked the operation.
- Dev server integration endpoint unavailable.
- Ensure preview is on the expected route and state (logged in, modal open, etc.).
- Re-run the request with explicit target details:
- exact URL/route
- exact button label
- exact file path
- For file operations, verify the file exists under your project root.
- Retry after page refresh to clear stale iframe/tool state.
“It said it edited code, but nothing changed”
Section titled ““It said it edited code, but nothing changed””Symptoms
Section titled “Symptoms”- Agent reports success, but file content is unchanged.
- UI did not update after an edit.
Likely causes
Section titled “Likely causes”- Edit pattern did not match current file content.
- Wrong file was targeted.
- Hot reload failed or preview is stale.
- Ask Frontman to
read_filethe exact path and verify current content first. - Request a narrower, explicit edit (specific function/block).
- Manually refresh preview and verify dev server rebuild output.
- If needed, ask Frontman to show the exact diff it applied.
Wrong file changed or wrong element clicked
Section titled “Wrong file changed or wrong element clicked”Symptoms
Section titled “Symptoms”- Agent modifies unrelated code.
- Agent interacts with a similarly named but wrong UI element.
Likely causes
Section titled “Likely causes”- Ambiguous instructions (“update this button” when multiple exist).
- Multiple matching selectors/text labels.
- Missing context about current route/component.
- Provide explicit scope:
- full file path (
src/components/...) - exact text/ARIA name of element
- page route and section
- full file path (
- Use disambiguating wording:
- “the Save button in Settings > Billing, not profile settings”
- Ask Frontman to inspect DOM or list interactive elements before acting.
API key, model, or quota errors
Section titled “API key, model, or quota errors”Symptoms
Section titled “Symptoms”- Run fails immediately before agent output.
- Errors about invalid key, model unavailable, or quota exceeded.
Likely causes
Section titled “Likely causes”- Missing/invalid user key.
- Provider outage or model access restrictions.
- Free-tier/server-key usage limit reached.
- Re-check key configuration in user settings.
- Try another model/provider to isolate provider-specific failures.
- If using free tier, wait for quota reset or add your own API key.
- Re-run after updating credentials.
- Review Models and Configuration to confirm your selected provider/model is supported for your setup.
Question drawer appears and run looks frozen
Section titled “Question drawer appears and run looks frozen”Symptoms
Section titled “Symptoms”- Agent asks a multiple-choice/freeform question and does not continue.
- No new output appears until user action.
Expected behavior
Section titled “Expected behavior”This is normal for interactive tool calls. The agent is waiting on your response.
- Open/answer the question drawer.
- Submit a clear answer to resume the run.
- If drawer is stuck visually, refresh and retry the prompt.
Changes made but preview still old
Section titled “Changes made but preview still old”Symptoms
Section titled “Symptoms”- Files updated on disk, but iframe still shows old UI.
Likely causes
Section titled “Likely causes”- Dev server HMR failed silently.
- Cached route or stale iframe state.
- Build error blocked rebuild.
- Check dev server terminal output for compile/runtime errors.
- Hard refresh the browser tab.
- Navigate preview away and back to force full render.
- Restart dev server if HMR is consistently stale.
What to include in a bug report
Section titled “What to include in a bug report”Include these details so issues can be reproduced quickly:
- Exact error text from the tool block or UI banner.
- Prompt used.
- Route/URL in preview.
- Expected behavior vs actual behavior.
- Framework and version (Astro/Next.js/Vite).
- Whether issue is intermittent or consistent.
- Relevant logs from:
- browser console
- dev server terminal
- Frontman server logs
Need more help?
Section titled “Need more help?”If the steps above do not resolve your issue, use these support channels:
- Discord — fastest path for troubleshooting with the community.
- GitHub Issues — report reproducible bugs and track fixes.
When opening a GitHub issue, include the details from What to include in a bug report.
Why does Frontman keep disconnecting?
Section titled “Why does Frontman keep disconnecting?”Usually auth/session expiry, backend restarts, or local proxy/routing instability. Refresh, re-authenticate, then retry with a fresh prompt.
Why do tool calls fail only on some pages?
Section titled “Why do tool calls fail only on some pages?”Those pages often require specific runtime state (auth, modal open, scroll position, or feature flag). Recreate the exact page state before retrying.
Why is Frontman editing the wrong place?
Section titled “Why is Frontman editing the wrong place?”Ambiguous targets. Use explicit file paths, route names, and exact UI labels to disambiguate.
Why does it stop and ask me a question?
Section titled “Why does it stop and ask me a question?”The agent uses an interactive question tool when your input is required to proceed safely.
Is this a model problem or a Frontman problem?
Section titled “Is this a model problem or a Frontman problem?”If the same prompt fails across multiple models, it is likely integration/tooling/state. If it fails only on one model/provider, it is likely provider/model behavior.