Skip to content

Commit c5129ab

Browse files
sogadaikiclaude
andcommitted
fix: stabilize tests after rebase onto upstream main
- Add `id DESC` tiebreaker to session memory query for deterministic ordering - Add `bot_language` to test mock settings (Pydantic spec compatibility) - Pin `bot_language="en"` in orchestrator test fixture to avoid .env leakage Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7f35830 commit c5129ab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/storage/repositories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ async def get_active_memories(
427427
"""
428428
SELECT * FROM session_memories
429429
WHERE user_id = ? AND project_path = ? AND is_active = TRUE
430-
ORDER BY created_at DESC
430+
ORDER BY created_at DESC, id DESC
431431
LIMIT ?
432432
""",
433433
(user_id, project_path, limit),

tests/unit/test_bot/test_middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def mock_settings():
3535
settings.enable_api_server = False
3636
settings.enable_scheduler = False
3737
settings.approved_directory = "/tmp/test"
38+
settings.bot_language = "en"
3839
return settings
3940

4041

tests/unit/test_orchestrator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ def tmp_dir():
2020

2121
@pytest.fixture
2222
def agentic_settings(tmp_dir):
23-
return create_test_config(approved_directory=str(tmp_dir), agentic_mode=True)
23+
return create_test_config(
24+
approved_directory=str(tmp_dir), agentic_mode=True, bot_language="en"
25+
)
2426

2527

2628
@pytest.fixture

0 commit comments

Comments
 (0)