- _has_unclosed_code_fence() now scans every line with re.search and a shared FENCE_RUN regex, so an inline opening fence such as "First, let me write it. \`\`\`python" is tracked alongside the column-0 openers. A numbered list emitted INSIDE an inline-open fence no longer reads as a final answer. - _DIRECT_NUMBERED_PLAN_FRAMING adds "first" and "step N(:?)" to its intent prefixes and "look up" to its verb whitelist. Plans like "First, analyze the uploaded CSV:\n1. Load rows\n2. Compute total" or "I'll look that up:\n1. Search the docs" now re-prompt instead of being mis-classified as final answers. The verb whitelist still excludes bare search/find/check/verify so "First, use binary search:\n1. Search the left half" stays an answer. |
||
|---|---|---|
| .. | ||
| data_recipe | ||
| export | ||
| inference | ||
| training | ||
| __init__.py | ||
| tool_healing.py | ||