ReMe/tests
BeiMu-new a265fbf8cd fix(agent-wrapper): stop assuming POSIX-only calls and path styles
Windows runs hit three platform assumptions in the agent wrappers:

- `CodexAgentWrapper._effective_config_snapshot()` called `os.fchmod`,
  which only exists on POSIX. Building the MCP config snapshot therefore
  raised `AttributeError` on Windows and the Codex wrapper could not
  start. The call is now guarded by a capability check
  (`hasattr(os, "fchmod")`), which also keeps the guard testable on
  POSIX hosts.
- `CcFileSessionStore.list_subkeys()` rendered subpaths with `str()`,
  which yields backslashes on Windows. The session-store contract - and
  the SDK conformance check shipped with `claude_agent_sdk` - expects
  POSIX subpaths such as `subagents/agent-2`. Render them with
  `as_posix()`.
- `AutoMemoryStep` wrote session JSONL with the platform default newline
  translation, so Windows stored CRLF even though the writer appends
  `"\n"`. Pass `newline=""` on the append and rewrite paths so one
  message stays one LF-terminated line on every platform.

Add a regression test that pins the snapshot path while `os.fchmod` is
unavailable, so the guard is covered on POSIX CI too.
2026-10-23 22:56:25 +08:00
..
fixtures/config fix(ci): support AgentScope 2.0.6 initialization (#457) 2026-08-19 11:33:52 +08:00
integration refactor: generalize decision models and add recoverable context compaction (#626) 2026-10-19 17:56:30 +08:00
unit fix(agent-wrapper): stop assuming POSIX-only calls and path styles 2026-10-23 22:56:25 +08:00