Skip to content

Don't show matching threshold errors in the chat. #716

@Kaddtechnologies

Description

@Kaddtechnologies

Which version of the app are you using?

Latest

Which API Provider are you using?

OpenRouter

Which Model are you using?

Claude Sonnet 3.5

What happened?

We should not be seeing this in our chat. Dont show debug or error messages in the chat or at least give us the ability to turn it off.

In the middle of a chat session we get massive red text of over 100s of lines because of a diff threshold failure. Dont show this stuff

Unable to apply diff to file: j:\repos\Myapp\rc\screens\DashboardScreen.tsx

<error_details>
No sufficiently similar match found at start: 298 to end: 507 (60% similar, needs 100%)

Debug Info:

  • Similarity Score: 60%
  • Required Threshold: 100%
  • Search Range: lines 298-507
  • Tip: Use read_file to get the latest content of the file before attempting the diff again, as the file content may have changed

Search Content:
container: {
flex: 1,
},
gradient: {
flex: 1,
display: 'flex',
flexDirection: 'column',
},
mainContent: {
flex: 1,
paddingTop: 2,
paddingHorizontal: 12,
gap: 24,
},

Steps to reproduce

  1. Run a few chat sessions for a larger file
  2. It will show

Relevant API REQUEST output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions