AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(backend): upgrade redis-py to 8.1 so a dropped cluster connection no longer poisons the client (#14334)
Bentlya56509ca9b49
diff --git a/autogpt_platform/autogpt_libs/poetry.lock b/autogpt_platform/autogpt_libs/poetry.lockindex a8fcbf7cf0..2d4f11da68 100644--- a/autogpt_platform/autogpt_libs/poetry.lock+++ b/autogpt_platform/autogpt_libs/poetry.lock@@ -1,4 +1,4 @@-# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand.+# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand.[[package]]name = "annotated-doc"@@ -67,7 +67,7 @@ description = "Backport of asyncio.Runner, a context manager that controls eventoptional = falsepython-versions = "<3.11,>=3.8"groups = ["dev"]-markers = "python_version < \"3.11\""+markers = "python_version == \"3.10\""files = [{file = "backports_asyncio_runner-1.2.0-py3-none-any.whl", hash = "sha256:0da0a936a8aeb554eccb426dc55af3ba63bcdc69fa1a600b5bb305413a4477b5"},{file = "backports_asyncio_runner-1.2.0.tar.gz", hash = "sha256:a5aa7b2b7d8f8bfcaa2b57313f70792df84e32a2a746f585213373f900b42162"},@@ -511,7 +511,7 @@ description = "Backport of PEP 654 (exception groups)"optional = falsepython-versions = ">=3.7"groups = ["main", "dev"]-markers = "python_version < \"3.11\""+markers = "python_version == \"3.10\""files = [{file = "exceptiongroup-1.3.0-py3-none-any.whl", hash = "sha256:4d111e6e0c13d0644cad6ddaa7ed0261a0b36971f6d23e7ec9b4b9097da78a10"},{file = "exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88"},@@ -1405,23 +1405,26 @@ cli = ["click (>=5.0)"][[package]]name = "redis"-version = "6.2.0"+version = "8.1.0"description = "Python client for Redis database and key-value store"optional = false-python-versions = ">=3.9"+python-versions = ">=3.10"groups = ["main"]files = [- {file = "redis-6.2.0-py3-none-any.whl", hash = "sha256:c8ddf316ee0aab65f04a11229e94a64b2618451dab7a67cb2f77eb799d872d5e"},- {file = "redis-6.2.0.tar.gz", hash = "sha256:e821f129b75dde6cb99dd35e5c76e8c49512a5a0d8dfdc560b2fbd44b85ca977"},+ {file = "redis-8.1.0-py3-none-any.whl", hash = "sha256:a4fe1aac3d3b3cc791d4b3d5931c5a956045dc951ee74d1c913ee3ac4d2ee9fb"},+ {file = "redis-8.1.0.tar.gz", hash = "sha256:6e1a19beef9225c83efd689c7e6b7da2d5215b1f42cd13b7fc3714d0a09c7b25"},][package.dependencies]async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""}[package.extras]+circuit-breaker = ["pybreaker (>=1.4.0)"]hiredis = ["hiredis (>=3.2.0)"]-jwt = ["pyjwt (>=2.9.0)"]+jwt = ["pyjwt (>=2.13.0)"]ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"]+otel = ["opentelemetry-api (>=1.39.1)", "opentelemetry-exporter-otlp-proto-http (>=1.39.1)", "opentelemetry-sdk (>=1.39.1)"]+xxhash = ["xxhash (>=3.6.0,<3.7.0)"][[package]]name = "requests"@@ -1526,7 +1529,7 @@ description = "A lil' TOML parser"optional = falsepython-versions = ">=3.8"groups = ["dev"]-markers = "python_version < \"3.11\""+markers = "python_version == \"3.10\""files = [{file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"},{file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"},@@ -1630,4 +1633,4 @@ type = ["pytest-mypy"][metadata]lock-version = "2.1"python-versions = ">=3.10,<4.0"-content-hash = "ed52bcfc3cea8347fc133485d4db0ed112a41bfed2de67c9ace66b003d6d1ef1"+content-hash = "147b1eb5c05afc432e651b72bf62f6debf08988c440ccce69eb25f3425bcfb23"diff --git a/autogpt_platform/autogpt_libs/pyproject.toml b/autogpt_platform/autogpt_libs/pyproject.tomlindex 7f665c457a..ed30dd6d8e 100644--- a/autogpt_platform/autogpt_libs/pyproject.toml+++ b/autogpt_platform/autogpt_libs/pyproject.toml@@ -16,7 +16,7 @@ google-cloud-logging = "^3.13.0"pydantic = "^2.12.5"pydantic-settings = "^2.12.0"pyjwt = { version = "^2.11.0", extras = ["crypto"] }-redis = "^6.2.0"+redis = "^8.1.0"[tool.poetry.group.dev.dependencies]httpx = "^0.28.1"diff --git a/autogpt_platform/backend/backend/copilot/model.py b/autogpt_platform/backend/backend/copilot/model.pyindex fcfcf829a7..fe454901c1 100644--- a/autogpt_platform/backend/backend/copilot/model.py+++ b/autogpt_platform/backend/backend/copilot/model.py@@ -877,7 +877,7 @@ async def _get_session_from_cache(session_id: str) -> ChatSession | None:"""Get a chat session from Redis cache."""redis_key = _get_session_cache_key(session_id)async_redis = await get_redis_async()- raw_session: bytes | None = await async_redis.get(redis_key)+ raw_session = await async_redis.get(redis_key)if raw_session is None:return Nonediff --git a/autogpt_platform/backend/backend/copilot/stream_registry.py b/autogpt_platform/backend/backend/copilot/stream_registry.pyindex 8f983fa3dc..c58107ed1c 100644--- a/autogpt_platform/backend/backend/copilot/stream_registry.py+++ b/autogpt_platform/backend/backend/copilot/stream_registry.py@@ -17,7 +17,7 @@ Subscribers:import asyncioimport loggingimport time-from collections.abc import AsyncGenerator+from collections.abc import AsyncGenerator, Iterable, Mappingfrom dataclasses import dataclass, fieldfrom datetime import datetime, timezonefrom typing import Any, Literal@@ -34,7 +34,7 @@ from backend.data.notification_bus import (NotificationEvent,)from backend.data.redis_client import get_redis_async-from backend.data.redis_helpers import hash_compare_and_set+from backend.data.redis_helpers import as_str, hash_compare_and_setfrom .config import ChatConfigfrom .constants import STREAM_LOCK_PREFIX@@ -70,6 +70,40 @@ logger = logging.getLogger(__name__)config = ChatConfig()_notification_bus = AsyncRedisNotificationEventBus()+StreamEntries = list[tuple[str, list[tuple[str, dict[str, str]]]]]+++def _as_text(value: bytes | str | None) -> str:+ return as_str(value) or ""+++def _stream_entries(+ messages: Mapping[Any, Any] | Iterable[Any] | None,+) -> StreamEntries:+ """Normalise an XREAD result to ``[(stream, [(id, {field: value})])]``.++ RESP2 answers with a list of ``(stream, entries)`` pairs and RESP3 with a+ ``{stream: entries}`` mapping; the client here decodes responses, but the+ library types still allow ``bytes`` and ``None``, so every id, field and+ value is coerced to ``str`` once, up front.+ """+ if not messages:+ return []+ pairs = messages.items() if isinstance(messages, Mapping) else messages+ entries: StreamEntries = []+ for stream, raw_entries in pairs:+ decoded: list[tuple[str, dict[str, str]]] = []+ for msg_id, fields in raw_entries or ():+ decoded.append(+ (+ _as_text(msg_id),+ {_as_text(k): _as_text(v) for k, v in (fields or {}).items()},+ )+ )+ entries.append((_as_text(stream), decoded))+ return entries++# Track background tasks for this pod (just the asyncio.Task reference, not subscribers)_local_sessions: dict[str, asyncio.Task] = {}@@ -545,20 +579,19 @@ async def subscribe_to_session(replayed_count = 0replay_last_id = last_message_id- if messages:- for _stream_name, stream_messages in messages:- for msg_id, msg_data in stream_messages:- replay_last_id = msg_id if isinstance(msg_id, str) else msg_id.decode()- # Note: Redis client uses decode_responses=True, so keys are strings- if "data" in msg_data:- try:- chunk_data = orjson.loads(msg_data["data"])- chunk = _reconstruct_chunk(chunk_data)- if chunk:- await subscriber_queue.put(chunk)- replayed_count += 1- except Exception as e:- logger.warning(f"Failed to replay message: {e}")+ for _stream_name, stream_messages in _stream_entries(messages):+ for msg_id, msg_data in stream_messages:+ replay_last_id = msg_id+ # Note: Redis client uses decode_responses=True, so keys are strings+ if "data" in msg_data:+ try:+ chunk_data = orjson.loads(msg_data["data"])+ chunk = _reconstruct_chunk(chunk_data)+ if chunk:+ await subscriber_queue.put(chunk)+ replayed_count += 1+ except Exception as e:+ logger.warning(f"Failed to replay message: {e}")logger.info(f"[TIMING] Replayed {replayed_count} messages, last_id={replay_last_id}",@@ -655,13 +688,13 @@ async def _stream_listener(# Short timeout prevents frontend timeout (12s) while waiting for heartbeats (15s)xread_start = time.perf_counter()xread_count += 1- messages = await redis.xread(- {stream_key: current_id}, block=5000, count=100+ entries = _stream_entries(+ await redis.xread({stream_key: current_id}, block=5000, count=100))xread_time = (time.perf_counter() - xread_start) * 1000- if messages:- msg_count = sum(len(msgs) for _, msgs in messages)+ if entries:+ msg_count = sum(len(msgs) for _, msgs in entries)logger.info(f"[TIMING] xread #{xread_count} returned {msg_count} messages in {xread_time:.1f}ms",extra={@@ -687,7 +720,7 @@ async def _stream_listener(},)- if not messages:+ if not entries:# Timeout - check if session is still runningmeta_key = _get_session_meta_key(session_id)status = await redis.hget(meta_key, "status") # type: ignore[misc]@@ -716,9 +749,9 @@ async def _stream_listener()continue- for _stream_name, stream_messages in messages:+ for _stream_name, stream_messages in entries:for msg_id, msg_data in stream_messages:- current_id = msg_id if isinstance(msg_id, str) else msg_id.decode()+ current_id = msg_idif "data" not in msg_data:continue@@ -1132,10 +1165,9 @@ async def get_active_session(stream_key = _get_turn_stream_key(session.turn_id)last_id = "0-0"try:- messages = await redis.xrevrange(stream_key, count=1)- if messages:- msg_id = messages[0][0]- last_id = msg_id if isinstance(msg_id, str) else msg_id.decode()+ newest = await redis.xrevrange(stream_key, count=1)+ if newest:+ last_id = _as_text(newest[0][0]) or last_idexcept Exception as e:logger.warning(f"Failed to get last message ID: {e}")diff --git a/autogpt_platform/backend/backend/copilot/stream_registry_test.py b/autogpt_platform/backend/backend/copilot/stream_registry_test.pyindex 891ecee3f1..c33663dff2 100644--- a/autogpt_platform/backend/backend/copilot/stream_registry_test.py+++ b/autogpt_platform/backend/backend/copilot/stream_registry_test.py@@ -666,3 +666,63 @@ class TestEveryPartSurvivesReplay:missing.append(f"{name} ({default.value})")assert not missing, f"parts that cannot survive replay: {missing}"+++class TestStreamEntries:+ def test_resp2_list_shape_is_normalised(self):+ raw = [("stream-key", [("1-0", {"data": "x"}), (b"2-0", {b"data": b"y"})])]+ assert stream_registry._stream_entries(raw) == [+ ("stream-key", [("1-0", {"data": "x"}), ("2-0", {"data": "y"})])+ ]++ def test_resp3_dict_shape_is_normalised(self):+ raw = {b"stream-key": [("1-0", {"data": "x"})]}+ assert stream_registry._stream_entries(raw) == [+ ("stream-key", [("1-0", {"data": "x"})])+ ]++ def test_empty_and_none_yield_nothing(self):+ assert stream_registry._stream_entries(None) == []+ assert stream_registry._stream_entries([]) == []+ assert stream_registry._stream_entries([("s", None)]) == [("s", [])]+++class _StreamFakeRedis(_FakeRedis):+ """_FakeRedis plus the stream read get_active_session makes."""++ def __init__(self, meta: dict[str, str], newest):+ super().__init__(meta)+ self._newest = newest+ self.xrevrange = AsyncMock(return_value=newest)+++async def test_get_active_session_reads_last_id_from_the_turn_stream():+ fake_redis = _StreamFakeRedis(+ {"status": "running", "turn_id": "turn-1", "user_id": "user-1"},+ newest=[(b"7-0", {b"data": b"{}"})],+ )+ with patch.object(+ stream_registry, "get_redis_async", new=AsyncMock(return_value=fake_redis)+ ):+ session, last_id = await stream_registry.get_active_session(+ "sess-1", user_id="user-1"+ )++ assert session is not None+ assert session.turn_id == "turn-1"+ assert last_id == "7-0"+ fake_redis.xrevrange.assert_awaited_once()+++async def test_get_active_session_falls_back_when_the_stream_is_empty():+ fake_redis = _StreamFakeRedis(+ {"status": "running", "turn_id": "turn-1"}, newest=None+ )+ with patch.object(+ stream_registry, "get_redis_async", new=AsyncMock(return_value=fake_redis)+ ):+ _session, last_id = await stream_registry.get_active_session("sess-1")++ assert last_id == "0-0"diff --git a/autogpt_platform/backend/backend/data/redis_helpers.py b/autogpt_platform/backend/backend/data/redis_helpers.pyindex 99fee54a8a..bbdaa0a220 100644--- a/autogpt_platform/backend/backend/data/redis_helpers.py+++ b/autogpt_platform/backend/backend/data/redis_helpers.py@@ -153,6 +153,18 @@ return 1"""+def as_str(value: bytes | str | None) -> str | None:+ """Coerce a value read back from Redis to ``str``.++ Our clients decode responses, but redis-py types every read as+ ``bytes | str | None``; this keeps that knowledge in one place instead of+ an ``isinstance`` at every call site.+ """+ if value is None:+ return None+ return value if isinstance(value, str) else value.decode()++async def incr_with_ttl(redis: AsyncRedisClient,key: str,diff --git a/autogpt_platform/backend/backend/data/redis_helpers_test.py b/autogpt_platform/backend/backend/data/redis_helpers_test.pyindex bfcd69e3ee..9ce31d7faf 100644--- a/autogpt_platform/backend/backend/data/redis_helpers_test.py+++ b/autogpt_platform/backend/backend/data/redis_helpers_test.py@@ -10,6 +10,7 @@ from typing import Anyimport pytestfrom backend.data.redis_helpers import (+ as_str,capped_rpush,capped_rpush_if_hash_field,claim_batch_dispatch_atomic,@@ -423,3 +424,10 @@ async def test_claim_tombstones_age_out_individually() -> None:"{llm:batch}:dispatched:a","{llm:batch}:dispatched:b",]+++class TestAsStr:+ def test_str_bytes_and_none(self):+ assert as_str("x") == "x"+ assert as_str(b"x") == "x"+ assert as_str(None) is Nonediff --git a/autogpt_platform/backend/backend/data/tally.py b/autogpt_platform/backend/backend/data/tally.pyindex bd90166761..ab40e16418 100644--- a/autogpt_platform/backend/backend/data/tally.py+++ b/autogpt_platform/backend/backend/data/tally.py@@ -9,6 +9,7 @@ from typing import Optionalfrom openai.types.chat import ChatCompletionUserMessageParamfrom backend.data.redis_client import get_redis_async+from backend.data.redis_helpers import as_strfrom backend.data.understanding import (BusinessUnderstandingInput,get_business_understanding,@@ -213,7 +214,7 @@ async def _refresh_cache(form_id: str) -> tuple[dict, list]:index_key = _EMAIL_INDEX_KEY.format(form_id=form_id)questions_key = _QUESTIONS_KEY.format(form_id=form_id)- last_fetch = await redis.get(last_fetch_key)+ last_fetch = as_str(await redis.get(last_fetch_key))if last_fetch:# Try to load existing index for incremental mergediff --git a/autogpt_platform/backend/backend/data/tally_test.py b/autogpt_platform/backend/backend/data/tally_test.pyindex 15ffcf3537..c031c148b6 100644--- a/autogpt_platform/backend/backend/data/tally_test.py+++ b/autogpt_platform/backend/backend/data/tally_test.py@@ -6,6 +6,7 @@ from unittest.mock import AsyncMock, MagicMock, patchimport pytest+import backend.data.tally as tally_modulefrom backend.data.tally import (_EXTRACTION_PROMPT,_EXTRACTION_SUFFIX,@@ -646,3 +647,42 @@ async def test_fetch_tally_page_uses_provided_client():assert "form123" in call_urlassert "page=1" in call_urlassert result == {"submissions": [], "questions": []}+++async def test_refresh_cache_incremental_passes_last_fetch_as_str():+ existing_index = {"[email protected]": {"responses": [], "submitted_at": "x"}}+ values = {+ tally_module._LAST_FETCH_KEY.format(+ form_id="form123"+ ): b"2026-09-01T00:00:00+00:00",+ tally_module._EMAIL_INDEX_KEY.format(form_id="form123"): json.dumps(+ existing_index+ ),+ tally_module._QUESTIONS_KEY.format(form_id="form123"): json.dumps(+ SAMPLE_QUESTIONS+ ),+ }+ redis = MagicMock()+ redis.get = AsyncMock(side_effect=lambda key: values.get(key))+ redis.setex = AsyncMock()++ with (+ patch("backend.data.tally.Settings"),+ patch("backend.data.tally._make_tally_client", return_value=MagicMock()),+ patch(+ "backend.data.tally.get_redis_async",+ new=AsyncMock(return_value=redis),+ ),+ patch(+ "backend.data.tally._fetch_all_submissions",+ new_callable=AsyncMock,+ return_value=(SAMPLE_QUESTIONS, SAMPLE_SUBMISSIONS),+ ) as fetch,+ ):+ email_index, questions = await _refresh_cache("form123")++ assert fetch.await_args.kwargs["start_date"] == "2026-09-01T00:00:00+00:00"+ assert "[email protected]" in email_index+ assert "[email protected]" in email_index+ assert questions == SAMPLE_QUESTIONSdiff --git a/autogpt_platform/backend/backend/integrations/codex/login.py b/autogpt_platform/backend/backend/integrations/codex/login.pyindex 6cf1d2c206..eebb3b16e8 100644--- a/autogpt_platform/backend/backend/integrations/codex/login.py+++ b/autogpt_platform/backend/backend/integrations/codex/login.py@@ -11,6 +11,7 @@ from pydantic import BaseModel, ConfigDictfrom backend.data.model import OAuth2Credentialsfrom backend.data.redis_client import get_redis_async+from backend.data.redis_helpers import as_strfrom backend.integrations.codex.access import enforce_codex_accessfrom backend.integrations.codex.credential_codec import credentials_from_bundlefrom backend.integrations.codex.models import (@@ -137,7 +138,7 @@ class RedisCodexLoginStateStore:async def get_active(self, user_id: str) -> str | None:redis = await get_redis_async()- return await redis.get(_active_key(user_id))+ return as_str(await redis.get(_active_key(user_id)))async def get(self, user_id: str, login_id: str) -> CodexSharedLoginState | None:redis = await get_redis_async()diff --git a/autogpt_platform/backend/backend/integrations/codex/login_test.py b/autogpt_platform/backend/backend/integrations/codex/login_test.pyindex 095f3f9dc7..9cfcf467db 100644--- a/autogpt_platform/backend/backend/integrations/codex/login_test.py+++ b/autogpt_platform/backend/backend/integrations/codex/login_test.py@@ -19,6 +19,7 @@ from backend.integrations.codex.login import (CodexLoginTransport,CodexSharedLoginState,RedisCodexLoginStateStore,+ _active_key,)from backend.integrations.codex.models import (CodexAccountSnapshot,@@ -695,3 +696,17 @@ def _jwt(payload: dict[str, object]) -> str:def _base64url(payload: dict[str, object]) -> str:encoded = json.dumps(payload, separators=(",", ":")).encode()return base64.urlsafe_b64encode(encoded).decode().rstrip("=")+++async def test_get_active_returns_str_even_when_redis_hands_back_bytes():+ redis = FakeRedis()+ redis.values[_active_key("user-123")] = b"login-123"+ store = RedisCodexLoginStateStore(ttl_seconds=1200, owner_lease_seconds=30)+ with patch(+ "backend.integrations.codex.login.get_redis_async",+ new=AsyncMock(return_value=redis),+ ):+ assert await store.get_active("user-123") == "login-123"+ redis.values[_active_key("user-123")] = None+ assert await store.get_active("user-123") is Nonediff --git a/autogpt_platform/backend/poetry.lock b/autogpt_platform/backend/poetry.lockindex 77b07052fc..a7225dabd5 100644--- a/autogpt_platform/backend/poetry.lock+++ b/autogpt_platform/backend/poetry.lock@@ -465,7 +465,7 @@ google-cloud-logging = "^3.13.0"pydantic = "^2.12.5"pydantic-settings = "^2.12.0"pyjwt = {version = "^2.11.0", extras = ["crypto"]}-redis = "^6.2.0"+redis = "^8.1.0"[package.source]type = "directory"@@ -1615,19 +1615,22 @@ tzdata = "*"[[package]]name = "falkordb"-version = "1.2.2"+version = "1.7.1"description = "Python client for interacting with FalkorDB database"optional = false-python-versions = "<4.0,>=3.8"+python-versions = ">=3.10"groups = ["main"]files = [- {file = "falkordb-1.2.2-py3-none-any.whl", hash = "sha256:cc1fcccaa1148be9e3d22d85af03d027f19b398e0f38d04424f3757a02744976"},- {file = "falkordb-1.2.2.tar.gz", hash = "sha256:3fc150d3262b971916a0f2c15f419f7fe521a94fe3a672b6f174288d885fd239"},+ {file = "falkordb-1.7.1-py3-none-any.whl", hash = "sha256:0e62d535edd5abf7b6d35e2493fba71118734313436ff803fcd5d1b20e9e2194"},+ {file = "falkordb-1.7.1.tar.gz", hash = "sha256:09dd89dfb668c6fe7741c0ec67fcdb5c7a4b009e87f065a644199170f4fa5766"},][package.dependencies]-python-dateutil = ">=2.9.0,<3.0.0"-redis = ">=6.0.0,<7.0.0"+python-dateutil = ">=2.9.0,<3"+redis = ">=8.0.0,<9"++[package.extras]+test = ["pytest (>=9.0.2)", "pytest-asyncio (>=1.3.0)", "pytest-cov (>=7.0.0)"][[package]]name = "fastapi"@@ -6360,23 +6363,26 @@ all = ["numpy"][[package]]name = "redis"-version = "6.4.0"+version = "8.1.0"description = "Python client for Redis database and key-value store"optional = false-python-versions = ">=3.9"+python-versions = ">=3.10"groups = ["main"]files = [- {file = "redis-6.4.0-py3-none-any.whl", hash = "sha256:f0544fa9604264e9464cdf4814e7d4830f74b165d52f2a330a760a88dd248b7f"},- {file = "redis-6.4.0.tar.gz", hash = "sha256:b01bc7282b8444e28ec36b261df5375183bb47a07eb9c603f284e89cbc5ef010"},+ {file = "redis-8.1.0-py3-none-any.whl", hash = "sha256:a4fe1aac3d3b3cc791d4b3d5931c5a956045dc951ee74d1c913ee3ac4d2ee9fb"},+ {file = "redis-8.1.0.tar.gz", hash = "sha256:6e1a19beef9225c83efd689c7e6b7da2d5215b1f42cd13b7fc3714d0a09c7b25"},][package.dependencies]async-timeout = {version = ">=4.0.3", markers = "python_full_version < \"3.11.3\""}[package.extras]+circuit-breaker = ["pybreaker (>=1.4.0)"]hiredis = ["hiredis (>=3.2.0)"]-jwt = ["pyjwt (>=2.9.0)"]+jwt = ["pyjwt (>=2.13.0)"]ocsp = ["cryptography (>=36.0.1)", "pyopenssl (>=20.0.1)", "requests (>=2.31.0)"]+otel = ["opentelemetry-api (>=1.39.1)", "opentelemetry-exporter-otlp-proto-http (>=1.39.1)", "opentelemetry-sdk (>=1.39.1)"]+xxhash = ["xxhash (>=3.6.0,<3.7.0)"][[package]]name = "referencing"@@ -8625,4 +8631,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt[metadata]lock-version = "2.1"python-versions = ">=3.10,<3.14"-content-hash = "04944453b9281e73cc0d5df5f706deaf2cfb1c9ce20327f269354a924041cc82"+content-hash = "04ea08252542d2cd874b3f3b5374b187b0af4e97b718e37e9434fe473431af51"diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex 231e28aadf..8e06eea01d 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -67,7 +67,7 @@ pytest = "^8.4.1"pytest-asyncio = "^1.1.0"python-dotenv = "^1.1.1"python-multipart = "^0.0.22"-redis = "^6.2.0"+redis = "^8.1.0"regex = "^2025.9.18"replicate = "^1.0.6"sentry-sdk = {extras = ["anthropic", "fastapi", "launchdarkly", "openai", "sqlalchemy"], version = "^2.44.0"}