Skip to content

chore(tools): Fix fs_create_file response appending modified string#535

Merged
JeanMertz merged 1 commit intomainfrom
prr102
Apr 11, 2026
Merged

chore(tools): Fix fs_create_file response appending modified string#535
JeanMertz merged 1 commit intomainfrom
prr102

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The previous code modified response first, then appended response to itself — causing the already-modified string (including the full content block) to appear as the footer instead of the original header.

The fix clones the header before modification and builds the complete output in a single push_str call, so the file path appears correctly both before and after the highlighted content block.

The previous code modified `response` first, then appended `response` to
itself — causing the already-modified string (including the full content
block) to appear as the footer instead of the original header.

The fix clones the header before modification and builds the complete
output in a single `push_str` call, so the file path appears correctly
both before and after the highlighted content block.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit 0ac9cc5 into main Apr 11, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr102 branch April 11, 2026 00:23
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.

1 participant