fix(models): make tier-change listener registration non-destructive

This commit is contained in:
William Valentin
2026-02-15 21:58:55 -08:00
parent 8709c3c9b4
commit c314e0f067
4 changed files with 32 additions and 1 deletions
+12
View File
@@ -2512,6 +2512,18 @@
"docs/plans/analysis/2026-02-16-codebase-audit-report.md"
],
"test_status": "pnpm test:run src/channels/whatsapp/adapter.test.ts src/config/schema.test.ts + pnpm typecheck passing"
},
"audit-followup-modelrouter-listeners": {
"status": "completed",
"date": "2026-02-16",
"updated": "2026-02-16",
"summary": "Removed ModelRouter tier-change listener setter footgun: setOnTierChange now appends instead of replacing existing listeners, with regression test coverage.",
"files_modified": [
"src/models/router.ts",
"src/models/router.test.ts",
"docs/plans/analysis/2026-02-16-codebase-audit-report.md"
],
"test_status": "pnpm test:run src/models/router.test.ts + pnpm typecheck passing"
}
},
"overall_progress": {