Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/presentation/test_codex_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ def test_existing_busy_pause_reenters_new_readonly_preflight(native, tmp_path):
@pytest.mark.parametrize("status", ["queued", "starting", "running", "completing", "interrupting", "invalid"])
def test_native_restart_uses_real_accepted_work_fence_before_app_quit(native, monkeypatch, tmp_path, status):
from loopx.chat_store import ChatSessionStore
# The accepted-work fence is platform independent. native_host.switch()
# refuses a non-macOS host at its entry gate, so without this the Linux
# CI run stopped at `platform_unavailable` and never reached the
# `waiting_for_idle` assertion below.
monkeypatch.setattr(sys, "platform", "darwin")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] 当前 main 已通过 #7813(e076af6d75e8f33794a21907d10696da51949d9a,merge aae5806)在同一测试设置 host_module.sys.platform = "darwin"。这里的 sys 是同一解释器模块;六个状态断言也完全相同。在真实 Linux 容器内的不可变快照中,本 PR head 与当前 main 均为 87 passed、2 skipped,原 merge base 的六个目标用例失败。此补丁现在没有独立新增覆盖;请关闭重复提案,或基于最新 main 展示一个不同的仍失败边界,并只保留一次 override。

host_module = importlib.import_module("loopx_codex_provider_routing.native_host")
store = ChatSessionStore(tmp_path / "runtime")
sid = store.create_session(goal_id="test", agent_id="test", adapter_kind="fake",
Expand Down
Loading