Repository navigation
feat(tools): add user feedback support to search_issues - #697
Merged
Merged
Conversation
Enable querying User Feedback Widget submissions via search_issues tool by adding issueCategory field support to the AI agent's system prompt. Changes: - Added issueCategory to system prompt BUILT-IN FIELDS with feedback guidance - Added common query patterns for feedback searches - Added feedback query examples to agent prompt - Updated formatters to display issue category for non-error types - Added feedback-specific guidance in search results Next Steps - Added user feedback use case to tool description and examples - Created feedback issue fixture and factory for testing - Added comprehensive tests for formatter changes Co-Authored-By: Claude Code <noreply@anthropic.com>
Changed formatDate() from toLocaleDateString() to toISOString().split("T")[0]
to ensure consistent output across all timezones. This fixes CI test failures
where the inline snapshot expected locale-dependent dates.
The rest of the codebase consistently uses ISO 8601 format for dates.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
dcramer
added a commit
that referenced
this pull request
Dec 30, 2025
## Summary Fixes failing checks on fork PRs (like #697) caused by GitHub's security model restricting write permissions for fork PRs. ### Problem Fork PRs cannot have write permissions to the repository. This causes: - `eval` workflow → "Create eval status check" step fails - `measure-tokens` workflow → "Create check run" and "Comment on PR" steps fail Both fail with: `HttpError: Resource not accessible by integration` (403, requires `checks=write`) ### Solution 1. **Conditional skip** - Only attempt write operations for pushes and same-repo PRs: ```yaml if: github.event.pull_request.head.repo.full_name == github.repository ``` 2. **Fallback safety** - Add `continue-on-error: true` in case other edge cases arise ### What Still Works for Fork PRs - ✅ Tests run - ✅ Evals run - ✅ Token measurement runs - ✅ Results visible in job logs and summaries - ❌ Custom check annotations (skipped) - ❌ PR comments (skipped) Co-Authored-By: Claude Code <noreply@anthropic.com> --------- Co-authored-by: Claude Code <noreply@anthropic.com>
This branch had an error being deployed
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.
Summary
Adds user feedback support to the
search_issuestool, enabling natural language queries for User Feedback Widget submissions stored as issues withissueCategory: feedback.Key Changes
System prompt updates (
config.ts): AddedissueCategoryfield to BUILT-IN FIELDS section with guidance for querying feedback. Added common query patterns (issueCategory:feedback,issueCategory:feedback lastSeen:-7d) and examples.Output formatting (
formatters.ts): Display issue category for non-error types (feedback, performance, metric). Added feedback-specific guidance in Next Steps section when results contain feedback issues.Tool description (
handler.ts): Added user feedback use case and example to tool description.Test fixtures (
feedback-issue.json,fixtures.ts,index.ts): Created feedback issue fixture with factory functioncreateFeedbackIssue()for testing.Tests (
formatters.test.ts): Added comprehensive tests for category display, feedback guidance, empty results, and output format.Breaking Changes
Co-Authored-By: Claude Code noreply@anthropic.com