Skip to content

Fix delegate_editor: preserve-caught-error lint, stale test, and misleading 404 messages - #163

Merged
allocsys merged 3 commits into
mainfrom
fix/editor-404-messages-v2
Sep 10, 2026
Merged

allocsys merged 3 commits into
mainfrom
fix/editor-404-messages-v2

Conversation

@allocsys

Copy link
Copy Markdown
Owner

Combines three fixes, all green on CI:

  1. Lint fix: attaches { cause: err } to the rethrown error in readFile's 404 branch (fixes the pre-existing preserve-caught-error failure on main).
  2. Test fix: updates test/editor-tools.test.js to stop asserting the "CANNOT open, approve, or merge pull requests" sentence, which was intentionally trimmed from the delegate_editor description in Trim delegate_editor tool description #162. The underlying no-PR-merge behavior is unchanged, just no longer restated in the description text.
  3. 404 message fix: rewrites both read_file and write_file (replacements mode) 404 errors in editor_tool_functions.js. The old messages told the agent to "double-check the path" despite it having no directory-listing/search tool to do so, and nudged it toward assuming a missing path means a new file should be created. Both now instruct the agent to stop and report the exact path as unresolved instead of guessing or defaulting to file creation.

…ence in the tool description (trimmed in #162); the underlying no-PR-merge behavior is still enforced in code, just no longer restated in the description text
…uble-check the path" (it has no tool to do so) and stop nudging it toward assuming a missing path means a new file should be created. Both now instruct the agent to stop and report the exact path as unresolved instead of guessing.
@allocsys
allocsys merged commit 080b0f0 into main Sep 10, 2026
2 checks passed
@allocsys
allocsys deleted the fix/editor-404-messages-v2 branch September 10, 2026 06:12
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