From fdcc04632035c9f74ceb1bcc28fb931cd7ab81f5 Mon Sep 17 00:00:00 2001 From: AnderCMD Date: Fri, 20 Nov 2026 11:59:59 -0600 Subject: [PATCH 1/2] fix: never leave the settings window unreachable When security software blocks TaskGlass from starting programs or opening its local page, the settings window silently failed. Try Edge, then the default browser via the shell, then rundll32, logging every failure; if all fail, copy the settings address to the clipboard and show a localized message that explains the cause and the fix. Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 5 + graphify-out/.graphify_labels.json | 5 +- graphify-out/.graphify_labels.json.sig | 2 +- graphify-out/GRAPH_REPORT.md | 79 +-- graphify-out/graph.html | 8 +- graphify-out/graph.json | 900 ++++++++++++++++--------- internal/app/app_windows.go | 22 + internal/i18n/i18n.go | 4 + internal/settings/window_windows.go | 71 +- 9 files changed, 733 insertions(+), 363 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14fa3e0..fb3ebc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ Format based on [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/). +## [Unreleased] + +### Fixed +- **The settings window now always gives you a way in.** When security software stops TaskGlass from starting programs (`Access is denied` for Edge or `rundll32`) or from opening its local page, the window used to just not appear and the only trace was in the log. TaskGlass now tries Edge, then the default browser through the shell, then `rundll32`; logs every failed attempt; and if all fail it copies the settings address to the clipboard and shows a message explaining what is blocking it and how to fix it. + ## [1.3.1] - 2026-11-20 ### Changed diff --git a/graphify-out/.graphify_labels.json b/graphify-out/.graphify_labels.json index fd4d92d..fdbe5b2 100644 --- a/graphify-out/.graphify_labels.json +++ b/graphify-out/.graphify_labels.json @@ -27,7 +27,7 @@ "25": "poll_ms", "26": "refresh_ms", "27": "surfaces", - "28": "opacity", + "28": "properties", "29": "T", "30": "Architecture", "31": "render-assets.ps1", @@ -40,7 +40,7 @@ "38": "Contributing", "39": "Security Policy", "40": "default", - "41": "fakeHost", + "41": "SystemLocale", "42": "enabled", "43": "hotkey", "44": "enum", @@ -48,7 +48,6 @@ "46": "Server", "47": "exe", "48": "autostart_windows.go", - "49": "xaml_fix", "50": "language", "51": "main.go", "52": "locale_other.go" diff --git a/graphify-out/.graphify_labels.json.sig b/graphify-out/.graphify_labels.json.sig index 5823665..b782bd8 100644 --- a/graphify-out/.graphify_labels.json.sig +++ b/graphify-out/.graphify_labels.json.sig @@ -1 +1 @@ -{"0": "5076d5ac64ef5c4a", "1": "b64346c57c2f1370", "2": "3e72afd85194fc6d", "3": "01646dff01d2eb7e", "4": "b366977a781f3394", "5": "347b8ad08160da2d", "6": "5f1178d3b76d5916", "7": "c3edf3c38080d85c", "8": "7c8d94ab6376b921", "9": "7e5fd0bf5677dec6", "10": "952491af3b1e9f78", "11": "e0f13635f45c650b", "12": "690ee408139029c9", "13": "17570957673a4fdd", "14": "6c7a71fed0eb24b5", "15": "ec76c5b024eab860", "16": "37bcee490d34fb1d", "17": "5c97800323607746", "18": "136e8401d4dcd739", "19": "5dbe09da18834400", "20": "b8b416d32d64abd5", "21": "6e7b82d0387bf16d", "22": "a0e1e2546c3370b0", "23": "a309b6ae1fe8f288", "24": "420dd9e70a20e9ac", "25": "c36fef69ae3bd6c5", "26": "e9dfc248ad6fcedc", "27": "b8e36120f4e5b47a", "28": "029966ca5faa5a2a", "29": "2f07b244a1b1bebb", "30": "4cbef3533d917f67", "31": "39e69bcdefe2b0d2", "32": "804482094d693c22", "33": "077458ac008cc4d9", "34": "77bc2d977d7ff4cd", "35": "13af2a57728b14e4", "36": "bb6ec3da677724b3", "37": "4c1831b02af7bd53", "38": "268b36fafa333572", "39": "89111ec01d66aeef", "40": "a6d5a524b6f14c57", "41": "70a729a8c2ed65e6", "42": "629a30dc96674e1a", "43": "4249983e8612bb1d", "44": "0baabc23a0122bf6", "45": "568df988db03bae3", "46": "ed151e4065cb4366", "47": "ab47fb02a9b2717a", "48": "a5b30f9d71bf9f82", "49": "43b67b0ff2e57329", "50": "58627c65df2a80a1", "51": "9346c9771bed4f8d", "52": "7984419eb8b2f465"} \ No newline at end of file +{"0": "5076d5ac64ef5c4a", "1": "b64346c57c2f1370", "2": "3e72afd85194fc6d", "3": "01646dff01d2eb7e", "4": "73cc74db2c4633b0", "5": "ce7ea8e3d289539e", "6": "5f1178d3b76d5916", "7": "c3edf3c38080d85c", "8": "7c8d94ab6376b921", "9": "e7bb08613845d065", "10": "952491af3b1e9f78", "11": "e0f13635f45c650b", "12": "277e559f4d0e1ba6", "13": "a5365472c4e35ccf", "14": "6c7a71fed0eb24b5", "15": "ec76c5b024eab860", "16": "37bcee490d34fb1d", "17": "5c97800323607746", "18": "4974e3d5715a769b", "19": "5dbe09da18834400", "20": "b8b416d32d64abd5", "21": "6e7b82d0387bf16d", "22": "a0e1e2546c3370b0", "23": "a309b6ae1fe8f288", "24": "420dd9e70a20e9ac", "25": "c36fef69ae3bd6c5", "26": "e9dfc248ad6fcedc", "27": "b8e36120f4e5b47a", "28": "5259f23670b0c110", "29": "2f07b244a1b1bebb", "30": "4cbef3533d917f67", "31": "39e69bcdefe2b0d2", "32": "804482094d693c22", "33": "077458ac008cc4d9", "34": "77bc2d977d7ff4cd", "35": "13af2a57728b14e4", "36": "bb6ec3da677724b3", "37": "4c1831b02af7bd53", "38": "268b36fafa333572", "39": "89111ec01d66aeef", "40": "a6d5a524b6f14c57", "41": "982d1d91a41b4688", "42": "25b2731804072e95", "43": "4249983e8612bb1d", "44": "0baabc23a0122bf6", "45": "568df988db03bae3", "46": "ed151e4065cb4366", "47": "ab47fb02a9b2717a", "48": "a5b30f9d71bf9f82", "50": "58627c65df2a80a1", "51": "9346c9771bed4f8d", "52": "7984419eb8b2f465"} \ No newline at end of file diff --git a/graphify-out/GRAPH_REPORT.md b/graphify-out/GRAPH_REPORT.md index a75200b..fff3cc0 100644 --- a/graphify-out/GRAPH_REPORT.md +++ b/graphify-out/GRAPH_REPORT.md @@ -1,16 +1,16 @@ # Graph Report - TaskGlass (2026-11-20) ## Corpus Check -- 50 files · ~98,812 words +- 50 files · ~99,549 words - Verdict: corpus is large enough that graph structure adds value. ## Summary -- 622 nodes · 1081 edges · 53 communities (47 shown, 6 thin omitted) -- Extraction: 92% EXTRACTED · 8% INFERRED · 0% AMBIGUOUS · INFERRED: 91 edges (avg confidence: 0.8) +- 631 nodes · 1097 edges · 52 communities (46 shown, 6 thin omitted) +- Extraction: 91% EXTRACTED · 9% INFERRED · 0% AMBIGUOUS · INFERRED: 95 edges (avg confidence: 0.8) - Token cost: 0 input · 0 output ## Graph Freshness -- Built from commit: `cc5eb08c` +- Built from commit: `aac694d2` - Run `git rev-parse HEAD` and compare to check if the graph is stale. - Run `graphify update .` after code changes (no API cost). @@ -39,7 +39,7 @@ - poll_ms - refresh_ms - surfaces -- opacity +- properties - T - Architecture - render-assets.ps1 @@ -50,7 +50,7 @@ - Contributing - Security Policy - default -- fakeHost +- SystemLocale - enabled - hotkey - enum @@ -58,13 +58,12 @@ - Server - exe - autostart_windows.go -- xaml_fix - language - main.go ## God Nodes (most connected - your core abstractions) -1. `T()` - 40 edges -2. `App` - 38 edges +1. `T()` - 41 edges +2. `App` - 40 edges 3. `Config` - 35 edges 4. `Controller` - 21 edges 5. `Default()` - 20 edges @@ -83,13 +82,13 @@ cmd/taskglass/main_windows.go → internal/config/config.go - `main()` --calls--> `Save()` [INFERRED] cmd/taskglass/main_windows.go → internal/config/config.go -- `main()` --calls--> `Parse()` [INFERRED] - tools/genicon/main.go → internal/config/config.go +- `watchForQuit()` --calls--> `Notify()` [INFERRED] + cmd/taskglass/main_windows.go → internal/settings/window_windows.go ## Import Cycles - None detected. -## Communities (53 total, 6 thin omitted) +## Communities (52 total, 6 thin omitted) ### Community 0 - "main" Cohesion: 0.26 @@ -108,12 +107,12 @@ Cohesion: 0.50 Nodes (4): default, description, type, hotkey_enabled ### Community 4 - "App" -Cohesion: 0.06 -Nodes (27): App, host, Options, panicGuard, Config, Int32, check(), Bool (+19 more) +Cohesion: 0.05 +Nodes (30): App, host, menuItems, Options, panicGuard, Config, Theme, Int32 (+22 more) ### Community 5 - "Controller" Cohesion: 0.06 -Nodes (29): Attr, Handler, GUID, Duration, TaskbarAnchor(), Duration, TrayProbe(), Handle (+21 more) +Nodes (30): Attr, Handler, GUID, Duration, TaskbarAnchor(), Duration, TrayProbe(), Handle (+22 more) ### Community 6 - "tap.c" Cohesion: 0.07 @@ -128,24 +127,24 @@ Cohesion: 0.29 Nodes (6): additionalProperties, description, $id, $schema, title, type ### Community 9 - "Changelog" -Cohesion: 0.08 -Nodes (23): [1.0.0] - 2026-11-17, [1.0.1] - 2026-11-17, [1.1.0] - 2026-11-18, [1.1.1] - 2026-11-18, [1.2.0] - 2026-11-20, [1.2.1] - 2026-11-20, [1.3.0] - 2026-11-20, Added (+15 more) +Cohesion: 0.07 +Nodes (28): [1.0.0] - 2026-11-17, [1.0.1] - 2026-11-17, [1.1.0] - 2026-11-18, [1.1.1] - 2026-11-18, [1.2.0] - 2026-11-20, [1.2.1] - 2026-11-20, [1.3.0] - 2026-11-20, [1.3.1] - 2026-11-20 (+20 more) ### Community 10 - "tray_icon" Cohesion: 0.24 Nodes (10): tray_icon, enum, default, description, enum, type, auto, color (+2 more) ### Community 12 - "definitions" -Cohesion: 0.22 -Nodes (9): description, pattern, type, definitions, color, surface, additionalProperties, properties (+1 more) +Cohesion: 0.20 +Nodes (10): description, pattern, type, definitions, color, opacity, description, maximum (+2 more) ### Community 13 - "config.go" -Cohesion: 0.12 -Nodes (14): menuItems, Accent, Appearance, AppRule, Percent, Rule, Surface, Surfaces (+6 more) +Cohesion: 0.16 +Nodes (11): Accent, Appearance, AppRule, Percent, Rule, Surface, Surfaces, Taskbars (+3 more) ### Community 18 - "properties" -Cohesion: 0.22 -Nodes (9): description, $ref, properties, maximized, $schema, version, type, const (+1 more) +Cohesion: 0.15 +Nodes (13): description, $ref, properties, maximized, $schema, version, xaml_fix, type (+5 more) ### Community 19 - "Watcher" Cohesion: 0.33 @@ -175,9 +174,9 @@ Nodes (6): refresh_ms, default, description, maximum, minimum, type Cohesion: 0.25 Nodes (8): surfaces, tray_overflow, additionalProperties, description, properties, type, description, $ref -### Community 28 - "opacity" -Cohesion: 0.40 -Nodes (5): opacity, description, maximum, minimum, type +### Community 28 - "properties" +Cohesion: 0.50 +Nodes (4): rule, additionalProperties, properties, type ### Community 29 - "T" Cohesion: 0.08 @@ -213,7 +212,7 @@ Nodes (4): additionalProperties, description, type, default ### Community 42 - "enabled" Cohesion: 0.25 -Nodes (8): rule, default, description, type, enabled, additionalProperties, properties, type +Nodes (8): surface, default, description, type, enabled, additionalProperties, properties, type ### Community 43 - "hotkey" Cohesion: 0.50 @@ -239,10 +238,6 @@ Nodes (5): description, minLength, pattern, type, exe Cohesion: 0.38 Nodes (8): clearDisabled(), command(), Enabled(), Repair(), sameCommand(), Set(), TestCommandIsPlainQuotedPath(), TestSameCommandRecognisesLegacyDoubledBackslashes() -### Community 49 - "xaml_fix" -Cohesion: 0.50 -Nodes (4): xaml_fix, default, description, type - ### Community 50 - "language" Cohesion: 0.29 Nodes (7): default, description, enum, type, language, en, es @@ -252,24 +247,24 @@ Cohesion: 0.83 Nodes (3): entry, main(), writeICO() ## Knowledge Gaps -- **165 isolated node(s):** `$schema`, `$id`, `title`, `description`, `type` (+160 more) +- **168 isolated node(s):** `$schema`, `$id`, `title`, `description`, `type` (+163 more) These have ≤1 connection - possible missing edges or undocumented components. - **6 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes. ## Suggested Questions _Questions this graph is uniquely positioned to answer:_ -- **Why does `App` connect `App` to `main`, `winapi_windows.go`, `Controller`, `config.go`, `Server`, `Watcher`?** - _High betweenness centrality (0.094) - this node is a cross-community bridge._ -- **Why does `Config` connect `App` to `winapi_windows.go`, `fakeHost`, `config.go`, `Server`, `T`?** - _High betweenness centrality (0.073) - this node is a cross-community bridge._ -- **Why does `properties` connect `properties` to `hotkey_enabled`, `items`, `config.schema.json`, `default`, `enabled`, `hotkey`, `tray_icon`, `theme`, `xaml_fix`, `language`, `enum`, `taskbars`, `debounce_ms`, `poll_ms`, `refresh_ms`, `surfaces`?** - _High betweenness centrality (0.048) - this node is a cross-community bridge._ +- **Why does `App` connect `App` to `main`, `winapi_windows.go`, `Controller`, `Server`, `Watcher`?** + _High betweenness centrality (0.097) - this node is a cross-community bridge._ +- **Why does `Config` connect `App` to `T`, `winapi_windows.go`, `config.go`, `Server`?** + _High betweenness centrality (0.070) - this node is a cross-community bridge._ +- **Why does `properties` connect `properties` to `hotkey_enabled`, `items`, `config.schema.json`, `default`, `enabled`, `hotkey`, `tray_icon`, `theme`, `language`, `enum`, `taskbars`, `debounce_ms`, `poll_ms`, `refresh_ms`, `surfaces`?** + _High betweenness centrality (0.046) - this node is a cross-community bridge._ +- **Are the 2 inferred relationships involving `T()` (e.g. with `.syncMenu()` and `.tr()`) actually correct?** + _`T()` has 2 INFERRED edges - model-reasoned connections that need verification._ - **Are the 16 inferred relationships involving `Default()` (e.g. with `main()` and `TestDefaultIsValid()`) actually correct?** _`Default()` has 16 INFERRED edges - model-reasoned connections that need verification._ - **What connects `$schema`, `$id`, `title` to the rest of the system?** - _165 weakly-connected nodes found - possible documentation gaps or missing edges._ + _168 weakly-connected nodes found - possible documentation gaps or missing edges._ - **Should `winapi_windows.go` be split into smaller, more focused modules?** - _Cohesion score 0.10810810810810811 - nodes in this community are weakly interconnected._ -- **Should `App` be split into smaller, more focused modules?** - _Cohesion score 0.06448412698412699 - nodes in this community are weakly interconnected._ \ No newline at end of file + _Cohesion score 0.10810810810810811 - nodes in this community are weakly interconnected._ \ No newline at end of file diff --git a/graphify-out/graph.html b/graphify-out/graph.html index aa45d30..edf1c6e 100644 --- a/graphify-out/graph.html +++ b/graphify-out/graph.html @@ -63,12 +63,12 @@

Communities

-
622 nodes · 1081 edges · 53 communities
+
631 nodes · 1097 edges · 52 communities