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:
diegosouzapw
2026-10-17 10:20:43 -03:00
parent c950c91650
commit 1bd158a487
2 changed files with 4 additions and 2 deletions

View File

@@ -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/
);
});

View File

@@ -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");
});