Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)
Python
Added optimization logging
Alishahryar17f2612d2df45
diff --git a/api/optimization_handlers.py b/api/optimization_handlers.pyindex 164c5352..e01517ea 100644--- a/api/optimization_handlers.py+++ b/api/optimization_handlers.py@@ -33,6 +33,7 @@ def try_prefix_detection(if not is_prefix_req:return None+ logger.info("Optimization: Fast prefix detection request")return MessagesResponse(id=f"msg_{uuid.uuid4()}",model=request_data.model,diff --git a/tests/api/test_optimization_handlers.py b/tests/api/test_optimization_handlers.pyindex 25b4a5f4..fb15d016 100644--- a/tests/api/test_optimization_handlers.py+++ b/tests/api/test_optimization_handlers.py@@ -49,12 +49,16 @@ class TestTryPrefixDetection:"api.optimization_handlers.extract_command_prefix",return_value="/ask",),+ patch("api.optimization_handlers.logger.info") as mock_log_info,):result = try_prefix_detection(req, settings)assert result is not Noneblock = result.content[0]assert isinstance(block, ContentBlockText)assert block.text == "/ask"+ mock_log_info.assert_called_once_with(+ "Optimization: Fast prefix detection request"+ )def test_enabled_but_no_match_returns_none(self):settings = Settings()