v2.15.0 (#773)
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:
parent
702d0f412e
commit
cafb6d4147
247 changed files with 12401 additions and 3029 deletions
|
|
@ -226,6 +226,25 @@ async def test_rewind_skips_command_messages() -> None:
|
|||
assert app._rewind_highlighted_widget.get_content() == "hello"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_rewind_edits_uncommitted_user_message() -> None:
|
||||
app = _make_app()
|
||||
async with app.run_test() as pilot:
|
||||
await app._mount_and_scroll(UserMessage("first", message_index=1))
|
||||
await pilot.pause(0.1)
|
||||
|
||||
await pilot.press("alt+up")
|
||||
await pilot.app.workers.wait_for_complete()
|
||||
await pilot.pause(0.1)
|
||||
await pilot.press("enter")
|
||||
await pilot.app.workers.wait_for_complete()
|
||||
await pilot.pause(0.1)
|
||||
|
||||
chat_input = app.query_one(ChatInputContainer)
|
||||
assert app._rewind_mode is False
|
||||
assert chat_input.value == "first"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_rewind_does_not_activate_while_agent_running() -> None:
|
||||
app = _make_app()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue