refactor: split opencode runtime and tests #18
Reference in New Issue
Block a user
Delete Branch "refactor/split-opencode-modules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n\n- reduce to a 674-line compatibility and orchestration seam\n- split workspace preparation, lens configuration, lens execution, runtime, and synthesis into focused modules\n- split the 957-line opencode test monolith into workspace, lenses, and response test suites\n- update architecture and webhook documentation to match the current module layout\n- preserve compatibility exports and existing monkeypatch seams\n\n## Verification\n\n- \n- ........................................................................ [ 13%]
........................................................................ [ 27%]
........................................................................ [ 41%]
........................................................................ [ 55%]
........................................................................ [ 69%]
........................................................................ [ 83%]
........................................................................ [ 97%]
............ [100%]
516 passed in 22.19s\n- 516 tests passed\n- passed
🤖 AI Review · pragent pilot · headroom/MiniMax-M2.7 ·
f485d9fa· Merge confidence: 5/5 🟢Summary of Changes
pilot/review/opencode.pyinto five focused modules:opencode_workspace,opencode_lens_config,opencode_lenses,opencode_runtime, andopencode_synthesispilot/opencode_review.pyas a 5-line compatibility shim re-exportingreview.opencodefor existing callersdocs/architecture.md), webhook README, and main README to reflect the new module layoutopencode_lenses_test.pyandopencode_response_test.pycovering synthesis, lens config, and response formattingKey Risks & Concerns
opencode_lens_config.pywaste tokens and indicate a copy-paste error — the second_coerce_str/_coerce_intdefinitions completely shadow the first with identical bodiespilot/opencode_review.pyhides the actual module path — any future refactor that removes the shim would breakpilot/review/pipeline.py'simport opencode_reviewwithout a migration step🔋 AI Usage & Run Details
headroom/MiniMax-M2.7· opencode · 12 steps · 379.7sPull request closed