67 Commits

Author SHA1 Message Date
Craig Constable
c333fdfa14 v1.4.5 v1.4.5 2026-06-20 10:35:08 +10:00
Craig Constable
9771e118b4 chore: ignore local agent instructions 2026-06-20 10:06:51 +10:00
Craig Constable
b46e11fbf8 v1.4.4 2026-06-20 10:02:27 +10:00
Craig Constable
976ce04fb2 Merge pull request #36 from amorel/taskbar-restart-fix 2026-06-20 10:01:57 +10:00
Craig Constable
4c59e836f0 fix: make relaunch mutex wait effective 2026-06-20 10:01:52 +10:00
amorel
adbfaf1107 fix: survive explorer.exe restarts (tray icon no longer disappears)
When explorer.exe restarts it destroys the taskbar, which destroys our embedded child window outright (IsWindow returns false) and leaves the UI thread parked in GetMessage with no window to recreate in place. The tray icon and widget vanish until the app is manually relaunched (see issue #34).

A dedicated watchdog thread (independent of the now-dead message loop) polls the Shell_TrayWnd handle and, when it changes, relaunches the widget as a fresh process that re-embeds into the new taskbar. The relaunched child is flagged via an environment variable so it waits on the single-instance mutex until the previous instance exits, and a throttle backs off if explorer is crash-looping.
2026-06-17 16:27:36 +02:00
Craig Constable
7af314996d v1.4.3
- Add Brazilian Portuguese (pt-BR) localization

- Thanks to @caduaraxa for the contribution in PR #29

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
v1.4.3
2026-06-12 19:54:11 +10:00
Craig Constable
b094bf9e0b Merge pull request #29 from caduaraxa/translation-pt-br 2026-06-12 19:53:28 +10:00
Craig Constable
c1056a4bd3 feat: wire up Brazilian Portuguese language support
The PR added the translation file only; register it in the
localization module (enum, codes, native name, string lookups,
pt locale detection) and add the context menu entry and command
handler. Also trim trailing whitespace and align field order
with the other language files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:53:19 +10:00
Craig Constable
c4b2c18b78 Merge main into pr-29 2026-06-12 19:48:39 +10:00
Craig Constable
286dd89a67 v1.4.2
- Add Russian localization

- Thanks to @st7105 for the contribution in PR #28

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:39:35 +10:00
Craig Constable
dc311c9406 Merge pull request #28 from st7105/main 2026-06-12 19:38:02 +10:00
Craig Constable
374d94fac2 fix: wire up Russian in language menu command handler
The PR added IDM_LANG_RUSSIAN to the context menu but not to the
WM_COMMAND handler, so selecting it did nothing. Also reorder
second_suffix to match the Strings field order used by the other
language files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 19:37:31 +10:00
caduaraxa
cf5b6c0741 Add new translation file for PT-BR (Brazilian Portuguese) 2026-06-10 17:10:37 -03:00
st7105
e88ea07245 add Russian language 2026-06-10 12:53:45 +03:00
Craig Constable
b5f038dd39 v1.4.1
fix: correct widget drag state
v1.4.1
2026-05-13 08:25:13 +10:00
Craig Constable
4676f6f72e feat: Codex usage now available through the model menu
- Option to have both or a single model visible

- Tray icon for each visible model

- Coloured text in duel mode to assist in identifying which model
v1.4.0
2026-05-09 08:06:27 +10:00
Craig Constable
d54588bf6e v1.3.9
feat: check for other credential sources on permanent credential failure.
v1.3.9
2026-05-05 18:46:57 +10:00
Craig Constable
f2b378462d v1.3.8
fix: stop focus steal by ignoring tray location events from our own icon updates
v1.3.8
2026-05-05 09:38:36 +10:00
Craig Constable
ae9be6704a v1.3.7
feat: add Dutch localisation
v1.3.7
2026-05-04 16:39:11 +10:00
Craig Constable
63806d5421 v1.3.6
feat: enable proxy env support for ureq requests
v1.3.6
2026-05-01 10:42:07 +10:00
Craig Constable
35f945daa9 v1.3.5
fix: align usage percentage and tray icon numbers
v1.3.5
2026-04-20 09:18:01 +10:00
Craig Constable
17c63517ca v1.3.4
fix: pause usage polling on auth errors

- Show the same auth warning state for expired, invalid, or missing credentials

- Replace the widget auth text with a warning symbol and updated the toast notification

- Stop usage polling and countdown timers while auth is required

- Reuse the configured poll interval to watch credential file metadata instead of polling the API

- Auto-recover when credentials change, while still supporting manual refresh and restart flows

Updated translations
2026-04-19 15:36:20 +10:00
Craig Constable
b5ae662084 Merge pull request #15 from itskolbyk/fix/token-expired-notification 2026-04-19 13:55:46 +10:00
Craig Constable
3bc9be442e v1.3.3
feat: add Traditional Chinese localisation

- Thanks to @owovouo for the translation work in PR #13
2026-04-19 13:46:08 +10:00
Craig Constable
b0fcd92af4 v1.3.2
fix: resolve taskbar positioning deadlock

- Thanks to @owovouo and @aa333 for surfacing and working on this in PR #13 and PR #14
2026-04-19 12:58:50 +10:00
Kolby Kallweit
1d5c46fd99 fix: show balloon notification when OAuth token is fully expired 2026-04-18 11:41:56 -05:00
Craig Constable
a407f69453 v1.3.1
- Add Korean localization

- Localize 'Show Widget' label

- Thanks to @u-naro for the contribution in PR #9
v1.3.1
2026-04-07 16:36:52 +10:00
Craig Constable
b4801ff434 Merge pull request #9 from u-naro/feat/korean-localization 2026-04-07 16:26:59 +10:00
u_naro
a37d9632c2 feat: localize "Show Widget" and session/weekly window labels
- Add `show_widget` field to Strings struct and all 6 language files
- Replace hardcoded "Show Widget" in window.rs with strings.show_widget
- Translate session_window ("5시간") and weekly_window ("7일") for Korean

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 12:55:05 +09:00
u_naro
830f6f4c9b feat: add Korean (한국어) localization
Add Korean language support with full UI translations including
menu items, update messages, and time format suffixes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 12:46:56 +09:00
Craig Constable
643cc0a8b6 v1.3.0
- Added a native system tray icon that shows current 5-hour usage as a percentage badge.

- Added tray icon tooltip support showing both 5h and 7d countdown/usage values.

- Added tray icon interactions: left-click toggles the taskbar widget, right-click opens the context menu.

- Anchored widget to the bottom of the taskbar

- Added embedded app icon loading so tray fallback uses the app's own icon.

- Updated countdown timer logic to stop cases where 61m is shown

- Updated README.md
v1.3.0
2026-03-31 09:30:35 +10:00
Craig
1d8ec6cad0
Merge pull request #6 from usamaiqb/feature/tray-icon
- Added a native system tray icon with a live usage badge for the current 5-hour window.
- Left-clicking the tray icon now toggles the taskbar widget on and off.
- Right-click tray menu support now mirrors the widget menu, including refresh, startup, position reset, language, updates, and exit.
- The app now remembers whether the taskbar widget was hidden or visible between launches.
- Improved Windows app identity by using the proper app name and embedded icon metadata in shell surfaces.
- Refined tray icon styling and usage-state colouring for clearer at-a-glance monitoring.
2026-03-31 08:18:01 +10:00
Craig Constable
d52bfea21b Merge main into pr-6 2026-03-31 08:02:34 +10:00
Craig Constable
77bd36d3e0 Prepare 1.2.11 changes on pr-6 2026-03-31 08:00:25 +10:00
Craig Constable
ba84737ffb v1.2.10
- Anchor monitor to the bottom of the taskbar to help with any positioning issues
2026-03-30 12:46:14 +10:00
usamaiqb
40d3d1f7e1 misc 2026-03-28 12:46:02 +05:00
usamaiqb
451c205de4 update readme 2026-03-28 12:42:13 +05:00
usamaiqb
5587905329 source code 2026-03-27 17:19:33 +05:00
Craig Constable
7ef75f4c0b v1.2.9
- Improved vertical placement
v1.2.9
2026-03-27 22:01:49 +10:00
Craig Constable
65cf2b5d16 v1.2.8
- Fixed update process for portable vs WinGet installs
v1.2.8
2026-03-26 09:35:15 +10:00
Craig Constable
9c8f73cf69 v1.2.7
- Updated readme for WinGet support
2026-03-26 09:04:22 +10:00
Craig Constable
f527e82928 v1.2.6
- Added --diagnose parameter for troubleshooting startup issues
v1.2.6
2026-03-25 13:22:30 +10:00
Craig Constable
110ae4ac58 v1.2.5
- Added update dialog after manual check for updates when an update is found
2026-03-23 19:52:33 +10:00
Craig
81a26eaf61
v1.2.4
Merge pull request #4 from jacobdwyer16/fix/wsl-timeout
- Added timeout to WSL credential lookups
v1.2.4
2026-03-21 08:39:32 +10:00
Jacob Dwyer
e517eb948b add timeout to WSL credential lookups
wsl.exe -l -q can hang indefinitely on some systems (e.g. WSL
installed but not fully configured), which blocks the poll thread
forever and prevents any usage data from loading.

Adds a run_with_timeout helper (5s deadline) and uses it for both
list_wsl_distros and read_wsl_credentials. The refresh paths
already had timeouts — these two were missed.
2026-03-20 08:17:23 -05:00
Craig Constable
5e039fa7dc v1.2.3
- Updated README.md
2026-03-19 16:25:22 +10:00
Craig Constable
6d03532d50 v1.2.2
- Split localization into seperate files for easy management and contributions
2026-03-19 11:57:34 +10:00
Craig Constable
e28bc51ab1 v1.2.1
- Added WinGet support
2026-03-18 19:30:41 +10:00
Craig Constable
832e70fd72 v1.2.0
- Added check for updates and ability to self-update
v1.2.0
2026-03-18 14:53:30 +10:00