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 | 1b514ed6ac12008c616b10bfe0e9654857612b26 (patch) | |
| tree | 2a299a5a6cb75a3f6be2ab5fc2a29dc83cdd4edf /src/features/tabs | |
| parent | 4b1b920e8bc557a592f505a4619062b1067a233e (diff) | |
| download | dispatch-web-1b514ed6ac12008c616b10bfe0e9654857612b26.tar.gz dispatch-web-1b514ed6ac12008c616b10bfe0e9654857612b26.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/features/tabs')
0 files changed, 0 insertions, 0 deletions
