mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-18 07:58:27 +00:00
test: align reactive compaction regex and keep playground provider-write assertion
- reactive-context-compaction-policy: last-resort guard now compares against
effectiveCompactionCeiling (same as codex-prompt-compression-passthrough).
- v388-phase4-playground: replace the removed update("provider" assertion with
the current provider: nextProvider write so the assert count stays 17.
This commit is contained in:
@@ -19,6 +19,6 @@ test("global compression off gates reactive and last-resort context compaction",
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/reactiveContextCompactionEnabled\s*&&\s*!nativeCodexPassthrough\s*&&\s*finalEstimatedInputTokens\s*>=\s*finalContextLimit/
|
||||
/reactiveContextCompactionEnabled\s*&&\s*!nativeCodexPassthrough\s*&&\s*finalEstimatedInputTokens\s*>=\s*effectiveCompactionCeiling/
|
||||
);
|
||||
});
|
||||
|
||||
@@ -12,7 +12,9 @@ test("playground config: adds Provider + Model selects reusing translator hooks"
|
||||
assert.ok(src.includes("useProviderOptions"), "reuses useProviderOptions");
|
||||
assert.ok(src.includes("useAvailableModels"), "reuses useAvailableModels");
|
||||
// Provider/model writes are exercised through real change events in
|
||||
// ui/playground-config-state-regression.test.tsx; no setter spelling contract.
|
||||
// ui/playground-config-state-regression.test.tsx; this only pins that the
|
||||
// selected provider still lands in ConfigState.
|
||||
assert.ok(src.includes("provider: nextProvider"), "writes provider into ConfigState");
|
||||
assert.ok(src.includes("provider?: string"), "ConfigState gains provider");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user