singularity-forge/packages/pi-coding-agent/src
Flux Labs d35ae683f1 Fix #453 native hangs in GSD auto-mode paths (#502)
* fix: avoid native hangs in gsd auto paths

* fix: use .js extension in edit-diff.test.ts import for tsc compatibility

* fix: prevent OOM on large file diffs and implement context-line windowing

- Add size guard (MAX_DP_CELLS=4M) to buildLineDiff that falls back to a
  linear-time prefix/suffix matching algorithm for large files, preventing
  the O(n*m) DP table from causing OOM crashes
- Implement contextLines parameter in generateDiffString so only lines
  within N lines of a change are rendered (with "..." separators), matching
  unified diff behavior — the parameter was previously accepted but ignored
- Add tests for both context windowing and large-file fallback

---------

Co-authored-by: TÂCHES <afromanguy@me.com>
2026-03-15 22:22:58 -06:00
..
cli chore(M003/S04): auto-commit after reassess-roadmap 2026-03-15 08:33:13 -06:00
core Fix #453 native hangs in GSD auto-mode paths (#502) 2026-03-15 22:22:58 -06:00
modes Fix #453 native hangs in GSD auto-mode paths (#502) 2026-03-15 22:22:58 -06:00
resources/extensions/memory fix: replace better-sqlite3 with sql.js (WASM) to fix install on Node 25+ (#356) 2026-03-14 07:41:24 -06:00
utils feat: wire native Rust image module into image processing pipeline 2026-03-13 13:41:53 -06:00
cli.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
config.ts perf: fix synchronous I/O in hot paths (#540) 2026-03-15 16:57:22 -06:00
index.ts feat: memory extraction pipeline (#261) 2026-03-13 16:41:13 -06:00
main.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00
migrations.ts feat: vendor Pi source into workspace monorepo 2026-03-12 21:55:17 -06:00