The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(desktop): record the partition-name invariant and the one-time re-sign-in
teknium1d4d9cf16d9ad
diff --git a/apps/desktop/AGENTS.md b/apps/desktop/AGENTS.mdindex 73ce47a2d4b..69d99240d76 100644--- a/apps/desktop/AGENTS.md+++ b/apps/desktop/AGENTS.md@@ -134,6 +134,11 @@ Two auth-flavored corollaries worth naming because they are easy to get wrong:- **A connection test must exercise the leg you'll actually use.** An HTTPstatus probe passing while the WebSocket/auth leg fails is a false positivethat ships as "it said connected but nothing works."+- **Cookie-jar partition names contain nothing Electron percent-escapes.** A+ `persist:` partition becomes a `Partitions/<escaped name>` folder; a folder+ name with `%3A` (an escaped `:`) gets a cookie store Windows can neither read+ nor write, so the session silently never persists. `electron/oauth-partition.ts`+ pins the invariant; renaming a partition signs its users out once — say so.## Compatibility without carrying the past foreverdiff --git a/apps/desktop/electron/oauth-partition.ts b/apps/desktop/electron/oauth-partition.tsindex e014c6a106f..746df0ec2ad 100644--- a/apps/desktop/electron/oauth-partition.ts+++ b/apps/desktop/electron/oauth-partition.ts@@ -42,8 +42,15 @@ export const LEGACY_OAUTH_PARTITION = 'persist:hermes-remote-oauth'// jar seeded into it reads back zero cookies, `cookies.set()` never reaches// disk, and every cookie-authenticated request 401s as `no_cookie`). A jar// the app cannot see means the dial always looks signed-out and the user is-// asked to sign in again on every connect. Keep this path component to-// [A-Za-z0-9._-] — never a character Electron has to escape.+// asked to sign in again on every connect. The whole path component (prefix+// AND the sanitized id below) must stay within the characters Electron never+// percent-escapes — the invariant test pins "no ':' and no '%'".+//+// The name used to be `${LEGACY_OAUTH_PARTITION}:conn:<id>` (#92183). That+// jar never worked on Windows; on macOS/Linux a non-primary remote signed in+// under the old name is re-prompted ONCE after this change (the old+// `Partitions/hermes-remote-oauth%3Aconn%3A<id>` folder is left on disk,+// inert). One name on every platform beats a per-OS partition scheme.const CONNECTION_PARTITION_PREFIX = `${LEGACY_OAUTH_PARTITION}-conn-`export interface PartitionRegistrySnapshot {