docs: align engine terminology in telegram and docs (#162)

This commit is contained in:
banteg
2026-01-17 13:55:49 +04:00
committed by GitHub
parent 0818e848b3
commit 9d7c6fcd8c
26 changed files with 64 additions and 63 deletions
@@ -62,7 +62,7 @@ async def test_agent_show_private_defaults() -> None:
)
text = _last_text(transport)
assert "agent: codex" in text
assert "engine: codex" in text
assert "available: codex" in text
@@ -83,7 +83,7 @@ async def test_agent_set_clear_group_admin(tmp_path: Path) -> None:
)
assert await prefs.get_default_engine(msg.chat_id) == "codex"
assert "chat default agent set" in _last_text(transport)
assert "chat default engine set" in _last_text(transport)
await _handle_agent_command(
cfg,
@@ -95,7 +95,7 @@ async def test_agent_set_clear_group_admin(tmp_path: Path) -> None:
)
assert await prefs.get_default_engine(msg.chat_id) is None
assert "chat default agent cleared" in _last_text(transport)
assert "chat default engine cleared" in _last_text(transport)
@pytest.mark.anyio
@@ -135,7 +135,7 @@ async def test_agent_set_invalid_engine(tmp_path: Path) -> None:
text = _last_text(transport)
assert "unknown engine" in text
assert "available agents" in text
assert "available engines" in text
@pytest.mark.anyio
+2 -2
View File
@@ -50,7 +50,7 @@ def test_build_startup_message_includes_missing_engines(tmp_path: Path) -> None:
)
assert "takopi is ready" in message
assert "agents: `codex (not installed: pi)`" in message
assert "engines: `codex (not installed: pi)`" in message
assert "projects: `none`" in message
@@ -92,7 +92,7 @@ def test_build_startup_message_surfaces_unavailable_engine_reasons(
topics=TelegramTopicsSettings(),
)
assert "agents: `codex" in message
assert "engines: `codex" in message
assert "misconfigured: pi" in message
assert "failed to load: claude" in message
+1 -1
View File
@@ -136,7 +136,7 @@ def test_build_bot_commands_includes_cancel_and_engine() -> None:
assert {"command": "file", "description": "upload or fetch files"} in commands
assert {"command": "new", "description": "start a new thread"} in commands
assert {"command": "ctx", "description": "show or update context"} in commands
assert {"command": "agent", "description": "set default agent"} in commands
assert {"command": "agent", "description": "set default engine"} in commands
assert any(cmd["command"] == "codex" for cmd in commands)