Repository navigation
fix(issues): advise checking list_issues after failed create due to search indexing lag - #3980
Open
tang-ontheway wants to merge 1 commit into
Open
tang-ontheway wants to merge 1 commit into
tang-ontheway wants to merge 1 commit into
Conversation
…earch indexing lag
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human validation is needed because the guidance changes alter timeout/retry behavior and bundled-skill availability, including configurations where list_issues may be omitted, and automated review found the availability contract was not updated.
No open issues 🎉
What changed in this PR
Updates issue-creation guidance to help prevent duplicate issues when a create response is lost or times out during search-indexing lag.
Changes:
- Advises checking
list_issuessorted byCREATED_AT DESCbefore retrying issue creation. - Documents indexing lag in semantic and lexical
search_issuesdescriptions. - Updates the issue-authoring skill, tests, instruction digest, and tool snapshot.
| File | Description |
|---|---|
| pkg/skills/catalog/skills/issue-authoring/SKILL.md | Adds duplicate-prevention guidance after failed or timed-out issue creation. |
| pkg/http/server_test.go | Updates expected semantic and lexical search description text. |
| pkg/github/toolset_instructions.go | Adds guidance to check recently created issues before retrying creation. |
| pkg/github/testdata/toolset-instructions.json | Refreshes the issues instruction digest. |
| pkg/github/issues.go | Documents indexing lag for semantic and lexical issue searches. |
| pkg/github/__toolsnaps__/search_issues.snap | Updates the search tool description snapshot. |
Review effort: Lite (adaptive)
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.
Fixes #3973
Summary
search_issues(both semantic and lexical) can lag 2–10 seconds behind newly created issues, whereaslist_issuessorted byCREATED_AT(DESC) reflects newly created issues immediately. When anissue_write(method: "create") response is lost to a timeout or dropped connection, following the existing"Use 'search_issues' before creating new issues to avoid duplicates"guidance alone misses the just-created issue and leads agents to create duplicates on retry.This change:
generateIssuesToolsetInstructionsinpkg/github/toolset_instructions.goto advise checkinglist_issuessorted by creation date before retrying a failed or timed-outissue_writecreate.searchIssuesSemanticDescriptionandsearchIssuesLexicalDescriptioninpkg/github/issues.go(and updatespkg/http/server_test.goand tool snapshots).issue-authoringskill (pkg/skills/catalog/skills/issue-authoring/SKILL.md) and refreshespkg/github/testdata/toolset-instructions.json.Testing
go test ./pkg/github/... ./pkg/http/... ./pkg/skills/...— all passedgo test ./pkg/skills/catalog -run TestCatalogToolRequirementsAreRegistered -count=1— passedgo test ./pkg/github -run TestToolsetInstructionsAreCoveredBySkills -count=1— passed