Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com>
Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai>
Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai>
Co-authored-by: Nelson PROIA <144663685+Nelson-PROIA@users.noreply.github.com>
Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com>
Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai>
Co-authored-by: Quentin <quentin.torroba@mistral.ai>
Co-authored-by: Val <102326092+vdeva@users.noreply.github.com>
Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com>
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
Guillaume LE GOFF 2026-06-12 13:16:04 +02:00 committed by GitHub
parent 702d0f412e
commit cafb6d4147
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
247 changed files with 12401 additions and 3029 deletions

View file

@ -129,3 +129,30 @@ async def test_skill_without_args_does_not_prepend_invocation_line(
vibe_app_with_skills, pilot, "Do the thing."
)
assert "/my-skill" not in message._content
@pytest.mark.asyncio
async def test_popped_queued_skill_does_not_fire_telemetry(
vibe_app_with_skills: VibeApp, monkeypatch: pytest.MonkeyPatch
) -> None:
async with vibe_app_with_skills.run_test() as pilot:
events: list[tuple[str, str]] = []
monkeypatch.setattr(
vibe_app_with_skills.agent_loop.telemetry_client,
"send_slash_command_used",
lambda name, kind: events.append((name, kind)),
)
chat_input = vibe_app_with_skills.query_one(ChatInputContainer)
vibe_app_with_skills._agent_running = True
try:
chat_input.post_message(ChatInputContainer.Submitted("/my-skill"))
await pilot.pause(0.1)
assert len(vibe_app_with_skills._input_queue) == 1
await pilot.press("ctrl+c")
await pilot.pause(0.1)
assert len(vibe_app_with_skills._input_queue) == 0
assert events == []
finally:
vibe_app_with_skills._agent_running = False