Repository navigation
Attribute local reads after related grep and edit context - #1348
Merged
Merged
Conversation
Keep returned paths on the trace so outcome events can identify their source. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
A later local test read can use the path returned in a definition example. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Later exact search results retain read attribution after related grep. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #1346
Changelog category
Changelog entry
The plugins record indexed paths returned by related grep and edit-context lookups for local read and grep attribution.
Why
A related grep response can carry source under its related block while the exact-match list is empty. The capture hook read only the exact-match list. It also skipped edit-context responses that carried a trace ID. This left local reads and grep without the lookup that had returned their source.
Scope and risk
Both plugin copies read related grep paths and recognize traced edit-context results, including indexed test examples. Local reads credit the most recent lookup that returned the path. The hook keeps its existing limits, deduplication, and outcome vocabulary. Both plugin manifests advance together.
Compatibility, rollout and rollback
Tests
Replayed retained related grep responses through both plugin copies and verified the indexed paths were present. Ran both capture hooks with related grep and edit-context responses. Each stored the trace and returned paths. A subsequent read credited the latest matching trace. Plugin validation, mirror generation, and Node syntax checks passed.
AI assistance in the code
Checklist