---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Read failed preview build logs

Failed preview build logs remain readable while you investigate the failure.

A preview build can fail while you're checking a change to your app. We now keep that failed build's log available after preview cleanup, so you can inspect the error instead of seeing a temporary-unavailable message that never clears.

Run `segmentstream logs --build` for the failed preview, or tell the coding agent you build with to read its build log and fix the failure before retrying. Retrying the preview does not immediately remove the earlier failed build's log. Retained logs are removed when the preview expires or is deleted, and older ones may be cleared sooner as new failed builds accumulate. If a build never started or its log has been removed, the command gives a specific not-found message instead of suggesting another retry.
