Skip to content

fix: keep NoteIQ's taskbar icon and explain language errors in Tidy up - #36

Merged
DevSecNinja merged 1 commit into
mainfrom
fix-tidy-language-and-taskbar-icon
Nov 15, 2026
Merged

DevSecNinja merged 1 commit into
mainfrom
fix-tidy-language-and-taskbar-icon

Conversation

@DevSecNinja

Copy link
Copy Markdown
Owner

Follow-up to #30, from testing on a Surface Laptop 7.

Taskbar icon

With the package identity Tidy up needs (scripts/register-package.ps1), Windows grouped the window under the package and drew a blank grey tile. Without the registration the icon was fine.

Tried first, without success: full Square44x44 target-size and scale assets with resources.pri (still grey), and removing AppListEntry="none" (the taskbar button disappeared entirely).

The fix is in apps/noteiq-windows/src/taskbar.rs. When running with package identity, the window gets its own app ID (DevSecNinja.NoteIQ.Capture, deliberately not the notification app ID) and relaunch command, display name, and icon. It does this through SHGetPropertyStoreForWindow, with strings in COM memory. A first attempt that passed a Rust buffer crashed with heap corruption (0xc0000374). Toasts are unaffected because they use an explicit notifier ID.

Language error

Windows' built-in model rejects short lowercase notes with abbreviations as UnsupportedLanguage, even when they're English. For example, deal alm closed\nneed pipeline update msx fails, while Deal ALM closed.\nNeed pipeline update in MSX. works. NoteIQ can't override Windows' language detection, so the message now explains this and suggests a workaround. docs/setup.md covers it too.

Validation

  • cargo fmt --check, dprint check, cargo clippy --workspace --features noteiq-windows/desktop --all-targets -D warnings, and cargo test --workspace --features noteiq-windows/desktop pass on Windows ARM64.
  • Live on a registered build: the taskbar shows the NoteIQ icon, there are no crash events, and the log reports on-device AI Ready.
  • The language behavior was reproduced with the standalone Windows AI harness from research: investigate Surface NPU acceleration for local NoteIQ AI #29.

- With the package identity Tidy up needs, the taskbar drew the package logo
  as a blank tile. Give the capture window its own app ID and relaunch
  properties so the taskbar uses the window icon again.
- Windows rejects short lowercase notes full of abbreviations as an unknown
  language. Say so and suggest capitalizing acronyms or writing a full
  sentence, instead of claiming the language is unsupported.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@DevSecNinja
DevSecNinja merged commit 341a083 into main Nov 15, 2026
23 checks passed
@DevSecNinja
DevSecNinja deleted the fix-tidy-language-and-taskbar-icon branch November 15, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant