Skip to content

fix(vscode): reset read notifications from settings - #11716

Merged
markijbema merged 3 commits into
mainfrom
mark/reset-read-notifications
Jun 26, 2026
Merged

fix(vscode): reset read notifications from settings#11716
markijbema merged 3 commits into
mainfrom
mark/reset-read-notifications

Conversation

@markijbema

@markijbema markijbema commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What

  • Add a Settings > About button to reset only read/dismissed Kilo notifications.
  • Clear kilo.dismissedNotificationIds and refresh notifications without resetting other settings.
  • Add required sidebar locale keys and a patch changeset.

Why

Users need a targeted way to make previously read notifications visible again without using the broader settings reset.

Validation

  • bun run format from packages/kilo-vscode/
  • bun run typecheck from packages/kilo-vscode/
  • bun run lint from packages/kilo-vscode/
  • bun test tests/unit/message-contract.test.ts tests/unit/i18n-keys.test.ts from packages/kilo-vscode/
CleanShot 2026-06-26 at 10 56 10@2x

@markijbema
markijbema marked this pull request as ready for review June 26, 2026 09:26
@markijbema
markijbema enabled auto-merge June 26, 2026 09:26
@markijbema
markijbema merged commit 1e83f0f into main Jun 26, 2026
25 checks passed
@markijbema
markijbema deleted the mark/reset-read-notifications branch June 26, 2026 09:28
if (cached) {
const persisted = ctx.context?.globalState.get<string[]>(KEY, []) ?? []
const dismissedIds =
persisted.length > 0 ? Array.from(new Set([...cached.dismissedIds, ...persisted])) : cached.dismissedIds

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Resetting while the extension is offline still republishes the cached dismissed IDs

resetReadNotifications() clears globalState, but this branch treats an empty persisted list as a signal to fall back to cached.dismissedIds. If the user clicks the new settings button before the client reconnects, notificationsLoaded goes back out with the old IDs, so the notifications stay hidden even though the success toast is shown. Letting an empty persisted list win here, or special-casing the reset path, would make the new action work offline as well.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/src/kilo-provider/notifications.ts 42 Offline reset republishes cached dismissedIds, so the new settings action does not actually resurface notifications until the client reconnects.
Files Reviewed (25 files)
  • .changeset/reset-read-notifications.md
  • packages/kilo-vscode/src/KiloProvider.ts
  • packages/kilo-vscode/src/kilo-provider/notifications.ts - 1 issue
  • packages/kilo-vscode/webview-ui/src/components/settings/AboutKiloCodeTab.tsx
  • packages/kilo-vscode/webview-ui/src/i18n/ar.ts
  • packages/kilo-vscode/webview-ui/src/i18n/br.ts
  • packages/kilo-vscode/webview-ui/src/i18n/bs.ts
  • packages/kilo-vscode/webview-ui/src/i18n/da.ts
  • packages/kilo-vscode/webview-ui/src/i18n/de.ts
  • packages/kilo-vscode/webview-ui/src/i18n/en.ts
  • packages/kilo-vscode/webview-ui/src/i18n/es.ts
  • packages/kilo-vscode/webview-ui/src/i18n/fr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/it.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ja.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ko.ts
  • packages/kilo-vscode/webview-ui/src/i18n/nl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/no.ts
  • packages/kilo-vscode/webview-ui/src/i18n/pl.ts
  • packages/kilo-vscode/webview-ui/src/i18n/ru.ts
  • packages/kilo-vscode/webview-ui/src/i18n/th.ts
  • packages/kilo-vscode/webview-ui/src/i18n/tr.ts
  • packages/kilo-vscode/webview-ui/src/i18n/uk.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zh.ts
  • packages/kilo-vscode/webview-ui/src/i18n/zht.ts
  • packages/kilo-vscode/webview-ui/src/types/messages/webview-messages.ts

Fix these issues in Kilo Cloud


Reviewed by gpt-5.4-20260305 · Input: 79.4K · Output: 13.6K · Cached: 596.7K

Review guidance: REVIEW.md from base branch main

t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
…ications

fix(vscode): reset read notifications from settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants