Skip to content

Commit fda1bfd

Browse files
committed
refactor(presentation): keep chat activity under its presentation owner
Signed-off-by: jackie-cqz <2557911191@qq.com> (cherry picked from commit 5cd3a66ed16266ddf564490f57cd629320d1a653) Signed-off-by: jackie-cqz <2557911191@qq.com>
1 parent 1b053d1 commit fda1bfd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎loopx/chat_agent.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pathlib import Path
1414
from typing import Any, Callable, Iterator
1515

16-
from .chat_activity import CodexActivitySteps
16+
from .presentation.chat_activity import CodexActivitySteps
1717
from .chat import (
1818
CHAT_AGENT_RESPONSE_SCHEMA_VERSION,
1919
CHAT_REVIEW_CLOSE_TAG,

‎tests/test_chat_activity.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88
from pathlib import Path
99

10-
from loopx.chat_activity import (
10+
from loopx.presentation.chat_activity import (
1111
COMMAND_VERBS,
1212
REASONING_UPDATE_INTERVAL_SEC,
1313
STEP_KINDS,
@@ -261,7 +261,7 @@ def on_event(kind, payload):
261261
if position % len(cases) == 3:
262262
assert "notes.md docs/relative.md" in serialized and str(tmp_path) not in serialized
263263
# The file itself must already be clean, before a replay reader or UI can filter it.
264-
logs = "\n".join(path.read_text() for path in root.rglob("*.events.jsonl"))
264+
logs = "\n".join(path.read_text(encoding="utf-8") for path in root.rglob("*.events.jsonl"))
265265
assert "example value" not in logs and "/opt/example" not in logs and "/etc/example" not in logs
266266
finally:
267267
session.close()

0 commit comments

Comments
 (0)