agent: dedupe transcript scanning in opencode and copilot-cli
main·
Commit

opencode's ExtractModifiedFilesFromOffset and ExtractModifiedFiles repeated the assistant-message/tool-part file collection loop — extract modifiedFilesFromMessages and call it from both. copilot-cli's summary and model extraction repeated the scan-newest-first/unmarshal/return pattern three times — extract lastEventField[T] and express the model-change-then-tool-telemetry fallback as two calls. Covered by the existing transcript extraction tests in both packages.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com Entire-Checkpoint: 11253d4586b3
Checkpoints
/goal simplify this repo, make sure to de-slop it continue until you are happy, make sure to backfill tests and validate any significant change. The output of this should be a PR with green CI, review
Claude CodeFable 5
View sessionCheckpoint 1