Skip to content

Conversation

@ezyang
Copy link
Owner

@ezyang ezyang commented Mar 27, 2025

Stack from ghstack (oldest at bottom):

Modify the EditFile and WriteFile tools so that they always strip trailing whitespace for each line from the text content to be written from the LLM.

49e2dec  (Base revision)
d9b5330  Strip trailing whitespace from each line before writing to file
4fd7add  Update docstring to mention trailing whitespace removal
1a7d7c6  Add test for trailing whitespace stripping in WriteFile and EditFile
0b57f3d  Update test to match actual behavior without trailing newline
74e7013  Fix empty lines test expectation
4e9026a  Fix third test expectation
f315fae  Auto-commit format changes
HEAD     Auto-commit lint changes

codemcp-id: 234-feat-strip-trailing-whitespace-in-editfile-and-wri

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Mar 27, 2025
Modify the EditFile and WriteFile tools so that they always strip trailing whitespace for each line from the text content to be written from the LLM.

```git-revs
49e2dec  (Base revision)
d9b5330  Strip trailing whitespace from each line before writing to file
4fd7add  Update docstring to mention trailing whitespace removal
1a7d7c6  Add test for trailing whitespace stripping in WriteFile and EditFile
0b57f3d  Update test to match actual behavior without trailing newline
74e7013  Fix empty lines test expectation
4e9026a  Fix third test expectation
f315fae  Auto-commit format changes
HEAD     Auto-commit lint changes
```

codemcp-id: 234-feat-strip-trailing-whitespace-in-editfile-and-wri
ghstack-source-id: a8d9190
Pull-Request-resolved: #224
[ghstack-poisoned]
ezyang added a commit that referenced this pull request Mar 27, 2025
Modify the EditFile and WriteFile tools so that they always strip trailing whitespace for each line from the text content to be written from the LLM.

```git-revs
49e2dec  (Base revision)
d9b5330  Strip trailing whitespace from each line before writing to file
4fd7add  Update docstring to mention trailing whitespace removal
1a7d7c6  Add test for trailing whitespace stripping in WriteFile and EditFile
0b57f3d  Update test to match actual behavior without trailing newline
74e7013  Fix empty lines test expectation
4e9026a  Fix third test expectation
f315fae  Auto-commit format changes
17e5c1b  Auto-commit lint changes
ce7c1d0  Ensure trailing newline in files
887765d  Update docstring to mention trailing newline
e950607  Update test to expect trailing newline
319b098  Update second test to expect trailing newline
70d0295  Update third test to expect trailing newline
HEAD     Auto-commit format changes
```

codemcp-id: 234-feat-strip-trailing-whitespace-in-editfile-and-wri
ghstack-source-id: b3bffca
Pull-Request-resolved: #224
@ezyang ezyang closed this in 5295ec3 Mar 27, 2025
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