StrReplace / Write tools fail with "Invalid arguments" when workspace root path contains dot-prefixed directory (e.g. .openclaw)

Hey, thanks for the report. This looks like part of a known family of bugs where StrReplace or Write fails with “Invalid arguments” while Read works fine. We’ve seen different triggers like multi-root workspaces and Remote-SSH, and your case with a dot-prefixed directory in the workspace path looks like a new variant.

To help narrow down the root cause, can you check the Developer Tools console when the error happens?

  • Open Help > Toggle Developer Tools, then go to the Console tab
  • Trigger the StrReplace or Write error
  • Copy any errors that show up, especially anything mentioning UriError or path-related messages

For now, as a workaround, try moving or symlinking your project to a path without a dot-prefixed directory, for example C:/Users/Administrator/openclaw instead of .openclaw, and see if that fixes it.

I flagged this with the team. Your report helps since this trigger wasn’t reported before.