Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug where the entire document text would be included instead of just visible content #3351

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

sqs
Copy link
Member

@sqs sqs commented Mar 8, 2024

In #3269, the ContextItem and ContextFile types were merged. The former had a text field that I neglected to update in that PR to use the new content name (and it was not caught by the typechecker).

This could lead to poor context in chat whenever getEnhancedContext is used. Instead of including just the visible portion of the file, the entire file's content would be included.

Test plan

I have not been able to repro this, but it is obviously a bug.

@sqs sqs requested a review from a team March 8, 2024 07:19
…ust visible content

In #3269, the `ContextItem` and `ContextFile` types were merged. The former had a `text` field that I neglected to update in that PR to use the new `content` name (and it was not caught by the typechecker).

This could lead to poor context in chat whenever `getEnhancedContext` is used. Instead of including just the visible portion of the file, the entire file's content would be included.
@sqs sqs force-pushed the sqs/fix-visible-sel-bug branch from 51eac26 to 28293eb Compare March 8, 2024 07:31
@sqs
Copy link
Member Author

sqs commented Mar 8, 2024

@philipp-spiess This is backport-worthy, don't you think? Sorry about this bug!

@sqs sqs merged commit 043634e into main Mar 8, 2024
15 of 16 checks passed
@sqs sqs deleted the sqs/fix-visible-sel-bug branch March 8, 2024 08:39
steveyegge pushed a commit that referenced this pull request Mar 13, 2024
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.

None yet

2 participants