{"record":{"id":"51a27f84bdf6a641","repo":"zed-industries/zed","slug":"no-marker-tags-found-in-output","errorCode":null,"errorMessage":"no marker tags found in output","messagePattern":"no marker tags found in output","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/zeta_prompt/src/multi_region.rs","lineNumber":753,"sourceCode":"        cursor_marker,\n        &marker_offsets,\n        |i| marker_tag(i + 1),\n    );\n}\n\n/// Parse byte-exact model output and reconstruct the full new editable region.\n///\n/// `resolve_boundary` maps a parsed tag value to an absolute byte offset in\n/// old_editable, given the marker_offsets. Returns `(start_byte, end_byte)` or\n/// an error.\nfn apply_marker_span_impl(\n    old_editable: &str,\n    tags: &[ParsedTag],\n    output: &str,\n    resolve_boundaries: impl Fn(isize, isize) -> Result<(usize, usize)>,\n) -> Result<String> {\n    if tags.is_empty() {\n        return Err(anyhow!(\"no marker tags found in output\"));\n    }\n    if tags.len() == 1 {\n        return Err(anyhow!(\n            \"only one marker tag found in output, expected at least two\"\n        ));\n    }\n\n    let start_value = tags[0].value;\n    let end_value = tags[tags.len() - 1].value;\n\n    if start_value == end_value {\n        return Ok(old_editable.to_string());\n    }\n\n    let (start_byte, end_byte) = resolve_boundaries(start_value, end_value)?;\n\n    if start_byte > end_byte {\n        return Err(anyhow!(\"start marker must come before end marker\"));","sourceCodeStart":735,"sourceCodeEnd":771,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/zeta_prompt/src/multi_region.rs#L735-L771","documentation":"apply_marker_span_impl found zero parsed marker tags in the model output, so there is no span to reconstruct. The output simply did not contain any recognizable marker-tag syntax (wrong format, empty, or a refusal/ prose answer).","triggerScenarios":"Thrown at crates/zeta_prompt/src/multi_region.rs:753 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the model output uses the expected marker-tag format for the configured Zeta format version","Treat as a no-op or rejection and re-prompt the model for correctly formatted output","Strip any wrapper text/decoration from the output before parsing tags"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}