Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 2:30 AM ET / 06:30 UTC. ClawSweeper reviewWhat this changesThis PR makes duplicate agent-directory detection follow the configured volume’s case semantics, resolves existing symlink aliases, and reuses the same path-case detection for trusted executable-directory comparisons. Merge readiness⛔ Blocked until real behavior proof is added - 4 items remain Keep this active PR open. Current Priority: P2 Review scores
Verification
How this fits togetherAt startup, OpenClaw resolves every referenced agent’s state directory and rejects collisions to prevent shared auth and session state. This PR changes the path identity step before that collision decision, and also supplies the path-case result to executable safe-bin trust comparison. flowchart LR
A[Agent and binding configuration] --> B[Resolve effective agent directories]
B --> C[Resolve existing symlink path segments]
C --> D[Probe target volume case semantics]
D --> E[Group equivalent directories]
E --> F[Reject unsafe shared agent state]
D --> G[Normalize trusted executable directories]
G --> H[Safe-bin trust decision]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +126, Tests +126. Total +252 across 4 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the filesystem-local probe as one shared implementation, add or confirm focused safe-bin coverage for both case-sensitive and case-insensitive paths, and attach redacted final-head terminal or log evidence from the real volume checks before merge. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main lowercases macOS and Windows agent-directory paths without inspecting the target filesystem, and the linked issue supplies concrete case-sensitive-volume steps. I did not execute the volume-dependent scenario in this read-only review. Is this the best way to solve the issue? Yes, with one merge gate: filesystem-local identity plus realpath alias handling is the maintainable fix boundary, but its shared safe-bin use needs focused proof rather than being accepted only from the agent-directory tests. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 28ecf953f382. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
This pull request has been automatically marked as stale due to inactivity. |
…are-agent-dir-collisions # Conflicts: # src/config/agent-dirs.ts
|
Rebased/merged latest |
Resolve existing path aliases and use the target volume case semantics when detecting shared agent state. Keep safe-bin trust normalization unchanged and clean temporary probes before validation continues. Closes openclaw#105194. Co-authored-by: chenshiyang.10 <[email protected]>
|
Merged via squash.
|
* origin/main: (57 commits) docs: document gateway and memory chat wizards (#115487) fix(agents): restore subagent completion delivery on CLI runtimes (#115422) fix(sandbox): stop provisioning failures from exhausting fallbacks (#115481) refactor: remove duplicate runtime and plugin paths (#115483) fix(ui): canonicalize agent model identity (#115480) fix(ui): preview model picker interactions live (#115477) fix(ui): match disabled microphone picker background (#115472) refactor(code-mode): split focused runtime stress suites (#115462) fix(gateway): preserve restart intent across coalesced config writes (#110397) fix: scope subagent handoff to direct tools (#115466) docs: explain native subagent handoff fix: clarify native subagent completion handoff fix(config): respect agent directory filesystem case (#105402) refactor(code-mode): unify safe OpenAI tool filtering (#115460) refactor(code-mode): prepare MCP namespaces once per run (#115459) fix(ollama): preserve selected model capabilities during onboarding (#115467) refactor(chat): remove duplicate session projection paths (#115461) refactor(code-mode): make tool catalogs run-owned (#115458) fix(cli): preserve mid-turn text in durable replies (#115455) fix(memory): fall back to keyword search when embeddings cannot start (#115397) ...
* fix(config): respect filesystem case sensitivity for agent directories * fix(config): probe target directory case semantics * fix(config): handle empty filesystem case probes * fix(config): resolve remaining agent dir aliases * fix(config): satisfy path probe cleanup lint --------- Co-authored-by: chenshiyang.10 <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
Closes #105194
What Problem This Solves
Fixes an issue where OpenClaw rejected two valid agent directories that differ only by case on a case-sensitive macOS or Windows volume. The collision check used the host OS as a proxy for filesystem identity.
Why This Change Was Made
Agent-directory identity now resolves existing and dangling symlink segments, then applies the target volume's case semantics. Missing configured directories probe their nearest existing parent with an exclusive temporary entry that is removed before validation continues.
The maintainer rewrite deliberately does not reuse this probe for executable safe-bin trust. Safe-bin normalization remains unchanged; filesystem probing is confined to startup agent-state validation.
User Impact
Case-distinct agent state directories work on case-sensitive volumes, while true duplicates, case aliases on insensitive volumes, and symlink aliases remain rejected. No config migration is required.
Evidence
52f9a49d78e8d0de6ca4c0667da141e48df3badeCase-sensitive APFSimage: case probefalse, bothAgentState/agentstatecoexist, zero duplicate groups. Default macOS volume: probetrue, one duplicate group. Empty probe directory remained empty.90454733012.Contributor credit is preserved with
Co-authored-by: chenshiyang.10 <[email protected]>.