Skip to content

fix: Keep fenced headings inside the task prompt - #406

Open
alex-ht wants to merge 1 commit into
pinchbench:mainfrom
alex-ht:patch-input
Open

alex-ht wants to merge 1 commit into
pinchbench:mainfrom
alex-ht:patch-input

Conversation

@alex-ht

@alex-ht alex-ht commented Sep 29, 2026

Copy link
Copy Markdown

Summary

  • Section parsing treated ## lines inside a sample code fence as new sections, so task_polymarket_briefing was sent to the agent without the odds template.
  • Fenced blocks (``` / ~~~) are now kept in the current section, and a regression test covers both a synthetic prompt and the real polymarket task.

Test plan

  • python -m unittest tests.test_lib_tasks (2 tests, both pass)

Section parsing treated ## lines in a sample code block as new sections, so task_polymarket_briefing was sent without the odds template.
@alex-ht alex-ht changed the title Keep fenced headings inside the task prompt fix: Keep fenced headings inside the task prompt Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant