-
Notifications
You must be signed in to change notification settings - Fork 2
Fix auto-briefing path normalization, fingerprint caching, and doc annotation artifacts #159
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,8 +18,8 @@ links: | |||||
| --- | ||||||
|
|
||||||
|
|
||||||
| 20#YT|> **Note**: This scenario is DEPRECATED and superseded by SCEN-opencode-kibi-briefing-v2. | ||||||
| 21#YT|> It documents the historical v1 cue-driven behavior. | ||||||
| > **Note**: This scenario is DEPRECATED and superseded by SCEN-opencode-kibi-briefing-v2. | ||||||
|
||||||
| > **Note**: This scenario is DEPRECATED and superseded by SCEN-opencode-kibi-briefing-v2. | |
| > **Note**: This scenario is DEPRECATED and superseded by SCEN-opencode-kibi-briefing-v2. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,8 +17,8 @@ links: | |||||
| --- | ||||||
|
|
||||||
|
|
||||||
| 19#YT|> **Note**: This test doc is DEPRECATED and superseded by TEST-opencode-kibi-briefing-v2. | ||||||
| 20#YT|> Historical verification for v1 cue-driven briefings remains documented below. | ||||||
| > **Note**: This test doc is DEPRECATED and superseded by TEST-opencode-kibi-briefing-v2. | ||||||
|
||||||
| > **Note**: This test doc is DEPRECATED and superseded by TEST-opencode-kibi-briefing-v2. | |
| > **Note**: This test doc is DEPRECATED and superseded by TEST-opencode-kibi-briefing-v2. |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -168,6 +168,7 @@ const kibiOpencodePlugin: Plugin = async ( | |||||||||||||||||||||||||||
| const toastedFingerprints = new Set<string>(); | ||||||||||||||||||||||||||||
| let lastRiskClass: RiskClass | null = null; | ||||||||||||||||||||||||||||
| let lastEditedFilePath: string | null = null; | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
| let lastEditedFilePath: string | null = null; |
Copilot
AI
Apr 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lastBriefFingerprint is only updated inside the isAutoBriefRisk branch, but the system.transform hook always uses it to fetch autoBriefResult. After a subsequent non-auto-brief edit (e.g. safe_docs_only / safe_test_only), this can keep showing a stale auto-brief result from an earlier risky edit. Consider clearing lastBriefFingerprint whenever an edit is processed that won’t compute/fetch a new briefing (or updating it for every edit), so the guidance reflects the current context.
| const autoBriefResult = lastBriefFingerprint != null | |
| ? autoBriefResults.get(lastBriefFingerprint) | |
| : undefined; | |
| const shouldUseAutoBriefResult = | |
| lastRiskClass !== "safe_docs_only" && | |
| lastRiskClass !== "safe_test_only"; | |
| if (!shouldUseAutoBriefResult) { | |
| lastBriefFingerprint = undefined; | |
| } | |
| const autoBriefResult = | |
| shouldUseAutoBriefResult && lastBriefFingerprint != null | |
| ? autoBriefResults.get(lastBriefFingerprint) | |
| : undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line ends with trailing whitespace. The repo’s .editorconfig sets
trim_trailing_whitespace = truefor*.md, so please remove the extra space at the end of the line.