You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LINBEE-30174 | fix: no prompt nudge on auto-fix or after the skill ran (v1.4.1) - #18
"turn on auto-fix" tripped the "fix" keyword and nudged a session that was already graded; now auto-fix/autofix is ignored and prompts aren't nudged once the skill ran.
Purpose: Prevent redundant or false-positive prompt nudges by refining code-task detection and tracking graded repositories.
Main changes:
Updated keyword detection to ignore "auto-fix" variations using sed-based filtering in trigger script.
Implemented repo-specific marker logic to suppress nudges after a skill verdict is issued.
Added test cases for autofix-filtering and repository-scoped status tracking in hooks_test.sh.
Generated by LinearB AI and added by gitStream. AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using GuidelinesLearn how
The reason will be displayed to describe this comment to others. Learn more.
✨ PR Review
The shell fix for the false "auto-fix" nudge and skip-after-skill-ran logic looks correct and minimal. However, the PR's ticket reference points to a sub-task about telemetry decision reporting (PreToolUse reporting + session dedup), which has no relation to this nudge-keyword fix, suggesting a ticket/scope mismatch.
1 issues detected:
🎯 Scope - PR implementation does not address the linked ticket's requirements (verdict reporting on PreToolUse, session dedup).
Details:The PR is tagged with LINBEE-30174, whose linked ticket describes reporting the grade on the first PreToolUse after the verdict and deduplicating preliminary/corrected grades via a session key. The actual diff only fixes a UserPromptSubmit nudge false-positive on "auto-fix" and skips nudging after the skill has run — unrelated functionality to the ticket's stated requirements.
Generated by LinearB AI and added by gitStream. AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Review using GuidelinesLearn how
The reason will be displayed to describe this comment to others. Learn more.
✨ PR Review
The fix narrows the "fix" keyword trigger to avoid matching auto-fix variants and adds an early-exit when the skill already ran, writing a done marker so other repo nudges aren't skipped. The core logic looks reasonable; a couple of readability/maintainability points are worth a second look.
2 issues detected:
🧾 Readability - Combining text normalization and keyword matching in one dense pipeline reduces clarity and maintainability. 🛠️
Details:The Tier 2 keyword check now chains a sed substitution and a grep in a single conditional expression, making the matching logic harder to follow and modify (e.g. extending the auto-fix exclusion list or adding more keyword variants).
🛠️ A suggested code correction is included in the review comments.
🧹 Maintainability - Relying on an implicit side-effect variable from set_marker to immediately re-write the same marker file is fragile and unclear.
Details:set_marker "$dir" is called and then the code manually truncates/creates "$marker" immediately after. If set_marker already performs an equivalent write as part of its implementation, this extra line is redundant and could mask double-write assumptions as the code evolves; if it doesn't, the dependency on an externally-defined $marker variable set as a side effect of set_marker is implicit and easy to break.
Generated by LinearB AI and added by gitStream. AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Review using GuidelinesLearn how
The reason will be displayed to describe this comment to others. Learn more.
🧾 Readability - Complex Inline Pipeline: Extract the sed-stripped prompt into an intermediate variable before running the grep check, improving readability and making future keyword additions easier to review.
Suggested change
elifprintf'%s'"$prompt"| sed -E 's/[Aa][Uu][Tt][Oo][- ]?[Ff][Ii][Xx]//g'| grep -qiE '\b(fix|fixes|fixing|fixed|implement|implementing|refactor|refactoring|hotfix|bug ?fix|debug|patch|endpoint|migration)\b';then
elifstripped_prompt=$(printf '%s'"$prompt"| sed -E 's/[Aa][Uu][Tt][Oo][- ]?[Ff][Ii][Xx]//g')&&printf'%s'"$stripped_prompt"| grep -qiE '\b(fix|fixes|fixing|fixed|implement|implementing|refactor|refactoring|hotfix|bug ?fix|debug|patch|endpoint|migration)\b';then
Is this review accurate? Use 👍 or 👎 to rate it
If you want to tell us more, use /gs feedback e.g. /gs feedback this review doesn't make sense, I disagree, and it keeps repeating over and over
This pull request has used all 3 of its automatic AI Reviews.
✨ Comment /gs review to run one now. No arguments needed. It uses the same settings as your automatic reviews: gitStream Settings in Managed Mode, your CM files in Self-Managed.
This exit 0 is reached after any advisor Skill call in the session, even when neither candidate name matched a verdict. As a result, after grading repo A, the first source edit in repo B is allowed instead of hitting the per-repo grade-before-work hold; the new other-repo test checks only the later prompt and misses this bypass. Exit only on a matching verdict and otherwise fall through to the existing .held logic.
This issue also appears on line 205 of the same file.
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
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.
"turn on auto-fix" tripped the "fix" keyword and nudged a session that was already graded; now auto-fix/autofix is ignored and prompts aren't nudged once the skill ran.
🤖 Generated with Claude Code
✨ PR Description
Purpose: Prevent redundant or false-positive prompt nudges by refining code-task detection and tracking graded repositories.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how