Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>1.45.9</Version>
<Version>1.45.10</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(SelfContained)' == 'true'">
<RuntimeFrameworkVersion>10.0.15</RuntimeFrameworkVersion>
Expand Down
6 changes: 5 additions & 1 deletion docs/FOLDER_MONITORING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The visible scan shares one metadata budget across all configured drives: at mos

A spinner appears immediately to the right of a drive's capacity label while uncached directory measurement is active. Cached traversal, permission requests and idle waits do not keep it spinning. It clears after every work slice, completion, cancellation and failure, and does not spin for unrelated drives. The tooltip reports indexed folder/file counts so a large first index shows actual progress. Its animation stops when the indicator is hidden.

The Windows gauge keeps drive metadata above a separate12px allocation bar. Tracked folders use opaque colors with diagonal texture and visible separators; other used space is neutral and free space stays unfilled. Wide folder segments show their share directly. Small segments retain their measured width and expose the exact share on hover. Drives without tracked folders use the same used/free scale.
The Windows gauge keeps drive metadata above a separate12px allocation bar. Tracked folders use opaque colors with diagonal texture; other used space is neutral and free space stays unfilled. Wide folder segments show their share directly. A positive allocation smaller than one screen pixel gets one colored pixel, with separators reserved for wider segments. The tooltip retains the actual allocation and share. Drives without tracked folders use the same used/free scale.

CPU, memory, GPU and VRAM use the same separated metadata/current-percentage bars. Quarter marks help compare utilization; missing readings stay empty with an unavailable value. Historical trend graphs remain in the resource tooltip rather than behind the text.

Expand All @@ -24,6 +24,10 @@ Up to eight folders can be tracked per drive. Paths must be absolute and inside

Folder measurements run independently after configuration changes. The initial measurement reads tracked trees in bounded cancellable slices and checkpoints directory snapshots, file allocations and pending changes together. Windows filesystem notifications wake the indexer; journal replay identifies actual changes and ignores timestamp-only activity that cannot change allocation. Notifications are grouped for two seconds, and unchanged subtrees are not enumerated again. Cached readings remain available between slices. Root/ancestor identity is checked when restoring an index, rather than repeatedly while unchanged monitoring is idle. Allocation totals for unrelated drives are reused. New or renamed trees are measured at their new paths, deleted entries are removed, and hard-link allocation is counted once per drive. Idle folders have no recurring full-tree scan. Very large first indexes can take longer than one minute and retain completed work when closed.

The monitor retains each drive's journal status across scan slices. A filesystem change triggers journal replay only on the affected drive with a readable journal. A drive without journal support, such as a mapped drive, can finish its first bounded measurement and update changed directories from live notifications. The monitor rechecks journal support when the watcher resets or the user requests a refresh. Idle index retries consult known failures and reuse successful directory snapshots.

Metadata changes on a tracked folder itself recheck its identity and listing access. Directory timestamp notices generated by traversal do not invalidate their parent listings. Structural changes, file allocation changes, and attribute or security notifications still refresh the affected data. A routine file change does not discard the folder's directory snapshots.

Each completed folder/work slice is published immediately. Indexing does not overlap or delay existing disk I/O samples or the UI thread. Removed configurations cancel pending work, and version checks prevent old results from reappearing. Lost notifications use retained journal coverage where available; missing ranges require rebuilding affected data. Deleted roots are watched through an existing ancestor until they return. Unavailable watchers report partial coverage; failed observations and connections retry on the existing sixty-second schedule. Empty, missing, inaccessible, partial, cached and pending readings remain distinct. Tracked file contents are unchanged. Administrative approval is requested only after the user activates the journal-setup lock.

Index-owned SQLite writes are excluded from change invalidation to prevent self-triggered indexing. Their actual allocation is still measured and included when the cache directory is inside a tracked folder. Private cache maintenance is separate from recursive user-folder traversal.
Expand Down
8 changes: 8 additions & 0 deletions docs/RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Binary releases

## 1.45.10

Windows account cards can open a dedicated Codex window for each additional account and focus it again while other accounts keep running. Each window has its own login, native home and chat history. Switch verifies its live user and workspace before bringing it forward. The dashboard receives active chat counts and discards an observation when the login changes or the connection closes. Separate account windows are available in manual mode with credit use allowed.

Account recovery now shows the current stage, time remaining, retries and cancellation in a dedicated status area. IPC reconnection and chat resume retries reuse a confirmed desktop launch. Empty restarts refresh the chat snapshot before replacement. Ambiguous Continue delivery retains its original message identity. The Windows Store execution alias preserves the registered taskbar identity for account windows.

Drive usage bars retain small tracked-folder segments. Folder monitoring reuses unchanged readings to reduce repeated traversal. The Windows 11 test suite exercised two fictional accounts, focus after rediscovery and reopening one closed window while the other stayed alive. The screenshots show production WPF controls rendered with fictional accounts and a pending recovery. [Earlier account actions](media/release-1.45.10/previous-actions-ko.png) · [Open and Focus](media/release-1.45.10/account-windows-ko.png)

[Release1.45.0](https://github.com/Gaebabi/codex-switch/releases/tag/v1.45.0) adds live Windows native/custom model selection, native encrypted-history recovery and deferred custom tool discovery. It retains native OpenAI operation with the Switch editor closed after explicit initial backend setup. macOS/Linux retain their existing support scope. [Changes, setup and publication gates](development/RELEASE_1_45_0.md). The release verification manifest records package provenance and publication checks.

[Release1.44.0](https://github.com/Gaebabi/codex-switch/releases/tag/v1.44.0) simplifies Home around the existing quota tanks: Add/Refresh remain visible while one Settings gear groups global actions. It includes the corrected built-in image endpoints and bounded concurrent handling for image-heavy chats. Windows x64, macOS15+ Apple Silicon/Intel and Linux x64/ARM64 integration preview packages are published; all twelve public assets match their sizes/SHA256, and the Windows ZIP passes99self-tests. [Verification and installation gates](development/RELEASE_1_44_0.md).
Expand Down
12 changes: 10 additions & 2 deletions docs/development/ACCOUNT_AUTOMATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,20 @@ The **Auto Switch** toolbar menu contains a persistent On/Off toggle and the nex

Choose **Expires soonest first** (default) to consume the earliest known subscription date among eligible accounts, then maximize the lowest remaining percentage across quota windows. Past dates retain priority when fresh usage still qualifies; unknown dates follow known dates, and equal/unknown dates use remaining usage and stable account keys. A past date never overrides a server restriction or creates entitlement. This compares reported percentages, not inferred token counts or purchased credits. **Custom priority** chooses the first eligible account in the saved order. Each account's menu has **Priority 1/2/...**; choosing a position moves that account there, shifts the others and selects custom mode without enabling automation. The menu also shows the next eligible account even before the current quota crosses its threshold, using the same candidate guards/ranking. This read-only forecast does not reserve or start a handoff, can change after a refresh, and retains an existing pending-recovery target. It refreshes on menu opening and normal UI updates; there is no extra poller. No eligible account is explicit. The toolbar tooltip retains On/Off state and the forecast. The menu also shows the complete custom order. Invalid or restricted high-priority accounts are skipped; priority never bypasses freshness, minimum remaining, cooldown or recovery guards. Unranked/new accounts follow saved ranks in stable key order. Returning to automatic mode preserves the saved custom order.

Automatic handoff uses the same checkpointed backup, normal shutdown, account application, launch and eligible continuation coordinator as manual switching. Checkpoints are saved before shutdown and credential application. A transient I/O, discovery timeout or native launch failure gets at most **two additional retries**, with a one-second cancellable wait between attempts. The retry budget is shared across all stages and saved before each retry. Both UIs keep the target action disabled in its current switching/resuming state throughout these retries; **Recover** appears only after recovery is exhausted or a non-retryable refusal stops the operation. Confirmed names, applied credentials and completed chats are preserved. Each retry checks account identity again; a write that already reached the target is reconciled without applying it twice. Ambiguous Continue delivery can only be observed, never resent.
On Windows, manual account cards offer **Open** or **Focus**. Each additional account has a private native home and Electron profile on the same machine. Chat history belongs to that account window. Open discovers the window from its executable, profile argument and process creation time. An existing account window confirms the selected user and workspace through its live app-server before Switch brings it forward. Closing and reopening Switch rediscovers running windows. The dashboard subscribes to active chat counts for verified account windows. A login change or disconnection invalidates that observation. This view shares activity counts and keeps each account's conversation content in its own home.

Cancellation and account mismatch stop the switch immediately. Integrity or permission refusals do not trigger a retry. After cancellation or a failed account application following confirmed shutdown, the coordinator retains one bounded (35-second) safety attempt to reopen the recorded source/target desktop without changing credentials or sending Continue. Exhausted launch retries do not add a fourth launch. A failed/unconfirmed shutdown never invokes the launcher or applies credentials; its recovery record remains available. A failed automatic handoff disables further automatic switching. **Recover** remains available on the recorded target even while the original account is still current, and other targets cannot replace the pending plan. Clicking Recover explicitly starts a fresh two-retry budget.
Automatic switching and credit protection manage the primary session. Separate account windows use manual mode with credit use allowed. Existing recovery and login application actions remain explicit. Removing a registration for a closed managed window removes its file login and retains its local chat history.

Coordinated account handoff saves checkpoints for chat backup, normal shutdown, credential application, native launch, IPC discovery and chat resume. The switch saves a checkpoint before shutdown or credential application. Transient failures share up to **two additional retries**, saved before each one-second retry wait. An unconfirmed shutdown or launch that reaches its deadline stops for explicit recovery. Once the native desktop is observed running, IPC and chat retries stay in their own stages. A switch with no chats left to resume completes upon observing the desktop. Each retry checks account identity where it authorizes an action. The coordinator recognizes credentials already applied and only observes a Continue whose delivery is uncertain.

Windows shows the current step, remaining stage time, chat count, retry number and a cancel action in the account header. The budgets are 45 seconds for preparation or normal shutdown, 60 seconds per name backup or account application, 40 seconds for launch, 30 seconds per connection attempt and 90 seconds per chat resume. Model-profile operations have a separate 180-second budget. Cancellation waits for the current operation to settle. After confirmed shutdown and before any launch request, cancellation or a failed application can trigger one 35-second safety attempt to reopen the verified desktop. A failed automatic handoff disables further automation.

**Recover** remains available on the recorded account even while the original account is current. Clicking it starts a fresh two-retry budget. An explicit switch can replace a manual, pre-application same-account restart only when it has zero saved chats and no model or credit action. Recovering that empty restart also captures the current chats again. The original checkpoint stays in place until the same source login and fresh chat capture are both verified.

During a same-account restart, Switch reopens each captured chat and confirms that the native client loaded it. Codex controls automatic continuation. Active goals also retain native continuation ownership during account handoff, including while goal metadata is being restored.

The observed Windows desktop 26.1117.4957.0 used private stdio for its app-server. Switching a saved login in the open window requires both a connection to that server and an operation that can adopt the target login. In a disposable two-login test, a second app-server read login B after the credentials file changed. The original server still reported A through `accountSession/list`. Calling `accountSession/switch` on the original server with B's actual session and workspace IDs returned JSON-RPC error `-32600` on both 0.167.0-alpha.4.1 and 0.171.0-alpha.13. On 0.167.0-alpha.4.1, account and auth refresh requests also left A active. Verify a change of identity on the server serving the desktop before reporting completion.

After the utility restarts, an interrupted automatic plan with no retry reserved gets one persisted recovery attempt, counted within the same two-retry budget. A plan that has already reserved a retry requires manual Recover after a utility restart. Explicit user/lifetime cancellation prevents automatic recovery and retains manual Recover. No indefinite timer/restart loop is allowed. Already completed chats and original Continue message identities survive recovery; ambiguous delivery retains the existing no-resend policy. Disabling automation affects future selection, not a checkpointed handoff already in progress. Recovery cannot guarantee launch when the client is missing or its IPC remains unavailable; the pending plan and error remain available for a later retry.

Both UIs distinguish **Renews** from **Expires** and show **Days left** in Korean calendar days. Subscription data is read from the official first-party `GET /backend-api/accounts/check/v4-2023-04-27` endpoint using the selected account's managed access token and `ChatGPT-Account-ID`. This internal endpoint is observed in the official desktop26.1106.6628.0 billing flow; it is not a documented public API. Only the exact matching account entry is accepted. Active auto-renewal uses `entitlement.renews_at`; a non-renewing subscription uses `expires_at`, then `cancels_at` when expiration is absent. Missing dates stay unknown and malformed dates fail explicitly. Successful queries, including inactive results, replace the encrypted billing snapshot. Login claims are not current billing evidence: even successful token refresh can return an old period. Credential synchronization cannot overwrite a verified billing snapshot. Identity/revision guards discard obsolete results; a billing failure keeps the previous successful timestamp and displays an error while quota refresh remains available. No extra token rotation, account switching, browser cookies or owner restart is needed.
Expand Down
Binary file added docs/media/release-1.45.10/account-windows-ko.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions localization/packs/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@
"restart.title": "Restart Codex",
"restart.help": "Restart Codex with the current login and reopen eligible unfinished chats. Running/completed work is checked before sending Continue.",
"restart.done": "Codex restarted and eligible chats resumed.",
"restart.opened": "Codex wurde neu gestartet.",
"switch.opened": "Das Konto wurde gewechselt und Codex geöffnet.",
"restart.login_changed": "The current login changed or is unavailable. Restart was cancelled.",
"credits.history": "Credits",
"credits.balance": "Guthaben",
Expand Down Expand Up @@ -166,6 +168,35 @@
"auto.threshold": "Unter {0}% verbleibend",
"auto.paused": "Automatischer Wechsel pausiert. Beim ausstehenden Konto Fortsetzen wählen.",
"switch.recover": "Fortsetzen",
"switch.window_alias": "Aktivieren Sie den App-Ausführungsalias für ChatGPT Desktop in Windows.",
"switch.active_chats": "Laufende Chats · {0}",
"switch.window_peer": "Der Server des Fensters konnte nicht bestätigt werden.",
"switch.window_parent": "Die Verbindung gehört zu einem anderen Fenster.",
"switch.window_policy": "Automatischer Wechsel und Guthabenschutz erfordern eine einzelne Codex-Sitzung.",
"switch.window_policy_change": "Schließen Sie die separaten Kontofenster, bevor Sie diese Einstellung ändern.",
"switch.open_window": "Öffnen",
"switch.show_window": "Anzeigen",
"switch.find_action": "Fenster suchen",
"switch.window_help": "Codex für dieses Konto öffnen oder in den Vordergrund holen.",
"switch.primary_ready": "Das Hauptfenster von Codex ist im Vordergrund.",
"switch.find_window": "Kontofenster wird gesucht…",
"switch.window_ready": "Codex-Fenster für {0} geöffnet.",
"switch.window_focus": "Wählen Sie das Kontofenster in der Taskleiste.",
"switch.window_lost": "Das Fenster wurde geschlossen. Wählen Sie erneut Wechseln.",
"switch.window_wait": "Prüfen Sie den Start oder die Anmeldung von Codex.",
"switch.window_identity": "Das Konto des Fensters konnte nicht bestätigt werden.",
"switch.window_relogin": "Melden Sie sich mit diesem Konto erneut an.",
"switch.window_busy": "Schließen Sie das Kontofenster, um die Anmeldung zu übernehmen oder die Registrierung zu entfernen.",
"switch.window_shutdown": "Schließen Sie separate Kontofenster vor dem Neustart von Codex.",
"switch.discovering": "Anmeldung und laufende Chats werden geprüft…",
"switch.connecting": "Codex-Chatverbindung wird geprüft…",
"switch.model_profile": "Codex-Modellprofil wird geprüft…",
"switch.recover_pending": "Wählen Sie beim betreffenden Konto „Fortsetzen“, um den ausstehenden Wechsel oder Neustart abzuschließen.",
"switch.countdown": "{0} · Noch bis zu {1} s",
"switch.settling": "{0} · Ergebnis wird geprüft",
"switch.cancelling": "Kontowechsel wird abgebrochen…",
"switch.timeout": "{0} Das Zeitlimit von {1} s wurde erreicht.",
"switch.retrying": "Wiederholung {0} von {1}",
"switch.restart_failed": "Codex konnte nicht starten. Fortsetzen erneut versuchen: {0}",
"io.read": "Datenträger lesen",
"io.write": "Datenträger schreiben",
Expand Down
Loading
Loading