mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-08-13 00:08:42 +00:00
str_replace returned "OK" whenever the target file was empty, silently reporting success even when the model asked to replace a non-empty string that could not possibly be present. Only short-circuit to "OK" when old_str is also empty; otherwise return the standard not-found error.