Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

improve response/feedback loop with better error messages#1414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tonytrg merged 1 commit intomainfromtonytrg/add-better-error
Nov 17, 2025

Conversation

@tonytrg
Copy link
Contributor

@tonytrgtonytrg commentedNov 17, 2025
edited
Loading

GTP-5.1-Codex experienced a problem withget_file_contents. It ignored the instruction to add trailing slashes to directories. It looped multiple times before it recovered and added the trailing slashes.

The follow up error:file content SHA is nil usually means we are using the logic to look for a file but provided a path in reality. This improved error message should improve the feedback loop drastically for llms.

Closes:

@tonytrgtonytrg requested a review froma team as acode ownerNovember 17, 2025 09:13
CopilotAI review requested due to automatic review settingsNovember 17, 2025 09:13
Copilot finished reviewing on behalf oftonytrgNovember 17, 2025 09:15
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR improves error messaging for theget_file_contents tool to better guide LLM users when they encounter the "file content SHA is nil" error. The enhanced message now explicitly instructs users to add a trailing slash (/) when requesting directories, addressing confusion that occurred when GPT-5.1-Codex ignored these instructions.

  • Enhanced error message to include actionable guidance about trailing slashes for directory paths

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

@JoannaaKLJoannaaKLJoannaaKL approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tonytrg@JoannaaKL

[8]ページ先頭

©2009-2025 Movatter.jp