Skip to content

fix(core): suppress noisy warning for inline llm-grader prompts#903

Open
christso wants to merge 1 commit intomainfrom
fix/901-inline-prompt-warning
Open

fix(core): suppress noisy warning for inline llm-grader prompts#903
christso wants to merge 1 commit intomainfrom
fix/901-inline-prompt-warning

Conversation

@christso
Copy link
Copy Markdown
Collaborator

@christso christso commented Apr 1, 2026

Summary

  • Added looksLikeFilePath() heuristic to detect inline prompts vs file paths
  • Skips file resolution entirely for strings that are clearly inline prompts (multi-line, >200 chars, 3+ words)
  • Only warns when string looks like a file path but wasn't found

Test plan

  • 8 unit tests for looksLikeFilePath() covering file extensions, relative/absolute paths, multi-line, long strings, natural language, empty strings
  • All 1731 tests pass
  • Build, typecheck, lint clean

Closes #901

🤖 Generated with Claude Code

Closes #901

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

fix: suppress noisy 'file not found' warning for inline llm-grader prompts

1 participant