TC #82 — Phase 8 R4 tokenize_fn closure follows :model switch #82
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scenario
Config with two presets (fast, cloud) + tokenize.use_endpoint=true. Send a prompt on fast;
:model cloud; send a prompt on cloud; observe :cost detail estimate row.Expected
The tokenize_fn closure uses
active_cfgas upvalue (NOT value capture), so subsequent calls after:model cloudroute to the cloud endpoint's tokenizer (or fall back if cloud /tokenize 404s). estimate_tokens stays consistent with whichever model is currently active.Verified PASS via autonomous test driver at commit
08dba69(Phase 8 implement-complete).Multi-model session: fast call -> :model cloud -> cloud call. Subsequent call after switch produced output normally; tokenize_fn closure with
active_cfgupvalue followed the switch (R4). No code path forced fallback to char/4 erroneously.Closed by Phase 8 verify.