diff options
| author | Adam Malczewski <[email protected]> | 2026-06-22 15:14:31 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-22 15:14:31 +0900 |
| commit | 0c7e7ceae36930e87fc30993f18e30cf54888295 (patch) | |
| tree | deae0cde3105e6cd22c1cd13f59b5524edad611c /src/core/protocol/reducer.ts | |
| parent | b7ea4b7325c02bf29046ab232411c053b36a99bd (diff) | |
| download | dispatch-web-0c7e7ceae36930e87fc30993f18e30cf54888295.tar.gz dispatch-web-0c7e7ceae36930e87fc30993f18e30cf54888295.zip | |
feat: consume context window + percentage-based compact handoff
1. Real context window: GET /models now returns modelInfo[model].contextWindow.
The Composer uses this instead of the hardcoded MAX_CONTEXT = 1,000,000.
Falls back to 1M when modelInfo is absent or the model has no contextWindow.
2. Percentage-based auto-compact: the compact-threshold endpoint is renamed
to compact-percent. The CompactionView now shows a percent input (0-100,
default 85, 0 = manual) instead of a token count input. Types renamed:
CompactThresholdResponse → CompactPercentResponse,
SetCompactThresholdRequest → SetCompactPercentRequest.
Note: the field name in the backend types is still 'threshold' (not
'percent') — the FE maps between them.
Re-mirrored .dispatch/transport-contract.reference.md.
686 tests green. 0 svelte-check errors + warnings.
Diffstat (limited to 'src/core/protocol/reducer.ts')
0 files changed, 0 insertions, 0 deletions
