Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Drop the anonymous pull floor for pull-only sync (#5424)

miles-kt-inkeepd9844b543b30
diff --git a/.changeset/drop-anonymous-pull-floor.md b/.changeset/drop-anonymous-pull-floor.md
new file mode 100644
index 000000000..6e7c636ae
--- /dev/null
+++ b/.changeset/drop-anonymous-pull-floor.md
@@ -0,0 +1,5 @@
+---
+'@inkeep/open-knowledge': patch
+---
+
+Pull-only sync now always uses your configured pull interval. Signed-out followers are no longer held to one pull every 3 minutes.
diff --git a/docs/content/features/github-sync.mdx b/docs/content/features/github-sync.mdx
index b44855edb..2a18b2918 100644
--- a/docs/content/features/github-sync.mdx
+++ b/docs/content/features/github-sync.mdx
@@ -76,8 +76,6 @@ Change either one in **Settings → Sync → Advanced** (the disclosure is colla
After repeated failures, OpenKnowledge slows each direction down independently: 3 failures in a row hold the next attempt for at least 5 minutes, 5 failures for at least 15 minutes, and 8 failures for at least 1 hour. These are floors, not replacements: if your configured interval is already longer than the tier, the interval stands. The two directions back off on separate counters — push failures do not slow down pulls, and pull failures do not slow down pushes. A successful sync in a direction resets that direction's backoff; a manual trigger from the sync indicator (or clicking Pull/Push) resets both directions immediately. One cross-direction case: if pushes were backing off because the network was unreachable, the next successful update check releases that backoff straight away — it is direct proof the remote is reachable again. A backoff from a rejected push (a protected branch, say) is left alone, since reaching the remote says nothing about whether it will accept the write.
-While you are signed out, **Auto (Pull only)** checks for updates at most every 3 minutes no matter what you choose here — a signed-out client is anonymous to GitHub, and the limit protects the repository from the combined polling of everyone following it. Auto (Pull and Push) is unaffected: pushing requires being signed in to begin with.
-
When you open a freshly cloned project, you will be prompted to enable sync. If you have push access to the repository, you will be prompted to enable **Auto (Pull and Push)**. If you have read-only access, you will be prompted to enable **Auto (Pull only)**. You can change the sync mode from the sync popover (the <Cloud role="img" aria-label="Sync" className="inline size-4 align-text-bottom" /> icon) or from **Settings → Sync** at any time.
If you want to set a default sync setting for future collaborators, go to the project settings page and navigate to the **Sync** → **Shared default** section. This writes [`autoSync.default`](/docs/reference/configuration) — one of `off` (Manual), `follow` (Auto, pull only), or `full` (Auto, pull and push) — to the project's committed `.ok/config.yml`, pre-answering the enable-sync prompt for everyone who clones the repo; each machine's own auto-sync choice overrides it.
diff --git a/docs/content/reference/configuration.mdx b/docs/content/reference/configuration.mdx
index 55243c0ea..62fa11c56 100644
--- a/docs/content/reference/configuration.mdx
+++ b/docs/content/reference/configuration.mdx
@@ -54,7 +54,7 @@ A key set in a file more specific than its scope (a user-scope key in `.ok/confi
| `appearance.sidebar.pinnedProjectSkills` | string[] | `[]` | project-local | Project-scope skills pinned to the top of the dock, by name. A pinned skill keeps its normal row too, so a source group still lists everything from that source. |
| `appearance.sidebar.pinnedGlobalSkills` | string[] | `[]` | user | Global-scope skills pinned to the top of the dock, by name. Stored per user rather than per project, so a pinned global skill follows you into every project. |
| `autoSync.mode` | `"off" \| "follow" \| "full" \| null` | `null` | project-local | Per-machine sync mode for this project: `off` (shown as **Manual** — nothing scheduled; the manual pull/push actions still work), `follow` (shown as **Auto (Pull only)** — pull remote changes on a schedule, never push; the earlier value `pull` is accepted as an alias), `full` (shown as **Auto (Pull and Push)** — bidirectional). `null` means "unanswered"; the editor's onboarding modal triggers on first remote-detected open. Supersedes `autoSync.enabled`. |
-| `autoSync.pullIntervalSeconds` | `number` | `30` | project-local | Seconds between scheduled pulls while `autoSync.mode` is `follow` or `full` (30–3600). Shown in **Settings → Sync** as **Check for updates every**. An unauthenticated follower is additionally floored to a 3-minute anonymous poll minimum, so a shorter value has no effect while signed out. |
+| `autoSync.pullIntervalSeconds` | `number` | `30` | project-local | Seconds between scheduled pulls while `autoSync.mode` is `follow` or `full` (30–3600). Shown in **Settings → Sync** as **Check for updates every**. |
| `autoSync.pushIntervalSeconds` | `number` | `60` | project-local | Seconds between scheduled pushes while `autoSync.mode` is `full` (30–3600). Shown in **Settings → Sync** as **Push my edits every**. Ignored in every other mode, which never pushes on a schedule. Each cycle with pending edits authors a commit, so a shorter interval means more, smaller commits in shared history. |
| `autoSync.enabled` | `boolean \| null` | `null` | project-local | Legacy per-machine auto-sync toggle, superseded by `autoSync.mode`. Read only when `mode` is absent (`true` = full, `false` = off). `null` means "unanswered". |
| `autoSync.default` | `"off" \| "follow" \| "full" \| boolean \| null` | `null` | project | Committed seed for each machine's first-open sync mode: `off` / `follow` / `full`, or the legacy boolean (`true` = full, `false` = off). `null` = ask. Lets a maintainer pre-answer the onboarding prompt for everyone who clones; a per-machine `autoSync.mode` overrides it. Compatibility note: a committed string value (`off` / `follow` / `full`) is rejected by app versions released before `autoSync.mode` existed, resetting that machine to config defaults until it updates (it never silently syncs). The legacy boolean seed (`true` / `false`) stays readable by older apps — commit `follow` only once collaborators are on a current version. |
diff --git a/packages/app/src/components/settings/SettingsDialogBody.sync-mode.dom.test.tsx b/packages/app/src/components/settings/SettingsDialogBody.sync-mode.dom.test.tsx
index aca49c79f..d2da83ece 100644
--- a/packages/app/src/components/settings/SettingsDialogBody.sync-mode.dom.test.tsx
+++ b/packages/app/src/components/settings/SettingsDialogBody.sync-mode.dom.test.tsx
@@ -486,25 +486,6 @@ describe('Settings Sync section — cycle cadence controls', () => {
autoSync: { pullIntervalSeconds: 300, pushIntervalSeconds: 900 },
});
});
-
- test('a signed-out follower is told the anonymous floor overrides the setting', async () => {
- syncStatus = {
- ...syncStatus,
- pushPermission: { checkStatus: 'denied', deniedReason: 'not-authenticated' },
- } as SyncStatus;
-
- await renderSyncSection();
-
- expect(screen.queryByTestId('settings-sync-anon-floor-hint')).not.toBeNull();
- });
-
- test('a signed-in follower sees no anonymous-floor caption', async () => {
- syncStatus = { ...syncStatus, pushPermission: { checkStatus: 'allowed' } } as SyncStatus;
-
- await renderSyncSection();
-
- expect(screen.queryByTestId('settings-sync-anon-floor-hint')).toBeNull();
- });
});
describe('Settings Sync section — Advanced disclosure intent', () => {
diff --git a/packages/app/src/components/settings/SyncSection.tsx b/packages/app/src/components/settings/SyncSection.tsx
index a67e68a35..9874f30cd 100644
--- a/packages/app/src/components/settings/SyncSection.tsx
+++ b/packages/app/src/components/settings/SyncSection.tsx
@@ -165,9 +165,6 @@ function SyncSectionContent({
status?.pushPermission?.checkStatus === 'denied' &&
status.pushPermission.deniedReason !== 'not-authenticated' &&
!notFoundAsIdentity;
- const isSignedOut =
- status?.pushPermission?.checkStatus === 'denied' &&
- status.pushPermission.deniedReason === 'not-authenticated';
const parkedOnNotFound = isParkedOnNotFoundAsIdentity(status);
const pausedNotice = !status?.pausedReason ? null : parkedOnNotFound ? (
formatSyncFailureCode('auth-not-found-as-identity')
@@ -496,17 +493,6 @@ function SyncSectionContent({
</SelectContent>
</Select>
</div>
- {isSignedOut && (
- <p
- className="text-1sm text-muted-foreground"
- data-testid="settings-sync-anon-floor-hint"
- >
- <Trans>
- While you're signed out, updates are checked at most every 3 minutes regardless
- of this setting.
- </Trans>
- </p>
- )}
{localMode === 'full' && (
<div className="flex items-start justify-between gap-4 border-t pt-3">
<div className="min-w-0 flex-1">
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 09c1f3f1b..c31ea712a 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -4005,9 +4005,6 @@
"cFgW76": ["الدمج محظور"],
"cH0dkG": ["كان ينقصه ميزة أحتاجها"],
"cHhH3i": ["أداة git مطلوبة"],
- "cIFYZn": [
- "أثناء تسجيل خروجك، يجري التحقق من التحديثات كل 3 دقائق على الأكثر بغض النظر عن هذا الإعداد."
- ],
"cIptmH": ["في تطبيق Claude Desktop"],
"cK5W4m": [["0"], " يفتح عبر رابط ولا يقبل المرفقات — اختر وكيلًا داخل التطبيق بدلًا من ذلك."],
"cLP0Lf": ["مصدر مهارة بعيد"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index f9828371f..67086bb48 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -16514,10 +16514,6 @@ msgstr "أين ينبغي أن يعيش؟"
msgid "Which skill"
msgstr "أي مهارة"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "أثناء تسجيل خروجك، يجري التحقق من التحديثات كل 3 دقائق على الأكثر بغض النظر عن هذا الإعداد."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "المسافات البيضاء"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index a956502d3..821d51597 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -3394,7 +3394,6 @@
"cFgW76": ["মার্জ করা আটকে আছে"],
"cH0dkG": ["আমার যে বৈশিষ্ট্যটি দরকার ছিল সেটি ছিল না"],
"cHhH3i": ["একটি প্রয়োজনীয় git টুল"],
- "cIFYZn": ["আপনি সাইন আউট থাকা অবস্থায় এই সেটিং যা-ই হোক, আপডেট সর্বোচ্চ প্রতি 3 মিনিটে একবার দেখা হয়।"],
"cIptmH": ["Claude Desktop App-এ"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index 7fc90cf0d..a110bf539 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -16510,10 +16510,6 @@ msgstr "এটি কোথায় থাকবে?"
msgid "Which skill"
msgstr "কোন স্কিল"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "আপনি সাইন আউট থাকা অবস্থায় এই সেটিং যা-ই হোক, আপডেট সর্বোচ্চ প্রতি 3 মিনিটে একবার দেখা হয়।"
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "ফাঁকা জায়গা"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index 0f25adafc..ed6a225ca 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -3483,9 +3483,6 @@
"cFgW76": ["Blocked from merging"],
"cH0dkG": ["It was missing a feature I needed"],
"cHhH3i": ["a required git tool"],
- "cIFYZn": [
- "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
- ],
"cIptmH": ["In the Claude Desktop App"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index 605e6af89..1f83d9bef 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -16514,10 +16514,6 @@ msgstr "Where should it live?"
msgid "Which skill"
msgstr "Which skill"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Whitespace"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index 863370246..4537425ed 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -4032,9 +4032,6 @@
"cFgW76": ["Fusión bloqueada"],
"cH0dkG": ["Le faltaba una función que necesitaba"],
"cHhH3i": ["una herramienta de git necesaria"],
- "cIFYZn": [
- "Mientras tengas la sesión cerrada, las actualizaciones se buscan como mucho cada 3 minutos, independientemente de este ajuste."
- ],
"cIptmH": ["En la aplicación Claude Desktop"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index f490b467c..86c849cbe 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -16514,10 +16514,6 @@ msgstr "¿Dónde debería vivir?"
msgid "Which skill"
msgstr "Qué habilidad"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "Mientras tengas la sesión cerrada, las actualizaciones se buscan como mucho cada 3 minutos, independientemente de este ajuste."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Espacios en blanco"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index 2e9aa5433..021c80bc5 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -4089,9 +4089,6 @@
"cFgW76": ["Fusion bloquée"],
"cH0dkG": ["Il manquait une fonctionnalité dont j'avais besoin"],
"cHhH3i": ["un outil git requis"],
- "cIFYZn": [
- "Tant que vous êtes déconnecté, les mises à jour sont recherchées au plus toutes les 3 minutes, quel que soit ce réglage."
- ],
"cIptmH": ["Dans l'application Claude Desktop"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index 402f32771..39fbc48f6 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -16514,10 +16514,6 @@ msgstr "Où doit-elle résider ?"
msgid "Which skill"
msgstr "Quelle compétence"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "Tant que vous êtes déconnecté, les mises à jour sont recherchées au plus toutes les 3 minutes, quel que soit ce réglage."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Espaces"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index e00f71e3b..9a5a0d869 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -3389,7 +3389,6 @@
"cFgW76": ["मर्ज करने से रोका गया"],
"cH0dkG": ["इसमें वह सुविधा नहीं थी जो मुझे चाहिए थी"],
"cHhH3i": ["एक आवश्यक git टूल"],
- "cIFYZn": ["जब तक आप साइन आउट हैं, इस सेटिंग के बावजूद अपडेट अधिकतम हर 3 मिनट में जाँचे जाते हैं।"],
"cIptmH": ["Claude Desktop App में"],
"cK5W4m": [["0"], " एक लिंक से खुलता है और अनुलग्नक स्वीकार नहीं करता — इसके बजाय ऐप के भीतर का एजेंट चुनें।"],
"cLP0Lf": ["रिमोट स्किल स्रोत"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index dc79d3a84..18e43b087 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -16510,10 +16510,6 @@ msgstr "यह कहाँ रहना चाहिए?"
msgid "Which skill"
msgstr "कौन सी स्किल"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "जब तक आप साइन आउट हैं, इस सेटिंग के बावजूद अपडेट अधिकतम हर 3 मिनट में जाँचे जाते हैं।"
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "रिक्त स्थान"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 974f965ed..bdd9229f4 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -3511,9 +3511,6 @@
"cFgW76": ["Merge diblokir"],
"cH0dkG": ["Ada fitur yang saya butuhkan tetapi tidak ada"],
"cHhH3i": ["sebuah alat git yang diperlukan"],
- "cIFYZn": [
- "Selama Anda keluar dari akun, pembaruan diperiksa paling cepat setiap 3 menit, terlepas dari pengaturan ini."
- ],
"cIptmH": ["Di aplikasi Claude Desktop"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index 80589ebab..ff6eb551d 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -16510,10 +16510,6 @@ msgstr "Di mana ia sebaiknya berada?"
msgid "Which skill"
msgstr "Keterampilan yang mana"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "Selama Anda keluar dari akun, pembaruan diperiksa paling cepat setiap 3 menit, terlepas dari pengaturan ini."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Spasi"
diff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.json
index 498380d94..64a6239a8 100644
--- a/packages/app/src/locales/ko/messages.json
+++ b/packages/app/src/locales/ko/messages.json
@@ -3354,7 +3354,6 @@
"cFgW76": ["병합이 차단됨"],
"cH0dkG": ["필요한 기능이 없었습니다"],
"cHhH3i": ["필수 git 도구"],
- "cIFYZn": ["로그아웃 상태에서는 이 설정과 관계없이 업데이트를 최대 3분에 한 번만 확인합니다."],
"cIptmH": ["Claude Desktop App에서"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.po
index 28f88313d..5a8b5987b 100644
--- a/packages/app/src/locales/ko/messages.po
+++ b/packages/app/src/locales/ko/messages.po
@@ -16514,10 +16514,6 @@ msgstr "어디에 둘까요?"
msgid "Which skill"
msgstr "어떤 스킬"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "로그아웃 상태에서는 이 설정과 관계없이 업데이트를 최대 3분에 한 번만 확인합니다."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "공백"
diff --git a/packages/app/src/locales/pl/messages.json b/packages/app/src/locales/pl/messages.json
index 89f7f5665..14d4da7ae 100644
--- a/packages/app/src/locales/pl/messages.json
+++ b/packages/app/src/locales/pl/messages.json
@@ -4105,9 +4105,6 @@
"cFgW76": ["Zablokowane przed scaleniem"],
"cH0dkG": ["Brakowało funkcji, których potrzebowałem"],
"cHhH3i": ["wymagane narzędzie git"],
- "cIFYZn": [
- "Gdy jesteś wylogowany, aktualizacje są sprawdzane co najwyżej co 3 minuty, niezależnie od tego ustawienia."
- ],
"cIptmH": ["W aplikacji Claude Desktop"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/pl/messages.po b/packages/app/src/locales/pl/messages.po
index 80c3e1565..f58986c8d 100644
--- a/packages/app/src/locales/pl/messages.po
+++ b/packages/app/src/locales/pl/messages.po
@@ -16514,10 +16514,6 @@ msgstr "Gdzie ma się znajdować?"
msgid "Which skill"
msgstr "Która umiejętność"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "Gdy jesteś wylogowany, aktualizacje są sprawdzane co najwyżej co 3 minuty, niezależnie od tego ustawienia."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Białe znaki"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index f5f330af0..61ecda4f8 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -3483,9 +3483,6 @@
"cFgW76": ["ßĺōćķēď ƒŕōḿ ḿēŕĝĩńĝ"],
"cH0dkG": ["Ĩţ ŵàś ḿĩśśĩńĝ à ƒēàţũŕē Ĩ ńēēďēď"],
"cHhH3i": ["à ŕēǫũĩŕēď ĝĩţ ţōōĺ"],
- "cIFYZn": [
- "Ŵĥĩĺē ŷōũ'ŕē śĩĝńēď ōũţ, ũƥďàţēś àŕē ćĥēćķēď àţ ḿōśţ ēvēŕŷ 3 ḿĩńũţēś ŕēĝàŕďĺēśś ōƒ ţĥĩś śēţţĩńĝ."
- ],
"cIptmH": ["Ĩń ţĥē Ćĺàũďē Ďēśķţōƥ Àƥƥ"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index 5930b6b69..53435f0d8 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -16510,10 +16510,6 @@ msgstr ""
msgid "Which skill"
msgstr ""
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr ""
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index f7676a078..3ed03dd14 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -3954,9 +3954,6 @@
"cFgW76": ["Mesclagem bloqueada"],
"cH0dkG": ["Faltava um recurso de que eu precisava"],
"cHhH3i": ["uma ferramenta git necessária"],
- "cIFYZn": [
- "Enquanto você estiver desconectado, as atualizações são verificadas no máximo a cada 3 minutos, independentemente desta configuração."
- ],
"cIptmH": ["No app Claude Desktop"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index f7319c600..b35d7999f 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -16510,10 +16510,6 @@ msgstr "Onde ela deve ficar?"
msgid "Which skill"
msgstr "Qual habilidade"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "Enquanto você estiver desconectado, as atualizações são verificadas no máximo a cada 3 minutos, independentemente desta configuração."
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "Espaços em branco"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index b68b5b678..55fc1d963 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -3568,9 +3568,6 @@
"cFgW76": ["مرج کرنے سے روکا گیا"],
"cH0dkG": ["اس میں وہ خصوصیت نہیں تھی جو مجھے درکار تھی"],
"cHhH3i": ["ایک مطلوبہ git ٹول"],
- "cIFYZn": [
- "جب تک آپ سائن آؤٹ ہیں، اس ترتیب سے قطع نظر اپ ڈیٹس زیادہ سے زیادہ ہر 3 منٹ بعد دیکھی جاتی ہیں۔"
- ],
"cIptmH": ["Claude Desktop App میں"],
"cK5W4m": [
["0"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 0e179f602..6ddaae1d9 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -16514,10 +16514,6 @@ msgstr "یہ کہاں رہنا چاہیے؟"
msgid "Which skill"
msgstr "کون سی مہارت"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "جب تک آپ سائن آؤٹ ہیں، اس ترتیب سے قطع نظر اپ ڈیٹس زیادہ سے زیادہ ہر 3 منٹ بعد دیکھی جاتی ہیں۔"
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "خالی جگہ"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index f66e15e5a..19e4ccda3 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -3061,7 +3061,6 @@
"cFgW76": ["已被阻止合并"],
"cH0dkG": ["它缺少我需要的功能"],
"cHhH3i": ["一个必需的 git 工具"],
- "cIFYZn": ["在你退出登录期间,无论此设置如何,更新最多每 3 分钟检查一次。"],
"cIptmH": ["在 Claude 桌面应用中"],
"cK5W4m": [["0"], " 通过链接打开,不接受附件,请改选应用内智能体。"],
"cLP0Lf": ["远程技能来源"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 2f2d94a9c..048cd30ce 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -16514,10 +16514,6 @@ msgstr "它应该保存在哪里?"
msgid "Which skill"
msgstr "哪个技能"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "在你退出登录期间,无论此设置如何,更新最多每 3 分钟检查一次。"
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "空白字符"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index db1f44a69..8b742fb5c 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -3077,7 +3077,6 @@
"cFgW76": ["已被阻擋合併"],
"cH0dkG": ["它缺少我需要的功能"],
"cHhH3i": ["一個必要的 git 工具"],
- "cIFYZn": ["在你登出期間,無論此設定為何,更新最多每 3 分鐘檢查一次。"],
"cIptmH": ["在 Claude Desktop App 中"],
"cK5W4m": [["0"], " 透過連結開啟,不接受附件,請改選應用程式內的智慧代理。"],
"cLP0Lf": ["遠端技能來源"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 98d0ff02b..0293ecdbb 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -16514,10 +16514,6 @@ msgstr "它應該放在哪裡?"
msgid "Which skill"
msgstr "哪一個技能"
-#: src/components/settings/SyncSection.tsx
-msgid "While you're signed out, updates are checked at most every 3 minutes regardless of this setting."
-msgstr "在你登出期間,無論此設定為何,更新最多每 3 分鐘檢查一次。"
-
#: src/components/settings/markdownlint-rule-browser.tsx
msgid "Whitespace"
msgstr "空白字元"
diff --git a/packages/core/src/config/schema.ts b/packages/core/src/config/schema.ts
index c47eebcb9..47a0342bd 100644
--- a/packages/core/src/config/schema.ts
+++ b/packages/core/src/config/schema.ts
@@ -467,7 +467,7 @@ export const ConfigSchema = z.looseObject({
reload: 'live',
defaultScope: 'project-local',
description:
- 'Seconds between scheduled pulls while autoSync.mode is follow or full (default 30). An unauthenticated follower is additionally floored to the anonymous poll minimum, so a lower value there has no effect. Per-machine (project-local) — not shared.',
+ 'Seconds between scheduled pulls while autoSync.mode is follow or full (default 30). Per-machine (project-local) — not shared.',
})
.optional()
.catch(undefined),
diff --git a/packages/server/src/sync-engine.test.ts b/packages/server/src/sync-engine.test.ts
index feac822d1..81d8315fc 100644
--- a/packages/server/src/sync-engine.test.ts
+++ b/packages/server/src/sync-engine.test.ts
@@ -21,7 +21,7 @@ import { createContentFilter } from './content-filter.ts';
import { classifyGitError } from './error-classification.ts';
import type { GitHandle } from './git-handle.ts';
import { listNames } from './git-paths.ts';
-import type { DetectGhAccountsFn, DetectGhFn, ProbeTokenStore } from './github-permissions.ts';
+import type { DetectGhAccountsFn, DetectGhFn } from './github-permissions.ts';
import { getLogger } from './logger.ts';
import { declareGitHubHosts, useIsolatedHome } from './share/git-host-declarations.test-helper.ts';
import type { CredentialUrlMatchReader } from './share/github-account.ts';
@@ -32,7 +32,6 @@ import {
SyncEngine,
type SyncState,
} from './sync-engine.ts';
-import { ANONYMOUS_PULL_MIN_SECONDS } from './sync-timing.ts';
const execFileAsync = promisify(execFile);
const JITTER_SAMPLES = [
@@ -1971,94 +1970,25 @@ describe('SyncEngine backoff thresholds via persisted state', () => {
});
});
-describe('SyncEngine pull-only cadence (auth-conditional)', () => {
- const AUTHENTICATED_BAND = jitterBand(30);
- const ANONYMOUS_BAND = jitterBand(ANONYMOUS_PULL_MIN_SECONDS);
-
- type CadenceInternals = {
- refreshAuthTier(): Promise<void>;
- effectivePullDelayMs(): number;
- };
-
- function makeCadenceEngine(opts: {
- mode: SyncMode;
- detectGh?: DetectGhFn;
- tokenStore?: ProbeTokenStore | null;
- }) {
- return new SyncEngine({
- conflicts: newAuthority(),
- projectDir,
- contentDir,
- contentFilter: stubContentFilter,
- mode: opts.mode,
- pullIntervalSeconds: 30,
- pushIntervalSeconds: 99999,
- detectGh: opts.detectGh,
- tokenStore: opts.tokenStore,
- });
- }
-
- async function scheduledPullDelayMs(engine: SyncEngine): Promise<number> {
- const internals = engine as unknown as CadenceInternals;
- await internals.refreshAuthTier();
- return internals.effectivePullDelayMs();
- }
-
+describe('SyncEngine pull-only cadence', () => {
test.each(JITTER_SAMPLES)(
- 'an anonymous follower schedules pulls at the gentle cadence (draw $draw)',
- async ({ draw, edge }) => {
+ 'a follower with no credentials pulls at the configured interval (draw $draw)',
+ ({ draw, edge }) => {
const random = vi.spyOn(Math, 'random').mockReturnValue(draw);
onTestFinished(() => random.mockRestore());
- const engine = makeCadenceEngine({ mode: 'follow' });
- const delayMs = await scheduledPullDelayMs(engine);
- expect(delayMs).toBe(ANONYMOUS_BAND[edge]);
- },
- );
-
- test('a gh-authenticated follower keeps the responsive cadence', async () => {
- const engine = makeCadenceEngine({
- mode: 'follow',
- detectGh: () => ({ available: true, token: 'gh-token' }),
- });
- const delayMs = await scheduledPullDelayMs(engine);
- expect(delayMs).toBeGreaterThanOrEqual(AUTHENTICATED_BAND.min);
- expect(delayMs).toBeLessThanOrEqual(AUTHENTICATED_BAND.max);
- });
-
- test('a follower authenticated only through the token store keeps the responsive cadence', async () => {
- const engine = makeCadenceEngine({
- mode: 'follow',
- tokenStore: { get: async () => ({ token: 'store-token' }) },
- });
- const delayMs = await scheduledPullDelayMs(engine);
- expect(delayMs).toBeGreaterThanOrEqual(AUTHENTICATED_BAND.min);
- expect(delayMs).toBeLessThanOrEqual(AUTHENTICATED_BAND.max);
- });
-
- test.each(JITTER_SAMPLES)(
- 'a token-store read failure degrades to the gentle cadence (draw $draw)',
- async ({ draw, edge }) => {
- const random = vi.spyOn(Math, 'random').mockReturnValue(draw);
- onTestFinished(() => random.mockRestore());
- const engine = makeCadenceEngine({
+ const engine = new SyncEngine({
+ conflicts: newAuthority(),
+ projectDir,
+ contentDir,
+ contentFilter: stubContentFilter,
mode: 'follow',
- tokenStore: {
- get: async () => {
- throw new Error('EACCES');
- },
- },
+ pullIntervalSeconds: 30,
+ pushIntervalSeconds: 99999,
});
- const delayMs = await scheduledPullDelayMs(engine);
- expect(delayMs).toBe(ANONYMOUS_BAND[edge]);
+ const internals = engine as unknown as { effectivePullDelayMs(): number };
+ expect(internals.effectivePullDelayMs()).toBe(jitterBand(30)[edge]);
},
);
-
- test('full-sync cadence is untouched even with no credentials', async () => {
- const engine = makeCadenceEngine({ mode: 'full' });
- const delayMs = await scheduledPullDelayMs(engine);
- expect(delayMs).toBeGreaterThanOrEqual(AUTHENTICATED_BAND.min);
- expect(delayMs).toBeLessThanOrEqual(AUTHENTICATED_BAND.max);
- });
});
describe('SyncEngine lastRunUtc survives a restart', () => {
@@ -2410,31 +2340,7 @@ describe('SyncEngine setIntervals()', () => {
expect(internals.pushTimer).toBeNull();
});
- test.each(JITTER_SAMPLES)(
- 'the anonymous floor still outranks a shorter configured pull interval (draw $draw)',
- async ({ draw, edge }) => {
- const random = vi.spyOn(Math, 'random').mockReturnValue(draw);
- onTestFinished(() => random.mockRestore());
- const engine = new SyncEngine({
- conflicts: newAuthority(),
- projectDir,
- contentDir,
- contentFilter: stubContentFilter,
- mode: 'follow',
- pullIntervalSeconds: 30,
- pushIntervalSeconds: 60,
- });
- const internals = engine as unknown as IntervalInternals & {
- refreshAuthTier(): Promise<void>;
- };
- engine.setIntervals(30, 60);
- await internals.refreshAuthTier();
- const delayMs = internals.effectivePullDelayMs();
- expect(delayMs).toBe(jitterBand(ANONYMOUS_PULL_MIN_SECONDS)[edge]);
- },
- );
-
- test('a longer configured interval is honored for an anonymous follower', async () => {
+ test('a longer configured interval is honored for a follower', async () => {
const engine = new SyncEngine({
conflicts: newAuthority(),
projectDir,
@@ -2444,11 +2350,8 @@ describe('SyncEngine setIntervals()', () => {
pullIntervalSeconds: 30,
pushIntervalSeconds: 60,
});
- const internals = engine as unknown as IntervalInternals & {
- refreshAuthTier(): Promise<void>;
- };
+ const internals = engine as unknown as IntervalInternals;
engine.setIntervals(3600, 60);
- await internals.refreshAuthTier();
const delayMs = internals.effectivePullDelayMs();
expect(delayMs).toBeGreaterThanOrEqual(jitterBand(3600).min);
expect(delayMs).toBeLessThanOrEqual(jitterBand(3600).max);
@@ -2672,7 +2575,7 @@ describe('SyncEngine effectivePushDelayMs floors on the configured interval', ()
}
test.each(
- [60, ANONYMOUS_PULL_MIN_SECONDS].flatMap((intervalSeconds) =>
+ [60, 180].flatMap((intervalSeconds) =>
JITTER_SAMPLES.map((sample) => ({ intervalSeconds, ...sample })),
),
)(
@@ -5148,19 +5051,6 @@ describe('SyncEngine declared-account resolution', () => {
logs.restore();
}
});
-
- test('the auth tier resolves the same declared account as git handles', async () => {
- await initGitWithOrigin('https://[email protected]/mona/kb.git');
- const detect = recordDetectGh(honorRequested);
- const engine = makeAccountEngine(detect.fn, countingUrlMatch(null).fn);
-
- const tier = await (
- engine as unknown as { resolveAuthTier: () => Promise<string> }
- ).resolveAuthTier();
-
- expect(tier).toBe('authenticated');
- expect(detect.logins()).toEqual(['alice']);
- });
});
describe('SyncEngine sync mode', () => {
@@ -7235,7 +7125,6 @@ describe('SyncEngine exclusive merge ownership', () => {
doPushCycle(retriesLeft?: number): Promise<void>;
doPullCycle(invocation: 'explicit' | 'sync'): Promise<'up-to-date'>;
runPullCycle(): Promise<void>;
- refreshAuthTier(): Promise<void>;
handleError(classified: ReturnType<typeof classifyGitError>, op: 'push' | 'pull'): void;
}
@@ -7352,15 +7241,15 @@ describe('SyncEngine exclusive merge ownership', () => {
}
});
- test('follow-mode auth refresh holds ownership before its await', async () => {
+ test('a follow-mode pull holds ownership while it is in flight', async () => {
const { engine, internals } = await setup('follow');
const entered = Promise.withResolvers<void>();
const release = Promise.withResolvers<void>();
- internals.refreshAuthTier = async () => {
+ const pull = vi.fn(async () => {
entered.resolve();
await release.promise;
- };
- const pull = vi.fn(async () => 'up-to-date' as const);
+ return 'up-to-date' as const;
+ });
const push = vi.fn(async () => {});
internals.doPullCycle = pull;
internals.doPushCycle = push;
@@ -7370,10 +7259,9 @@ describe('SyncEngine exclusive merge ownership', () => {
await engine.pushOnce();
expect(await engine.pullOnce()).toBe('refused');
expect(push).not.toHaveBeenCalled();
- expect(pull).not.toHaveBeenCalled();
+ expect(pull).toHaveBeenCalledTimes(1);
release.resolve();
await running;
- expect(pull).toHaveBeenCalledTimes(1);
await engine.pushOnce();
expect(push).toHaveBeenCalledTimes(1);
} finally {
diff --git a/packages/server/src/sync-engine.ts b/packages/server/src/sync-engine.ts
index 38c97dd7e..8d08a24d7 100644
--- a/packages/server/src/sync-engine.ts
+++ b/packages/server/src/sync-engine.ts
@@ -85,11 +85,7 @@ import {
type GitHubAccount,
} from './share/github-account.ts';
import { assertRealpathWithinDir } from './symlink-guard.ts';
-import {
- computeRemainingMs,
- type PullAuthTier,
- pullIntervalSecondsForAuthTier,
-} from './sync-timing.ts';
+import { computeRemainingMs } from './sync-timing.ts';
const log = getLogger('sync-engine');
const TRACKED_MCP_CONFIG_TARGET_SET: ReadonlySet<string> = new Set(TRACKED_MCP_CONFIG_TARGETS);
@@ -416,7 +412,6 @@ export class SyncEngine {
private checkPushPermissionFn: (opts: CheckPushPermissionOptions) => Promise<PushPermission>;
private pushPermission: PushPermissionStatus | null = null;
private pushPermissionProbeInFlight = false;
- private authTier: PullAuthTier | 'unknown' = 'unknown';
private pullTimer: ReturnType<typeof setTimeout> | null = null;
private pushTimer: ReturnType<typeof setTimeout> | null = null;
@@ -646,12 +641,7 @@ export class SyncEngine {
return;
}
- if (this.mode === 'follow') await this.refreshAuthTier();
-
- const pullRemainingMs = computeRemainingMs(
- this.lastFetchUtc,
- this.currentPullIntervalSeconds(),
- );
+ const pullRemainingMs = computeRemainingMs(this.lastFetchUtc, this.pullIntervalSeconds);
const pushRemainingMs = computeRemainingMs(this.lastPushOkUtc, this.pushIntervalSeconds);
this.schedulePull(pullRemainingMs > 0 ? pullRemainingMs : undefined);
this.schedulePush(pushRemainingMs > 0 ? pushRemainingMs : undefined);
@@ -1385,35 +1375,10 @@ export class SyncEngine {
}, delayMs);
}
- private async resolveAuthTier(): Promise<PullAuthTier> {
- if (this.resolveRelayGhToken() !== null) return 'authenticated';
- if (this.tokenStore) {
- try {
- const entry = await this.tokenStore.get(this.syncGhTarget().host);
- if (entry?.token) return 'authenticated';
- } catch (err) {
- log.warn({ err }, '[sync] auth-tier token-store lookup threw — treating as anonymous');
- }
- }
- return 'anonymous';
- }
-
- private async refreshAuthTier(): Promise<void> {
- this.authTier = await this.resolveAuthTier();
- }
-
- private currentPullIntervalSeconds(): number {
- if (this.mode !== 'follow') return this.pullIntervalSeconds;
- return pullIntervalSecondsForAuthTier(
- this.pullIntervalSeconds,
- this.authTier === 'anonymous' ? 'anonymous' : 'authenticated',
- );
- }
-
private effectivePullDelayMs(): number {
const bkoff = backoffMs(this.consecutivePullFailures);
const backoffSeconds = bkoff > 0 ? bkoff / 1000 : 0;
- return jitteredMs(Math.max(backoffSeconds, this.currentPullIntervalSeconds()));
+ return jitteredMs(Math.max(backoffSeconds, this.pullIntervalSeconds));
}
private effectivePushDelayMs(): number {
@@ -1472,7 +1437,6 @@ export class SyncEngine {
this.cycleInFlight = 'pull';
this.beginIndexLockWatch('pull');
try {
- if (this.mode === 'follow') await this.refreshAuthTier();
this.recordPullOutcome(await this.doPullCycle(this.mode === 'full' ? 'sync' : 'explicit'));
} finally {
this.cycleInFlight = null;
diff --git a/packages/server/src/sync-timing.test.ts b/packages/server/src/sync-timing.test.ts
index 3ba5229ac..5cde6fab6 100644
--- a/packages/server/src/sync-timing.test.ts
+++ b/packages/server/src/sync-timing.test.ts
@@ -1,9 +1,5 @@
import { describe, expect, test } from 'vitest';
-import {
- ANONYMOUS_PULL_MIN_SECONDS,
- computeRemainingMs,
- pullIntervalSecondsForAuthTier,
-} from './sync-timing.ts';
+import { computeRemainingMs } from './sync-timing.ts';
const SECOND = 1000;
const MINUTE = 60 * SECOND;
@@ -72,21 +68,3 @@ describe('computeRemainingMs', () => {
expect(remaining).toBe(8 * SECOND);
});
});
-
-describe('pullIntervalSecondsForAuthTier', () => {
- test('authenticated followers keep the responsive base interval', () => {
- expect(pullIntervalSecondsForAuthTier(30, 'authenticated')).toBe(30);
- expect(pullIntervalSecondsForAuthTier(60, 'authenticated')).toBe(60);
- });
-
- test('anonymous followers are floored to the gentle cadence', () => {
- expect(pullIntervalSecondsForAuthTier(30, 'anonymous')).toBe(ANONYMOUS_PULL_MIN_SECONDS);
- expect(pullIntervalSecondsForAuthTier(30, 'anonymous')).toBe(180);
- expect(pullIntervalSecondsForAuthTier(60, 'anonymous')).toBe(180);
- });
-
- test('a base interval already at or above the floor is preserved for anonymous', () => {
- expect(pullIntervalSecondsForAuthTier(180, 'anonymous')).toBe(180);
- expect(pullIntervalSecondsForAuthTier(300, 'anonymous')).toBe(300);
- });
-});
diff --git a/packages/server/src/sync-timing.ts b/packages/server/src/sync-timing.ts
index 3470fcde0..fc7829512 100644
--- a/packages/server/src/sync-timing.ts
+++ b/packages/server/src/sync-timing.ts
@@ -9,16 +9,3 @@ export function computeRemainingMs(
const nextMs = lastMs + intervalSeconds * 1000;
return Math.max(0, nextMs - now);
}
-
-export const ANONYMOUS_PULL_MIN_SECONDS = 180;
-
-export type PullAuthTier = 'authenticated' | 'anonymous';
-
-export function pullIntervalSecondsForAuthTier(
- baseIntervalSeconds: number,
- tier: PullAuthTier,
-): number {
- return tier === 'anonymous'
- ? Math.max(ANONYMOUS_PULL_MIN_SECONDS, baseIntervalSeconds)
- : baseIntervalSeconds;
-}