Skip to content

fix(computer-use): separate inserted text from an unterminated final line - #477

Open
00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/quickstart-editor-unterminated-line
Open

00200200 wants to merge 1 commit into
anthropics:mainfrom
00200200:codex/quickstart-editor-unterminated-line

Conversation

@00200200

@00200200 00200200 commented Sep 14, 2026

Copy link
Copy Markdown

Inserting after the last line of a file without a trailing newline concatenates the inserted text to that line. Add the missing separator before inserting. Tests cover an unterminated last line, an already terminated line, insertion at the beginning, and an empty file.

Validation: PYTHONPATH=computer-use-best-practices/ python -m pytest computer-use-best-practices/tests/test_editor.py -q (14 passed in 0.55s). The regression tests fail on the unchanged main branch. Tests use local fixtures; no paid API calls.

Prepared with Codex assistance; the final diff and regression behavior were checked locally.

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