refactor(agents): drop stale auth constants · openclaw/openclaw@2c3c4b0
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,24 +22,6 @@ export const OPENAI_CODEX_DEFAULT_PROFILE_ID = "openai:default";
|
22 | 22 | /** @deprecated MiniMax provider-owned CLI profile id; do not use from third-party plugins. */ |
23 | 23 | export const MINIMAX_CLI_PROFILE_ID = "minimax-portal:minimax-cli"; |
24 | 24 | |
25 | | -/** File-lock policy for auth profile store reads/writes. */ |
26 | | -export const AUTH_STORE_LOCK_OPTIONS = { |
27 | | -retries: { |
28 | | -retries: 10, |
29 | | -factor: 2, |
30 | | -minTimeout: 100, |
31 | | -maxTimeout: 10_000, |
32 | | -randomize: true, |
33 | | -}, |
34 | | -stale: 30_000, |
35 | | -} as const; |
36 | | - |
37 | | -// Separate from AUTH_STORE_LOCK_OPTIONS for independent tuning: this lock |
38 | | -// serializes the cross-agent OAuth refresh (see issue #26322), whereas |
39 | | -// AUTH_STORE_LOCK_OPTIONS guards per-store refresh updates. Keeping them |
40 | | -// distinct lets us widen the refresh lock's timeout/retry budget without |
41 | | -// affecting the hot-path auth-store writers. |
42 | | -// |
43 | 25 | // Invariant: OAUTH_REFRESH_CALL_TIMEOUT_MS < OAUTH_REFRESH_LOCK_OPTIONS.stale |
44 | 26 | // so a legitimate refresh's critical section always finishes well before |
45 | 27 | // peers would treat the lock as reclaimable. Violating this invariant re- |
@@ -70,8 +52,6 @@ export const OAUTH_REFRESH_CALL_TIMEOUT_MS = 120_000;
|
70 | 52 | |
71 | 53 | /** Freshness window for syncing external CLI auth into auth profiles. */ |
72 | 54 | export const EXTERNAL_CLI_SYNC_TTL_MS = 15 * 60 * 1000; |
73 | | -/** Near-expiry threshold that triggers external CLI credential resync. */ |
74 | | -export const EXTERNAL_CLI_NEAR_EXPIRY_MS = 10 * 60 * 1000; |
75 | 55 | |
76 | 56 | /** Auth profile subsystem logger. */ |
77 | 57 | export const log = createSubsystemLogger("agents/auth-profiles"); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。