Repository navigation
improve(startup): skip redundant single-agent directory checks - #152192
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 6:13 PM ET / 22:13 UTC. ClawSweeper reviewWhat this changesSkip filesystem collision checks when configuration references fewer than two distinct agents, with a regression test through the config validator. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, narrowly scoped optimization absent from current main and the latest release. No actionable correctness or security defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw configuration validation checks whether agents share a state directory, which could mix authentication and session data. This change avoids resolving filesystem identities when only one distinct agent is referenced. flowchart TD
A[Agent entries and bindings] --> B[Normalize and deduplicate agent IDs]
B --> C{At least two agents?}
C -->|No| D[No directory conflicts]
C -->|Yes| E[Resolve filesystem identities]
E --> F[Report shared directories]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +16. Total +20 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the cardinality fast path in the existing collision-check owner while preserving all multi-agent filesystem checks. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that current main resolves the sole referenced agent's directory despite requiring multiple agents to report a collision; no runtime reproduction was executed here. Is this the best way to solve the issue? Yes, the guard uses the existing deduplicated IDs at the owning function and changes neither configuration contracts nor multi-agent validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6d43ed90854e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…pr-149099-main-20260918 * commit '795e460278d4f8f41545dc8b4a66da1d12defd90': (1902 commits) refactor(slack): share Markdown preparation (#149129) fix(tooling): release completed PR operations with exited loaders (#152209) fix(release): allow stable npm bootstrap under an operator soak waiver (#152206) fix(daemon): avoid false restart timeouts during slow startup (#151387) feat: read agent documents from a host-owned workspace (#150584) improve(startup): skip redundant single-agent directory checks (#152192) test(ui): await board widget readiness before size reports (#152198) perf(browser): move dashboard event discovery to SQLite worker (#151952) improve(auth): reduce pauses during concurrent credential reads (#152140) improve(ui): load older chat history in smaller pages (#152093) fix(release): reject incomplete legacy npm install trees (#152186) refactor: share current-conversation binding row serialization (#152134) test(tooling): preserve Node and terminal fixture ownership under Bun (#152187) fix(sqlite): service worker admission through retained path aliases (#152190) improve: reduce CPU work for long CLI reasoning streams (#152191) chore(ui): refresh control ui locales (#152196) test(subagents): align lifecycle retries with durable completion owners (#152184) perf(gateway): defer participant maps for owned sessions (#152097) refactor(stream): share auxiliary queue overflow handling (#149282) fix(test): execute CLI fixture preloads on Node and Bun (#152076) ...
What Problem This Solves
Startup config validation probes agent directories for collisions even when only one distinct agent is configured.
User Impact
Single-agent configurations skip unnecessary filesystem work and keep the same validation result. Multi-agent directory conflict checks are unchanged. No configuration changes or migrations are required.
Why This Change Was Made
Reuse the existing normalized, deduplicated agent IDs and return before directory resolution when fewer than two remain. One agent referenced by its entry, default and bindings still counts once.
Evidence