Skip to content

fix: resolve 16 code review bugs + 25 regression tests#12

Merged
e6qu merged 1 commit intodevfrom
fix/code-review-bugs
Mar 17, 2026
Merged

fix: resolve 16 code review bugs + 25 regression tests#12
e6qu merged 1 commit intodevfrom
fix/code-review-bugs

Conversation

@e6qu
Copy link
Copy Markdown
Owner

@e6qu e6qu commented Mar 17, 2026

Summary

Fixes all 16 active bugs from the 2026-03-17 code review across 6 files, with 25 new regression tests.

Test plan

  • bun typecheck — clean
  • bun test — 1401 pass, 0 fail (25 new tests)
  • New test files: test/tool/verify.test.ts, test/tool/refine.test.ts, test/tool/scripts.test.ts, test/skill/skill-cache.test.ts
  • New tests in test/agent/agent.test.ts for evaluator/optimizer permissions

…l, agent

Circuit breaker (#21-27): move lastFailure before throw, add recordSuccess(),
rename open→healthy, increase cooldown to 30s, remove unused params, use
bash -c for commands, mergeDeep for config.

Refine tool (#28-31): build change summary from parent session messages,
remove tools:{} blocking agent access, extract <evaluation> block before
parsing + NaN guard, try/finally session cleanup.

Scripts (#34-35): insert -- before user args, use :: separator for tool IDs.

Skill (#33): add content cache in loadContent(), cleared on state reload.

Agent (#36): remove bash from evaluator permissions.

Command (#32): by design — added comment, no code change.

Adds 25 new tests covering all fixed bugs.
@e6qu e6qu merged commit d0e519b into dev Mar 17, 2026
1 check passed
@e6qu e6qu deleted the fix/code-review-bugs branch March 17, 2026 19:42
e6qu added a commit that referenced this pull request Mar 18, 2026
…l, agent (#12)

Circuit breaker (#21-27): move lastFailure before throw, add recordSuccess(),
rename open→healthy, increase cooldown to 30s, remove unused params, use
bash -c for commands, mergeDeep for config.

Refine tool (#28-31): build change summary from parent session messages,
remove tools:{} blocking agent access, extract <evaluation> block before
parsing + NaN guard, try/finally session cleanup.

Scripts (#34-35): insert -- before user args, use :: separator for tool IDs.

Skill (#33): add content cache in loadContent(), cleared on state reload.

Agent (#36): remove bash from evaluator permissions.

Command (#32): by design — added comment, no code change.

Adds 25 new tests covering all fixed bugs.

Co-authored-by: Adrian Mârza <adi11235 at gmail dot com>
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