From fc1817caa5ee08a1dd796222f284a5c4200e6f25 Mon Sep 17 00:00:00 2001 From: Vincent G <10739306+VinceOPS@users.noreply.github.com> Date: Tue, 9 Dec 2025 21:46:38 +0100 Subject: [PATCH] v1.0.5 --- .vscode/launch.json | 20 +++++++++++++++---- CHANGELOG.md | 4 ++++ distribution/zed/extension.toml | 14 ++++++------- pyproject.toml | 2 +- tests/acp/test_acp.py | 2 +- tests/snapshots/base_snapshot_test_app.py | 1 + ...ui_snapshot_release_update_notification.py | 6 +++++- uv.lock | 2 +- vibe/core/__init__.py | 2 +- vibe/core/llm/backend/generic.py | 5 +++++ 10 files changed, 42 insertions(+), 16 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 34f28ba..53a02b4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,12 +1,15 @@ { - "version": "1.0.4", + "version": "1.0.5", "configurations": [ { "name": "ACP Server", "type": "debugpy", "request": "launch", "program": "vibe/acp/entrypoint.py", - "args": ["--workdir", "${workspaceFolder}"], + "args": [ + "--workdir", + "${workspaceFolder}" + ], "console": "integratedTerminal", "justMyCode": false }, @@ -15,7 +18,10 @@ "type": "debugpy", "request": "launch", "module": "pytest", - "args": ["-v", "-s"], + "args": [ + "-v", + "-s" + ], "console": "integratedTerminal", "justMyCode": false, "cwd": "${workspaceFolder}", @@ -28,7 +34,13 @@ "type": "debugpy", "request": "launch", "module": "pytest", - "args": ["-k", "${input:test_identifier}", "-vvv", "-s", "--no-header"], + "args": [ + "-k", + "${input:test_identifier}", + "-vvv", + "-s", + "--no-header" + ], "console": "integratedTerminal", "justMyCode": false, "cwd": "${workspaceFolder}", diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bbf0ed..430424f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,3 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Remove .envrc file - Rename agent in distribution/zed/extension.toml to mistral-vibe, fix icon and description + +## v1.0.5 + +- Fix streaming with OpenAI adapter diff --git a/distribution/zed/extension.toml b/distribution/zed/extension.toml index 12e7d2a..46d1fd0 100644 --- a/distribution/zed/extension.toml +++ b/distribution/zed/extension.toml @@ -1,7 +1,7 @@ id = "mistral-vibe" name = "Mistral Vibe" description = "Mistral's open-source coding assistant" -version = "1.0.4" +version = "1.0.5" schema_version = 1 authors = ["Mistral AI"] repository = "https://github.com/mistralai/mistral-vibe" @@ -11,25 +11,25 @@ name = "Mistral Vibe" icon = "./icons/mistral_vibe.svg" [agent_servers.mistral-vibe.targets.darwin-aarch64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-darwin-aarch64-1.0.4.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-darwin-aarch64-1.0.5.zip" cmd = "./vibe-acp" [agent_servers.mistral-vibe.targets.darwin-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-darwin-x86_64-1.0.4.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-darwin-x86_64-1.0.5.zip" cmd = "./vibe-acp" # [agent_servers.mistral-vibe.targets.linux-aarch64] -# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-linux-aarch64-1.0.4.zip" +# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-linux-aarch64-1.0.5.zip" # cmd = "./vibe-acp" [agent_servers.mistral-vibe.targets.linux-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-linux-x86_64-1.0.4.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-linux-x86_64-1.0.5.zip" cmd = "./vibe-acp" # [agent_servers.mistral-vibe.targets.windows-aarch64] -# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-windows-aarch64-1.0.4.zip" +# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-windows-aarch64-1.0.5.zip" # cmd = "./vibe-acp.exe" [agent_servers.mistral-vibe.targets.windows-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.4/vibe-acp-windows-x86_64-1.0.4.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-windows-x86_64-1.0.5.zip" cmd = "./vibe-acp.exe" diff --git a/pyproject.toml b/pyproject.toml index f20427a..c324b92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistral-vibe" -version = "1.0.4" +version = "1.0.5" description = "Minimal CLI coding agent by Mistral" readme = "README.md" requires-python = ">=3.12" diff --git a/tests/acp/test_acp.py b/tests/acp/test_acp.py index 7b3cf4f..587aa32 100644 --- a/tests/acp/test_acp.py +++ b/tests/acp/test_acp.py @@ -351,7 +351,7 @@ class TestInitialization: mcpCapabilities=McpCapabilities(http=False, sse=False), ) assert response.result.agentInfo == Implementation( - name="@mistralai/mistral-vibe", title="Mistral Vibe", version="1.0.4" + name="@mistralai/mistral-vibe", title="Mistral Vibe", version="1.0.5" ) vibe_setup_method = next( ( diff --git a/tests/snapshots/base_snapshot_test_app.py b/tests/snapshots/base_snapshot_test_app.py index 7d002fe..1d1551d 100644 --- a/tests/snapshots/base_snapshot_test_app.py +++ b/tests/snapshots/base_snapshot_test_app.py @@ -23,6 +23,7 @@ def default_config() -> VibeConfig: textual_theme="gruvbox", disable_welcome_banner_animation=True, displayed_workdir="/test/workdir", + enable_update_checks=False, ) diff --git a/tests/snapshots/test_ui_snapshot_release_update_notification.py b/tests/snapshots/test_ui_snapshot_release_update_notification.py index 756ce56..6a8be15 100644 --- a/tests/snapshots/test_ui_snapshot_release_update_notification.py +++ b/tests/snapshots/test_ui_snapshot_release_update_notification.py @@ -14,7 +14,11 @@ class SnapshotTestAppWithUpdate(BaseSnapshotTestApp): version_update_notifier = FakeVersionUpdateGateway( update=VersionUpdate(latest_version="1000.2.0") ) - super().__init__(config=config, version_update_notifier=version_update_notifier) + super().__init__( + config=config, + version_update_notifier=version_update_notifier, + current_version="1.0.4", + ) def test_snapshot_shows_release_update_notification(snap_compare: SnapCompare) -> None: diff --git a/uv.lock b/uv.lock index de23dfb..cc88afc 100644 --- a/uv.lock +++ b/uv.lock @@ -661,7 +661,7 @@ wheels = [ [[package]] name = "mistral-vibe" -version = "1.0.4" +version = "1.0.5" source = { editable = "." } dependencies = [ { name = "agent-client-protocol" }, diff --git a/vibe/core/__init__.py b/vibe/core/__init__.py index 36ec537..4d7dc2c 100644 --- a/vibe/core/__init__.py +++ b/vibe/core/__init__.py @@ -1,6 +1,6 @@ from __future__ import annotations __all__ = ["__version__", "run_programmatic"] -__version__ = "1.0.4" +__version__ = "1.0.5" from vibe.core.programmatic import run_programmatic diff --git a/vibe/core/llm/backend/generic.py b/vibe/core/llm/backend/generic.py index d4ae12d..2b8134a 100644 --- a/vibe/core/llm/backend/generic.py +++ b/vibe/core/llm/backend/generic.py @@ -122,6 +122,11 @@ class OpenAIAdapter(APIAdapter): model_name, converted_messages, temperature, tools, max_tokens, tool_choice ) + if enable_streaming: + payload["stream"] = True + if provider.name == "mistral": + payload["stream_options"] = {"stream_tool_calls": True} + headers = self.build_headers(api_key) body = json.dumps(payload).encode("utf-8")