Skip to content

fix(gadgets): improve EditFile error message clarity#77

Merged
zbigniewsobiecki merged 1 commit intodevfrom
fix/editfile-error-format
Jan 18, 2026
Merged

fix(gadgets): improve EditFile error message clarity#77
zbigniewsobiecki merged 1 commit intodevfrom
fix/editfile-error-format

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • Changed error header to ERROR: Search content NOT FOUND in file {full path}
  • Removed full file content dump from error output to reduce noise
  • Keeps suggestions and context when available for debugging

Before

path=src/file.ts status=failed

Error: Search content not found in file

SEARCH CONTENT:
...

CURRENT FILE CONTENT:
[entire file dumped here - noisy!]

After

ERROR: Search content NOT FOUND in file src/file.ts

SEARCH CONTENT:
...

SUGGESTIONS (similar content found):
...

Test plan

  • All tests pass (120 tests)
  • TypeScript check passes
  • Lint passes

🤖 Generated with Claude Code

- Changed error header to "ERROR: Search content NOT FOUND in file {path}"
- Removed full file content dump from error output to reduce noise
- Keeps suggestions and context when available

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@zbigniewsobiecki zbigniewsobiecki merged commit bd88482 into dev Jan 18, 2026
3 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the fix/editfile-error-format branch January 18, 2026 11:05
This was referenced Jan 18, 2026
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