zed-industries/zed · error
Zeta3 input is missing current-file editable context at curs
Error message
Zeta3 input is missing current-file editable context at cursor
What it means
The Zeta3 prompt input did not include an editable excerpt of the current file at the cursor, which the v0318 seed multi-region output parser requires to locate and apply marker spans. The input assembly step omitted or failed to produce current-file context.
Source
Thrown at crates/zeta_prompt/src/zeta_prompt.rs:1935
parsed_output_to_patch(prompt_inputs, parsed)
}
pub fn parse_zeta3_model_output_as_patch(
output: &str,
format: ZetaFormat,
input: &Zeta3PromptInput,
) -> Result<String> {
match format {
ZetaFormat::V0318SeedMultiRegions => {}
_ => anyhow::bail!("unsupported Zeta3 output format: {format}"),
}
let output = match output_end_marker_for_format(format) {
Some(marker) => output.strip_suffix(marker).unwrap_or(output),
None => output,
};
let (current_excerpt, cursor_offset_in_excerpt) = zeta3_current_file_excerpt(input)
.ok_or_else(|| anyhow!("Zeta3 input is missing current-file editable context at cursor"))?;
let (context, editable_range_in_context, context_range, _) = resolve_zeta3_cursor_region(
current_excerpt.text.as_ref(),
cursor_offset_in_excerpt,
&input.syntax_ranges,
format,
);
let old_editable_region = &context[editable_range_in_context.clone()];
let range_in_excerpt = editable_range_in_context.start + context_range.start
..editable_range_in_context.end + context_range.start;
let parsed = parsed_output_from_editable_region(
range_in_excerpt,
multi_region::apply_marker_span_v0318(old_editable_region, output)?,
);
parsed_output_to_patch_for_excerpt(
input.cursor_path.as_ref(),
current_excerpt.text.as_ref(),
current_excerpt.row_range.start,View on GitHub (pinned to f4178619ac)
Solutions
- Ensure the prompt input is built with the current file's editable region around the cursor before parsing output
- Skip the edit gracefully and log that input context was missing rather than treating it as a model failure
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/zeta_prompt/src/zeta_prompt.rs:1935 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/d41dcd05b77b36c0.
Report an issue: GitHub.