harb/tools
openhands 34b016a190 fix: Body extraction stops at first shallow closing brace (#809)
Replace the }` heuristic in inject.sh with a brace-depth counter:
start at depth=1 after the opening {, increment on {, decrement on },
stop when depth reaches 0. This correctly handles nested if/else blocks,
loops, and structs that close at 4-space indent inside calculateParams.

Also emit a non-zero exit with a descriptive message if EOF is reached
without finding the matching closing brace.

Add test_inject_extraction.sh covering simple bodies, nested if/else,
multi-level nesting, and the EOF-without-match error case.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 00:21:06 +00:00
..
push3-evolution fix: Fitness re-evaluation for fixed evo_run007_champion (#811) 2026-03-15 23:21:04 +00:00
push3-transpiler fix: Body extraction stops at first shallow closing brace (#809) 2026-03-16 00:21:06 +00:00
deploy-optimizer.sh fix: add --tc DeployLocal to forge script invocations 2026-03-12 23:12:25 +00:00