Skip to content

Avoid 409 noise when ensuring workspace directories#4

Closed
kalinon wants to merge 17 commits into
ByMosDev:mainfrom
moltar-forge:codex/avoid-409-on-dir-ensure
Closed

Avoid 409 noise when ensuring workspace directories#4
kalinon wants to merge 17 commits into
ByMosDev:mainfrom
moltar-forge:codex/avoid-409-on-dir-ensure

Conversation

@kalinon
Copy link
Copy Markdown
Contributor

@kalinon kalinon commented Mar 4, 2026

Summary

  • make createDirectory check directory existence first via GET /openclaw/workspace/files
  • only create .gitkeep when the preflight check returns 404
  • normalize workspace paths to remove duplicate and trailing slashes before checks and creation
  • keep 409 handling as a race-safe fallback but avoid it in normal ensure flows
  • add per-request API error-log suppression and tests for suppressed statuses

Why

Directory ensure flows on Docs/Projects/Skills were intentionally idempotent, but they still produced regular 409 responses (FILE_EXISTS) by trying to create an already-existing .gitkeep. This change removes those avoidable conflicts.

Testing

  • npm run test:run -- src/stores/workspaceStore.test.js src/api/client.test.js
  • 55 tests passing

moltar-bot and others added 17 commits March 2, 2026 17:36
…t view

- Delete hardcoded agencyOrgChart.js with CEO/COO/CTO/CPO/CMO fallback
- Replace corporate color maps (CEO=yellow, COO=green) with hash-based palette
- Rename csuitLeaders to thirdLevelLeaders, update all corporate comments
- Add empty state when no agents configured
- Add single-agent view with prominent centered card
- Make title field optional in AgentEditModal and validation
- Update placeholders from corporate examples to generic ones
- Use neutral connector line colors throughout hierarchy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename OrgChart.jsx to Agents.jsx, update component export
- Change route from /org-chart to /agents with backward-compat redirect
- Update sidebar navigation label to "Agents"
- Update page title to "Agents" and subtitle to "Your agent team and status overview"
- Update loading/error messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
docs: clean up archive reference in AGENTS
feat: rename org-chart → agents across dashboard
Conditionally show archived workspace agent and align docs
Rename Org Chart docs to Agents and align workspace link docs
@kalinon kalinon closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants