Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
PRD-8442: close the four review majors on macOS crash-report collection (#4178)
Andrew Mikofalvy09abe21ab49e
diff --git a/.changeset/olive-pugs-repeat.md b/.changeset/olive-pugs-repeat.mdnew file mode 100644index 000000000..754a88411--- /dev/null+++ b/.changeset/olive-pugs-repeat.md@@ -0,0 +1,11 @@+---+'@inkeep/open-knowledge': patch+---++The bug-report dialog now states what a macOS crash report carries before you decide to include one, and deciding which reports belong to this app reads far less of each file.++Two surfaces carry this before a person can act on it, and neither said much: the dialog, where including these reports is part of the **Detailed diagnostics** checkbox, and the `ok diagnose bundle` summary, where they are already staged and the only choice left is whether to write the zip at all. The dialog previously said only that the reports collected are ours and never another application's. It now also names what every such report contains regardless of which app it belongs to: the account uid, the Mac model, and the name of the process that launched the app, which on a managed machine can be internal tooling. It records that a report of ours still names the processes it was running alongside, which is the one fact the reassurance does not already imply. And it states that a collected report is not byte-identical to the one macOS wrote, because the identifiers that would link a person's bundles to each other are replaced on the way in. The zip README already said all of this; the dialog said none of it, and the "What OpenKnowledge writes" reference has since gained what it lacked. The summary named none of the machine details either. It now carries them, along with the sibling-process fact, so someone working from the command line is not told less than someone using the app.++Deciding whether a report belongs to this app no longer reads the whole file to keep its first line. It now reads a bounded prefix instead. The number of files examined is unchanged, so this is not a fix for a directory holding many reports; it is a large reduction in bytes read per file, on the thread that draws the window. A file whose first line does not end within that bound is treated as unreadable, the same conservative default already applied to a report whose header cannot be parsed.++`deviceIdentifierForVendor` is now replaced alongside the two identifiers already handled. It is a persistent per-device-and-vendor value, so it is treated as a linking identifier defensively. No report on the machines measured carries the `storeInfo` block it lives in, so this changes nothing today; covering it costs a list entry and closes the gap if that changes.diff --git a/docs/content/reference/what-open-knowledge-writes.mdx b/docs/content/reference/what-open-knowledge-writes.mdxindex 437074fcb..2c5318f6f 100644--- a/docs/content/reference/what-open-knowledge-writes.mdx+++ b/docs/content/reference/what-open-knowledge-writes.mdx@@ -44,7 +44,7 @@ On every platform the app writes app-level state and logs on launch. The table b| `~/.ok/mcp-status.json` | Records your first-launch MCP-setup consent choice | Outside-project (home dir) || `~/Library/Caches/@inkeepopen-knowledge-desktop-updater/` | Staged auto-update downloads (electron-updater) | Outside-project (home dir) || `~/Library/Caches/com.inkeep.open-knowledge.ShipIt/` | Install log of the macOS update helper (Squirrel's ShipIt), which swaps the app bundle after the app has quit. The only record of why an update failed to install, so a bug report you send collects it — only this app's, never those of other applications that use the same update mechanism | Outside-project (home dir) |-| `~/Library/Logs/DiagnosticReports/` | Not written by OpenKnowledge at all — this is macOS's own crash-report directory, shared by every application on the machine. When the OS ends one of this app's processes it records why there, which is sometimes the only account of a session that stopped without a crash dump, so a bug report you send at the **Detailed diagnostics** level collects the reports macOS wrote for this app and its helper processes — only ours, never those of any other application, and never at the standard level. A report also carries machine details macOS puts in every one of them — the account uid, the Mac model, and the name of the process that launched the app — while the identifiers that would link your bundles to each other, the crash-reporter key and the boot session, are replaced before bundling. `ok diagnose bundle` collects them too, on every run: that command produces the Detailed superset by design, and its summary tells you what the search found before it writes the zip | Outside-project (home dir) |+| `~/Library/Logs/DiagnosticReports/` | Not written by OpenKnowledge at all — this is macOS's own crash-report directory, shared by every application on the machine. When the OS ends one of this app's processes it records why there, which is sometimes the only account of a session that stopped without a crash dump, so a bug report you send at the **Detailed diagnostics** level collects the reports macOS wrote for this app and its helper processes — only ours, never those of any other application, and never at the standard level. A report of ours still names the processes it was running alongside. A report also carries machine details macOS puts in every one of them — the account uid, the Mac model, and the name of the process that launched the app, which on a managed machine can be internal tooling — while the identifiers that would link your bundles to each other are replaced before bundling. `ok diagnose bundle` collects them too, on every run: that command produces the Detailed superset by design, and its summary tells you what the search found before it writes the zip | Outside-project (home dir) || `~/Library/Application Support/OpenKnowledge/Crashpad/` | Native crash minidumps, written by the OS crash handler (Electron's Crashpad) if the app ever crashes. Local-only: the crash reporter runs with `uploadToServer: false`, so no dump is ever uploaded automatically | Outside-project (home dir) || `~/Library/Application Support/OpenKnowledge/bug-report-dirty-shutdown.json` | Dirty-shutdown sentinel — written on **every** launch, refreshed as it runs, and removed on a clean quit. The next launch reads it to tell an app crash (prompts you) from the endings that are not a crash: a reboot, an OS shutdown, or dying asleep (all suppressed and logged instead), and an update install shutting the app down to replace its files (logged either way, and suppressed in almost every case: a shutdown the app had no chance to record, or one it cannot date because the previous session left no heartbeat, can still prompt so you are able to report it) | Outside-project (home dir) || `~/Library/Application Support/OpenKnowledge/bug-report-crash-acks.json` | Records which crash-report invitations you already answered or dismissed, so the same crash never re-prompts | Outside-project (home dir) |@@ -300,8 +300,8 @@ None of your content, by default. Everything above is written to your own disk.| What | When | Where it goes || --- | --- | --- |-| Diagnostic bundle | Only when you run `ok diagnose bundle` (you can inspect it first). On macOS it also carries the crash reports the OS recorded for this app and its helper processes (listed above), which are machine-wide rather than project-scoped; only this app's are collected, never another application's, and the summary printed before the zip is written says what that search found even when the answer is nothing | Wherever you send it |-| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, or the Windows and Linux menu bar — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. After a crash, the same dialog adds an **off-by-default** "Include crash dump" checkbox: a crash dump is a memory snapshot that can contain document content and can't be redacted, and it is only ever attached when you check that box. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, and the zip always says what that search found even when the answer is nothing. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | By default, Send makes no network request — it opens a prefilled email draft to [email protected] that you send yourself, naming the zip to attach. Only when an operator has configured a bug-report intake endpoint ([`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables)) does Send upload the zip there, falling back to the same email draft if the upload fails |+| Diagnostic bundle | Only when you run `ok diagnose bundle` (you can inspect it first). On macOS it also carries the crash reports the OS recorded for this app and its helper processes (listed above), which are machine-wide rather than project-scoped; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the summary printed before the zip is written says what that search found even when the answer is nothing | Wherever you send it |+| In-app bug report | Only when you click **Send** in the desktop app's **Help → Report a bug…** dialog, or the `Cmd+Shift+D` / `Ctrl+Shift+D` shortcut that opens the same dialog — it builds a secret-redacted zip you can reveal and inspect first, and nothing is sent without that explicit click. The zip carries a picture of the app window unless you uncheck **Screenshot** in that dialog, and the preview there is the picture that would be sent. A report reached through a surface you opened only to get to the reporter — the command palette, the Help popover, or the Windows and Linux menu bar — waits for that surface to close first, and carries no marker, because the row it would point at has already gone. Every other report you start yourself photographs the screen as it is, so an open menu or another person's document visible at the time is in the picture, and carries a marker drawn where your pointer was, since a screenshot never includes the cursor. No marker is drawn either if the pointer has not moved since the window loaded, or has since left the window. The invitation that appears on its own after a crash is the exception to all of this: it carries no picture at all. After a crash, the same dialog adds an **off-by-default** "Include crash dump" checkbox: a crash dump is a memory snapshot that can contain document content and can't be redacted, and it is only ever attached when you check that box. On macOS the zip also carries the update helper's install log (listed above), which is machine-wide rather than project-scoped; the zip's own README names it and says where it came from. At the **Detailed diagnostics** level — pre-checked on the invitation that follows a crash — it additionally carries the crash reports macOS itself recorded for this app and its helpers (also listed above), which are machine-wide for the same reason and named in the same README; only this app's are collected, never another application's, though a report of ours still names the processes it was running alongside, and the zip always says what that search found even when the answer is nothing. The zip also carries a short send history of the bug reports previously generated on this machine — when each was generated and whether sending it succeeded — which is what makes a report that failed to send diagnosable at all. That history is machine-wide too, so it names the other projects you have filed reports from; it carries no document content, and the README names it the same way | By default, Send makes no network request — it opens a prefilled email draft to [email protected] that you send yourself, naming the zip to attach. Only when an operator has configured a bug-report intake endpoint ([`OK_BUG_REPORT_INTAKE_URL`](./configuration.mdx#environment-variables)) does Send upload the zip there, falling back to the same email draft if the upload fails || Uninstall feedback | Only after an uninstall has already succeeded, and only if you pick a reason, type a note, or give an email address on the optional "Before you go" screen (desktop app) or prompt (`ok uninstall`). Skipping it, `--yes`, `--json`, and any non-interactive run send nothing | `openknowledge.ai/api/feedback` — the reason you picked, your note, your email address if you gave one, plus the app version and platform. It files one ticket for the team; nothing from your notes is included || Semantic search embeddings | Only when you enable [semantic search](./configuration.mdx#semantic-search) **and** set a key — off by default | Your configured embeddings provider (OpenAI by default) || GitHub sync / share | When you sync, clone, publish, or share | GitHub |diff --git a/packages/app/src/components/ReportBugDialog.dom.test.tsx b/packages/app/src/components/ReportBugDialog.dom.test.tsxindex 545708ffc..ea1af2a5f 100644--- a/packages/app/src/components/ReportBugDialog.dom.test.tsx+++ b/packages/app/src/components/ReportBugDialog.dom.test.tsx@@ -294,7 +294,7 @@ describe('ReportBugDialog', () => {).not.toBeNull();expect(screen.getByText(- "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's.",+ "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote.",{ exact: false },),).not.toBeNull();diff --git a/packages/app/src/components/ReportBugDialogBody.tsx b/packages/app/src/components/ReportBugDialogBody.tsxindex fe9853f92..a5cac2aaa 100644--- a/packages/app/src/components/ReportBugDialogBody.tsx+++ b/packages/app/src/components/ReportBugDialogBody.tsx@@ -445,7 +445,13 @@ function ReportBugDialog({{isMacOS && (<Trans>It also adds the crash reports macOS recorded for OpenKnowledge and its- helper processes, only ours and never another app's.+ helper processes, never another app's report, though ours do name the+ processes they were running alongside. Each one carries machine details+ macOS puts in every report: your account uid, the Mac model, and the name+ of the process that launched the app. On a managed machine, that launching+ process can be internal tooling. The identifiers that would link the bug+ reports you file to each other are replaced first, so a collected report+ is not byte-identical to the one macOS wrote.</Trans>)}</p>diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.jsonindex 20842f632..23898ac29 100644--- a/packages/app/src/locales/ar/messages.json+++ b/packages/app/src/locales/ar/messages.json@@ -745,6 +745,9 @@}]],+ "7xEWbL": [+ "يضيف أيضًا تقارير الأعطال التي سجّلها macOS لـ OpenKnowledge وعملياته المساعدة، ولا يضيف أبدًا تقرير تطبيق آخر، وإن كانت تقاريرنا تذكر العمليات التي كانت تعمل إلى جانبها. يحمل كل تقرير تفاصيل الجهاز التي يضعها macOS في كل تقرير: uid حسابك، وطراز الـ Mac، واسم العملية التي شغّلت التطبيق. على جهاز مُدار، قد تكون عملية التشغيل تلك أداة داخلية. تُستبدل أولًا المعرّفات التي قد تربط بلاغات الأخطاء التي ترسلها ببعضها، لذا فإن التقرير المجمَّع ليس مطابقًا بايتًا ببايت لما كتبه macOS."+ ],"80c4-P": ["تم نسخ الكود إلى الحافظة"],"81H_23": ["إضافة خصائص"],"851WA-": ["يمكن ضبط هذا في الإعدادات > أدوات الذكاء الاصطناعي وواجهة سطر الأوامر"],@@ -4446,9 +4449,6 @@],"mPzgTS": ["فتح ", ["docName"]],"mR3uQg": ["تم حذف هذا الملف على الفرع الحالي (تعارض حذف/تعديل)."],- "mRitpT": [- "يضيف أيضًا تقارير الأعطال التي سجّلها macOS لـ OpenKnowledge وعملياتها المساعدة، تقاريرنا وحدها ولا تقارير أي تطبيق آخر أبدًا."- ],"mToVM9": ["راسل ", ["agentName"]],"mU3j1b": ["إزالة العنصر ", ["0"]],"mVFyH-": [["accessibleLabel"], " (تعارض)"],diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.poindex 944944296..8fe3e9b78 100644--- a/packages/app/src/locales/ar/messages.po+++ b/packages/app/src/locales/ar/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "YAML غير صالح"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "يضيف أيضًا تقارير الأعطال التي سجّلها macOS لـ OpenKnowledge وعملياتها المساعدة، تقاريرنا وحدها ولا تقارير أي تطبيق آخر أبدًا."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "يضيف أيضًا تقارير الأعطال التي سجّلها macOS لـ OpenKnowledge وعملياته المساعدة، ولا يضيف أبدًا تقرير تطبيق آخر، وإن كانت تقاريرنا تذكر العمليات التي كانت تعمل إلى جانبها. يحمل كل تقرير تفاصيل الجهاز التي يضعها macOS في كل تقرير: uid حسابك، وطراز الـ Mac، واسم العملية التي شغّلت التطبيق. على جهاز مُدار، قد تكون عملية التشغيل تلك أداة داخلية. تُستبدل أولًا المعرّفات التي قد تربط بلاغات الأخطاء التي ترسلها ببعضها، لذا فإن التقرير المجمَّع ليس مطابقًا بايتًا ببايت لما كتبه macOS."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.jsonindex 09425a8fb..b69e9ddd9 100644--- a/packages/app/src/locales/bn/messages.json+++ b/packages/app/src/locales/bn/messages.json@@ -628,6 +628,9 @@"7uBlRT": ["ফোকাস করা ফাইল-ট্রি আইটেমটি কপি করুন যাতে Paste সেটির প্রতিলিপি বানাতে পারে।"],"7vxWET": ["প্যাক প্রিভিউ অনুপলব্ধ।"],"7wogIQ": [["0", "plural", { "one": ["প্লাগইন"], "other": ["প্লাগইন"] }]],+ "7xEWbL": [+ "এটি macOS OpenKnowledge এবং তার সহায়ক প্রক্রিয়াগুলির জন্য যে ক্র্যাশ রিপোর্ট রেকর্ড করেছে সেগুলিও যোগ করে, কখনও অন্য অ্যাপের রিপোর্ট নয়, যদিও আমাদের রিপোর্টে পাশাপাশি চলা প্রক্রিয়াগুলির নাম থাকে। প্রতিটিতে মেশিনের সেই তথ্য থাকে যা macOS প্রতিটি রিপোর্টে রাখে: আপনার অ্যাকাউন্ট uid, Mac মডেল, এবং যে প্রক্রিয়াটি অ্যাপটি চালু করেছে তার নাম। পরিচালিত মেশিনে সেই চালুকারী প্রক্রিয়াটি অভ্যন্তরীণ টুল হতে পারে। আপনার পাঠানো বাগ রিপোর্টগুলিকে পরস্পরের সঙ্গে যুক্ত করতে পারত এমন শনাক্তকারীগুলি আগেই প্রতিস্থাপিত হয়, তাই সংগৃহীত রিপোর্ট macOS যা লিখেছিল তার সঙ্গে বাইট-অনুযায়ী অভিন্ন নয়।"+ ],"80c4-P": ["কোড ক্লিপবোর্ডে কপি হয়েছে"],"81H_23": ["প্রপার্টি যোগ করুন"],"851WA-": ["এটি Settings > AI tools & CLI-তে কনফিগার করা যায়"],@@ -3832,9 +3835,6 @@],"mPzgTS": [["docName"], " খুলুন"],"mR3uQg": ["এই ফাইলটি বর্তমান ব্রাঞ্চে মুছে ফেলা হয়েছে (delete-modify দ্বন্দ্ব)।"],- "mRitpT": [- "এটি OpenKnowledge এবং এর সহায়ক প্রসেসগুলির জন্য macOS-এর রেকর্ড করা ক্র্যাশ রিপোর্টও যুক্ত করে, শুধু আমাদেরগুলি, কখনও অন্য কোনও অ্যাপের নয়।"- ],"mToVM9": [["agentName"], "-কে বার্তা পাঠান"],"mU3j1b": ["আইটেম ", ["0"], " সরান"],"mVFyH-": [["accessibleLabel"], " (দ্বন্দ্ব)"],diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.poindex c243183ac..ad332b228 100644--- a/packages/app/src/locales/bn/messages.po+++ b/packages/app/src/locales/bn/messages.po@@ -7291,8 +7291,8 @@ msgid "Invalid YAML"msgstr "অবৈধ YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "এটি OpenKnowledge এবং এর সহায়ক প্রসেসগুলির জন্য macOS-এর রেকর্ড করা ক্র্যাশ রিপোর্টও যুক্ত করে, শুধু আমাদেরগুলি, কখনও অন্য কোনও অ্যাপের নয়।"+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "এটি macOS OpenKnowledge এবং তার সহায়ক প্রক্রিয়াগুলির জন্য যে ক্র্যাশ রিপোর্ট রেকর্ড করেছে সেগুলিও যোগ করে, কখনও অন্য অ্যাপের রিপোর্ট নয়, যদিও আমাদের রিপোর্টে পাশাপাশি চলা প্রক্রিয়াগুলির নাম থাকে। প্রতিটিতে মেশিনের সেই তথ্য থাকে যা macOS প্রতিটি রিপোর্টে রাখে: আপনার অ্যাকাউন্ট uid, Mac মডেল, এবং যে প্রক্রিয়াটি অ্যাপটি চালু করেছে তার নাম। পরিচালিত মেশিনে সেই চালুকারী প্রক্রিয়াটি অভ্যন্তরীণ টুল হতে পারে। আপনার পাঠানো বাগ রিপোর্টগুলিকে পরস্পরের সঙ্গে যুক্ত করতে পারত এমন শনাক্তকারীগুলি আগেই প্রতিস্থাপিত হয়, তাই সংগৃহীত রিপোর্ট macOS যা লিখেছিল তার সঙ্গে বাইট-অনুযায়ী অভিন্ন নয়।"#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.jsonindex e0494f42c..516caa217 100644--- a/packages/app/src/locales/en/messages.json+++ b/packages/app/src/locales/en/messages.json@@ -639,6 +639,9 @@"7uBlRT": ["Copy the focused file-tree item so Paste can duplicate it."],"7vxWET": ["Pack preview unavailable."],"7wogIQ": [["0", "plural", { "one": ["Plugin"], "other": ["Plugins"] }]],+ "7xEWbL": [+ "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+ ],"80c4-P": ["Code copied to clipboard"],"81H_23": ["Add properties"],"851WA-": ["This can be configured in Settings > AI tools & CLI"],@@ -3940,9 +3943,6 @@],"mPzgTS": ["Open ", ["docName"]],"mR3uQg": ["This file was deleted on the current branch (delete-modify conflict)."],- "mRitpT": [- "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."- ],"mToVM9": ["Message ", ["agentName"]],"mU3j1b": ["Remove item ", ["0"]],"mVFyH-": [["accessibleLabel"], " (conflict)"],diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.poindex 84e960b32..33cff5634 100644--- a/packages/app/src/locales/en/messages.po+++ b/packages/app/src/locales/en/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "Invalid YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.jsonindex 2f84f0676..4bfaac229 100644--- a/packages/app/src/locales/es/messages.json+++ b/packages/app/src/locales/es/messages.json@@ -755,6 +755,9 @@{ "one": ["Complemento"], "many": ["Complementos"], "other": ["Complementos"] }]],+ "7xEWbL": [+ "También añade los informes de fallos que macOS registró para OpenKnowledge y sus procesos auxiliares, nunca el informe de otra aplicación, aunque los nuestros sí nombran los procesos junto a los que se estaban ejecutando. Cada uno incluye detalles del equipo que macOS pone en todos los informes: el uid de tu cuenta, el modelo del Mac y el nombre del proceso que inició la aplicación. En un equipo gestionado, ese proceso de inicio puede ser software interno. Los identificadores que vincularían entre sí los informes de error que envías se sustituyen antes, así que un informe recopilado no es idéntico byte a byte al que escribió macOS."+ ],"80c4-P": ["Código copiado al portapapeles"],"81H_23": ["Añadir propiedades"],"851WA-": ["Esto se puede configurar en Ajustes > Herramientas de IA y CLI"],@@ -4557,9 +4560,6 @@],"mPzgTS": ["Abrir ", ["docName"]],"mR3uQg": ["Este archivo se eliminó en la rama actual (conflicto delete-modify)."],- "mRitpT": [- "También añade los informes de fallos que macOS registró para OpenKnowledge y sus procesos auxiliares, solo los nuestros y nunca los de otra aplicación."- ],"mToVM9": ["Escribir a ", ["agentName"]],"mU3j1b": ["Quitar el elemento ", ["0"]],"mVFyH-": [["accessibleLabel"], " (conflicto)"],diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.poindex 51d9876bc..a7bbcb34c 100644--- a/packages/app/src/locales/es/messages.po+++ b/packages/app/src/locales/es/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "YAML no válido"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "También añade los informes de fallos que macOS registró para OpenKnowledge y sus procesos auxiliares, solo los nuestros y nunca los de otra aplicación."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "También añade los informes de fallos que macOS registró para OpenKnowledge y sus procesos auxiliares, nunca el informe de otra aplicación, aunque los nuestros sí nombran los procesos junto a los que se estaban ejecutando. Cada uno incluye detalles del equipo que macOS pone en todos los informes: el uid de tu cuenta, el modelo del Mac y el nombre del proceso que inició la aplicación. En un equipo gestionado, ese proceso de inicio puede ser software interno. Los identificadores que vincularían entre sí los informes de error que envías se sustituyen antes, así que un informe recopilado no es idéntico byte a byte al que escribió macOS."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.jsonindex 1e1d93545..6e6c4fe5a 100644--- a/packages/app/src/locales/fr/messages.json+++ b/packages/app/src/locales/fr/messages.json@@ -777,6 +777,9 @@"7wogIQ": [["0", "plural", { "one": ["Extension"], "many": ["Extensions"], "other": ["Extensions"] }]],+ "7xEWbL": [+ "Ajoute également les rapports de plantage que macOS a enregistrés pour OpenKnowledge et ses processus auxiliaires, jamais le rapport d'une autre application, même si les nôtres nomment les processus qui s'exécutaient à leurs côtés. Chacun contient des informations sur la machine que macOS inscrit dans tous les rapports : l'uid de votre compte, le modèle de Mac et le nom du processus qui a lancé l'application. Sur une machine gérée, ce processus de lancement peut être un outil interne. Les identifiants qui relieraient entre eux les rapports de bug que vous envoyez sont d'abord remplacés, de sorte qu'un rapport collecté n'est pas identique octet pour octet à celui écrit par macOS."+ ],"80c4-P": ["Code copié dans le presse-papiers"],"81H_23": ["Ajouter des propriétés"],"851WA-": ["Cela se configure dans Paramètres > Outils IA et CLI"],@@ -4597,9 +4600,6 @@],"mPzgTS": ["Ouvrir ", ["docName"]],"mR3uQg": ["Ce fichier a été supprimé sur la branche actuelle (conflit delete-modify)."],- "mRitpT": [- "Il ajoute également les rapports de plantage que macOS a enregistrés pour OpenKnowledge et ses processus auxiliaires, uniquement les nôtres et jamais ceux d'une autre application."- ],"mToVM9": ["Envoyer un message à ", ["agentName"]],"mU3j1b": ["Retirer l'élément ", ["0"]],"mVFyH-": [["accessibleLabel"], " (conflit)"],diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.poindex 51645e116..7cfc6aae9 100644--- a/packages/app/src/locales/fr/messages.po+++ b/packages/app/src/locales/fr/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "YAML non valide"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "Il ajoute également les rapports de plantage que macOS a enregistrés pour OpenKnowledge et ses processus auxiliaires, uniquement les nôtres et jamais ceux d'une autre application."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "Ajoute également les rapports de plantage que macOS a enregistrés pour OpenKnowledge et ses processus auxiliaires, jamais le rapport d'une autre application, même si les nôtres nomment les processus qui s'exécutaient à leurs côtés. Chacun contient des informations sur la machine que macOS inscrit dans tous les rapports : l'uid de votre compte, le modèle de Mac et le nom du processus qui a lancé l'application. Sur une machine gérée, ce processus de lancement peut être un outil interne. Les identifiants qui relieraient entre eux les rapports de bug que vous envoyez sont d'abord remplacés, de sorte qu'un rapport collecté n'est pas identique octet pour octet à celui écrit par macOS."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.jsonindex 3a30b01b2..6196ce9fd 100644--- a/packages/app/src/locales/hi/messages.json+++ b/packages/app/src/locales/hi/messages.json@@ -631,6 +631,9 @@"7uBlRT": ["फ़ाइल-ट्री के फ़ोकस किए गए आइटम को कॉपी करें ताकि Paste उसकी नकल बना सके।"],"7vxWET": ["पैक पूर्वावलोकन उपलब्ध नहीं है।"],"7wogIQ": [["0", "plural", { "one": ["प्लगइन"], "other": ["प्लगइन"] }]],+ "7xEWbL": [+ "यह macOS द्वारा OpenKnowledge और उसकी सहायक प्रक्रियाओं के लिए दर्ज की गई क्रैश रिपोर्ट भी जोड़ता है, किसी दूसरे ऐप की रिपोर्ट कभी नहीं, हालाँकि हमारी रिपोर्ट उन प्रक्रियाओं के नाम बताती हैं जो साथ-साथ चल रही थीं। हर रिपोर्ट में मशीन का वह विवरण होता है जो macOS हर रिपोर्ट में डालता है: आपका खाता uid, Mac मॉडल, और उस प्रक्रिया का नाम जिसने ऐप शुरू किया। प्रबंधित मशीन पर वह शुरू करने वाली प्रक्रिया आंतरिक टूल हो सकती है। जो पहचानकर्ता आपकी भेजी गई बग रिपोर्टों को आपस में जोड़ सकते हैं उन्हें पहले बदल दिया जाता है, इसलिए एकत्र की गई रिपोर्ट macOS द्वारा लिखी गई रिपोर्ट से बाइट-दर-बाइट समान नहीं होती।"+ ],"80c4-P": ["कोड क्लिपबोर्ड पर कॉपी किया गया"],"81H_23": ["प्रॉपर्टी जोड़ें"],"851WA-": ["इसे Settings > AI tools & CLI में कॉन्फ़िगर किया जा सकता है"],@@ -3824,9 +3827,6 @@],"mPzgTS": [["docName"], " खोलें"],"mR3uQg": ["यह फ़ाइल वर्तमान ब्रांच पर हटा दी गई थी (delete-modify विरोध)।"],- "mRitpT": [- "यह OpenKnowledge और उसकी सहायक प्रक्रियाओं के लिए macOS द्वारा दर्ज की गई क्रैश रिपोर्ट भी जोड़ता है, केवल हमारी, कभी किसी अन्य ऐप की नहीं।"- ],"mToVM9": [["agentName"], " को संदेश भेजें"],"mU3j1b": ["आइटम ", ["0"], " हटाएँ"],"mVFyH-": [["accessibleLabel"], " (टकराव)"],diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.poindex 9a55eec28..beeb7723d 100644--- a/packages/app/src/locales/hi/messages.po+++ b/packages/app/src/locales/hi/messages.po@@ -7291,8 +7291,8 @@ msgid "Invalid YAML"msgstr "अमान्य YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "यह OpenKnowledge और उसकी सहायक प्रक्रियाओं के लिए macOS द्वारा दर्ज की गई क्रैश रिपोर्ट भी जोड़ता है, केवल हमारी, कभी किसी अन्य ऐप की नहीं।"+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "यह macOS द्वारा OpenKnowledge और उसकी सहायक प्रक्रियाओं के लिए दर्ज की गई क्रैश रिपोर्ट भी जोड़ता है, किसी दूसरे ऐप की रिपोर्ट कभी नहीं, हालाँकि हमारी रिपोर्ट उन प्रक्रियाओं के नाम बताती हैं जो साथ-साथ चल रही थीं। हर रिपोर्ट में मशीन का वह विवरण होता है जो macOS हर रिपोर्ट में डालता है: आपका खाता uid, Mac मॉडल, और उस प्रक्रिया का नाम जिसने ऐप शुरू किया। प्रबंधित मशीन पर वह शुरू करने वाली प्रक्रिया आंतरिक टूल हो सकती है। जो पहचानकर्ता आपकी भेजी गई बग रिपोर्टों को आपस में जोड़ सकते हैं उन्हें पहले बदल दिया जाता है, इसलिए एकत्र की गई रिपोर्ट macOS द्वारा लिखी गई रिपोर्ट से बाइट-दर-बाइट समान नहीं होती।"#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.jsonindex 9b7952384..d86a9f4e1 100644--- a/packages/app/src/locales/id/messages.json+++ b/packages/app/src/locales/id/messages.json@@ -651,6 +651,9 @@"7uBlRT": ["Menyalin item pohon berkas yang sedang difokus agar Tempel bisa menggandakannya."],"7vxWET": ["Pratinjau paket tidak tersedia."],"7wogIQ": [["0", "plural", { "other": ["Plugin"] }]],+ "7xEWbL": [+ "Juga menambahkan laporan kerusakan yang dicatat macOS untuk OpenKnowledge dan proses pembantunya, tidak pernah laporan aplikasi lain, meskipun laporan kami menyebutkan proses-proses yang berjalan berdampingan dengannya. Masing-masing memuat detail mesin yang dicantumkan macOS di setiap laporan: uid akun Anda, model Mac, dan nama proses yang meluncurkan aplikasi. Pada mesin terkelola, proses peluncur itu bisa berupa perkakas internal. Pengidentifikasi yang akan menghubungkan laporan bug yang Anda kirim satu sama lain diganti terlebih dahulu, sehingga laporan yang dikumpulkan tidak identik byte per byte dengan yang ditulis macOS."+ ],"80c4-P": ["Kode disalin ke papan klip"],"81H_23": ["Tambahkan properti"],"851WA-": ["Ini bisa diatur di Pengaturan > Alat AI & CLI"],@@ -3981,9 +3984,6 @@],"mPzgTS": ["Buka ", ["docName"]],"mR3uQg": ["Berkas ini dihapus di cabang saat ini (konflik delete-modify)."],- "mRitpT": [- "Ini juga menambahkan laporan kerusakan yang direkam macOS untuk OpenKnowledge dan proses pembantunya, hanya milik kami dan tidak pernah milik aplikasi lain."- ],"mToVM9": ["Kirim pesan ke ", ["agentName"]],"mU3j1b": ["Hapus item ", ["0"]],"mVFyH-": [["accessibleLabel"], " (konflik)"],diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.poindex 9ed28714b..ffc124584 100644--- a/packages/app/src/locales/id/messages.po+++ b/packages/app/src/locales/id/messages.po@@ -7291,8 +7291,8 @@ msgid "Invalid YAML"msgstr "YAML tidak valid"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "Ini juga menambahkan laporan kerusakan yang direkam macOS untuk OpenKnowledge dan proses pembantunya, hanya milik kami dan tidak pernah milik aplikasi lain."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "Juga menambahkan laporan kerusakan yang dicatat macOS untuk OpenKnowledge dan proses pembantunya, tidak pernah laporan aplikasi lain, meskipun laporan kami menyebutkan proses-proses yang berjalan berdampingan dengannya. Masing-masing memuat detail mesin yang dicantumkan macOS di setiap laporan: uid akun Anda, model Mac, dan nama proses yang meluncurkan aplikasi. Pada mesin terkelola, proses peluncur itu bisa berupa perkakas internal. Pengidentifikasi yang akan menghubungkan laporan bug yang Anda kirim satu sama lain diganti terlebih dahulu, sehingga laporan yang dikumpulkan tidak identik byte per byte dengan yang ditulis macOS."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/ko/messages.json b/packages/app/src/locales/ko/messages.jsonindex b4df96f60..3733e3a79 100644--- a/packages/app/src/locales/ko/messages.json+++ b/packages/app/src/locales/ko/messages.json@@ -631,6 +631,9 @@"7uBlRT": ["붙여넣기로 복제할 수 있도록 파일 트리에서 포커스된 항목을 복사합니다."],"7vxWET": ["팩 미리보기를 사용할 수 없습니다."],"7wogIQ": [["0", "plural", { "other": ["플러그인"] }]],+ "7xEWbL": [+ "macOS가 OpenKnowledge와 그 보조 프로세스에 대해 기록한 충돌 보고서도 추가합니다. 다른 앱의 보고서는 절대 포함하지 않지만, 우리 보고서에는 함께 실행 중이던 프로세스의 이름이 담깁니다. 각 보고서에는 macOS가 모든 보고서에 기록하는 머신 정보가 담깁니다: 계정 uid, Mac 모델, 앱을 실행한 프로세스 이름입니다. 관리되는 기기에서는 그 실행 프로세스가 내부 도구일 수 있습니다. 사용자가 보내는 버그 신고들을 서로 연결할 수 있는 식별자는 먼저 대체되므로, 수집된 보고서는 macOS가 작성한 것과 바이트 단위로 동일하지 않습니다."+ ],"80c4-P": ["코드가 클립보드에 복사되었습니다."],"81H_23": ["속성 추가"],"851WA-": ["Settings > AI tools & CLI에서 설정 가능"],@@ -3817,9 +3820,6 @@],"mPzgTS": [["docName"], " 열기"],"mR3uQg": ["이 파일은 현재 브랜치에서 삭제되었습니다 (delete-modify 충돌)."],- "mRitpT": [- "OpenKnowledge 및 해당 헬퍼 프로세스에 대해 macOS가 기록한 충돌 보고서도 추가합니다. 우리 것만 포함되며 다른 앱의 것은 절대 포함되지 않습니다."- ],"mToVM9": [["agentName"], " 메시지"],"mU3j1b": ["항목 ", ["0"], " 제거"],"mVFyH-": [["accessibleLabel"], " (충돌)"],diff --git a/packages/app/src/locales/ko/messages.po b/packages/app/src/locales/ko/messages.poindex 9b9861fe3..f3d850dbf 100644--- a/packages/app/src/locales/ko/messages.po+++ b/packages/app/src/locales/ko/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "잘못된 YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "OpenKnowledge 및 해당 헬퍼 프로세스에 대해 macOS가 기록한 충돌 보고서도 추가합니다. 우리 것만 포함되며 다른 앱의 것은 절대 포함되지 않습니다."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "macOS가 OpenKnowledge와 그 보조 프로세스에 대해 기록한 충돌 보고서도 추가합니다. 다른 앱의 보고서는 절대 포함하지 않지만, 우리 보고서에는 함께 실행 중이던 프로세스의 이름이 담깁니다. 각 보고서에는 macOS가 모든 보고서에 기록하는 머신 정보가 담깁니다: 계정 uid, Mac 모델, 앱을 실행한 프로세스 이름입니다. 관리되는 기기에서는 그 실행 프로세스가 내부 도구일 수 있습니다. 사용자가 보내는 버그 신고들을 서로 연결할 수 있는 식별자는 먼저 대체되므로, 수집된 보고서는 macOS가 작성한 것과 바이트 단위로 동일하지 않습니다."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.jsonindex 7d1731f0e..283286656 100644--- a/packages/app/src/locales/pseudo/messages.json+++ b/packages/app/src/locales/pseudo/messages.json@@ -639,6 +639,9 @@"7uBlRT": ["Ćōƥŷ ţĥē ƒōćũśēď ƒĩĺē-ţŕēē ĩţēḿ śō Ƥàśţē ćàń ďũƥĺĩćàţē ĩţ."],"7vxWET": ["Ƥàćķ ƥŕēvĩēŵ ũńàvàĩĺàƀĺē."],"7wogIQ": [["0", "plural", { "one": ["Ƥĺũĝĩń"], "other": ["Ƥĺũĝĩńś"] }]],+ "7xEWbL": [+ "Ĩţ àĺśō àďďś ţĥē ćŕàśĥ ŕēƥōŕţś ḿàćŌŚ ŕēćōŕďēď ƒōŕ ŌƥēńĶńōŵĺēďĝē àńď ĩţś ĥēĺƥēŕ ƥŕōćēśśēś, ńēvēŕ àńōţĥēŕ àƥƥ'ś ŕēƥōŕţ, ţĥōũĝĥ ōũŕś ďō ńàḿē ţĥē ƥŕōćēśśēś ţĥēŷ ŵēŕē ŕũńńĩńĝ àĺōńĝśĩďē. Ēàćĥ ōńē ćàŕŕĩēś ḿàćĥĩńē ďēţàĩĺś ḿàćŌŚ ƥũţś ĩń ēvēŕŷ ŕēƥōŕţ: ŷōũŕ àććōũńţ ũĩď, ţĥē Ḿàć ḿōďēĺ, àńď ţĥē ńàḿē ōƒ ţĥē ƥŕōćēśś ţĥàţ ĺàũńćĥēď ţĥē àƥƥ. Ōń à ḿàńàĝēď ḿàćĥĩńē, ţĥàţ ĺàũńćĥĩńĝ ƥŕōćēśś ćàń ƀē ĩńţēŕńàĺ ţōōĺĩńĝ. Ţĥē ĩďēńţĩƒĩēŕś ţĥàţ ŵōũĺď ĺĩńķ ţĥē ƀũĝ ŕēƥōŕţś ŷōũ ƒĩĺē ţō ēàćĥ ōţĥēŕ àŕē ŕēƥĺàćēď ƒĩŕśţ, śō à ćōĺĺēćţēď ŕēƥōŕţ ĩś ńōţ ƀŷţē-ĩďēńţĩćàĺ ţō ţĥē ōńē ḿàćŌŚ ŵŕōţē."+ ],"80c4-P": ["Ćōďē ćōƥĩēď ţō ćĺĩƥƀōàŕď"],"81H_23": ["Àďď ƥŕōƥēŕţĩēś"],"851WA-": ["Ţĥĩś ćàń ƀē ćōńƒĩĝũŕēď ĩń Śēţţĩńĝś > ÀĨ ţōōĺś & ĆĹĨ"],@@ -3940,9 +3943,6 @@],"mPzgTS": ["Ōƥēń ", ["docName"]],"mR3uQg": ["Ţĥĩś ƒĩĺē ŵàś ďēĺēţēď ōń ţĥē ćũŕŕēńţ ƀŕàńćĥ (ďēĺēţē-ḿōďĩƒŷ ćōńƒĺĩćţ)."],- "mRitpT": [- "Ĩţ àĺśō àďďś ţĥē ćŕàśĥ ŕēƥōŕţś ḿàćŌŚ ŕēćōŕďēď ƒōŕ ŌƥēńĶńōŵĺēďĝē àńď ĩţś ĥēĺƥēŕ ƥŕōćēśśēś, ōńĺŷ ōũŕś àńď ńēvēŕ àńōţĥēŕ àƥƥ'ś."- ],"mToVM9": ["Ḿēśśàĝē ", ["agentName"]],"mU3j1b": ["Ŕēḿōvē ĩţēḿ ", ["0"]],"mVFyH-": [["accessibleLabel"], " (ćōńƒĺĩćţ)"],diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.poindex fc5e62c22..26edf766e 100644--- a/packages/app/src/locales/pseudo/messages.po+++ b/packages/app/src/locales/pseudo/messages.po@@ -7291,7 +7291,7 @@ msgid "Invalid YAML"msgstr ""#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."msgstr ""#. placeholder {0}: prompt.cwddiff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.jsonindex 59902974d..d2a31889b 100644--- a/packages/app/src/locales/pt-BR/messages.json+++ b/packages/app/src/locales/pt-BR/messages.json@@ -741,6 +741,9 @@"7uBlRT": ["Copia o item em foco na árvore de arquivos para que Colar possa duplicá-lo."],"7vxWET": ["Prévia do pacote indisponível."],"7wogIQ": [["0", "plural", { "one": ["Plugin"], "many": ["Plugins"], "other": ["Plugins"] }]],+ "7xEWbL": [+ "Também adiciona os relatórios de falha que o macOS registrou para o OpenKnowledge e seus processos auxiliares, nunca o relatório de outro aplicativo, embora os nossos nomeiem os processos que estavam em execução ao lado deles. Cada um traz detalhes da máquina que o macOS coloca em todos os relatórios: o uid da sua conta, o modelo do Mac e o nome do processo que iniciou o aplicativo. Em uma máquina gerenciada, esse processo inicializador pode ser uma ferramenta interna. Os identificadores que ligariam entre si os relatórios de erro que você envia são substituídos antes, então um relatório coletado não é idêntico byte a byte ao que o macOS escreveu."+ ],"80c4-P": ["Código copiado para a área de transferência"],"81H_23": ["Adicionar propriedades"],"851WA-": ["Isto pode ser configurado em Configurações > Ferramentas de IA e CLI"],@@ -4463,9 +4466,6 @@],"mPzgTS": ["Abrir ", ["docName"]],"mR3uQg": ["Este arquivo foi excluído no ramo atual (conflito delete-modify)."],- "mRitpT": [- "Também adiciona os relatórios de falha que o macOS registrou para o OpenKnowledge e seus processos auxiliares, apenas os nossos e nunca os de outro aplicativo."- ],"mToVM9": ["Enviar mensagem para ", ["agentName"]],"mU3j1b": ["Remover o item ", ["0"]],"mVFyH-": [["accessibleLabel"], " (conflito)"],diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.poindex e840885fa..fbf12dc19 100644--- a/packages/app/src/locales/pt-BR/messages.po+++ b/packages/app/src/locales/pt-BR/messages.po@@ -7291,8 +7291,8 @@ msgid "Invalid YAML"msgstr "YAML inválido"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "Também adiciona os relatórios de falha que o macOS registrou para o OpenKnowledge e seus processos auxiliares, apenas os nossos e nunca os de outro aplicativo."+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "Também adiciona os relatórios de falha que o macOS registrou para o OpenKnowledge e seus processos auxiliares, nunca o relatório de outro aplicativo, embora os nossos nomeiem os processos que estavam em execução ao lado deles. Cada um traz detalhes da máquina que o macOS coloca em todos os relatórios: o uid da sua conta, o modelo do Mac e o nome do processo que iniciou o aplicativo. Em uma máquina gerenciada, esse processo inicializador pode ser uma ferramenta interna. Os identificadores que ligariam entre si os relatórios de erro que você envia são substituídos antes, então um relatório coletado não é idêntico byte a byte ao que o macOS escreveu."#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.jsonindex 898c747d3..de4af0181 100644--- a/packages/app/src/locales/ur/messages.json+++ b/packages/app/src/locales/ur/messages.json@@ -659,6 +659,9 @@"7uBlRT": ["فوکس شدہ فائل ٹری آئٹم نقل کریں تاکہ «چسپاں» اس کی نقل بنا سکے۔"],"7vxWET": ["پیک کا پیش منظر دستیاب نہیں ہے۔"],"7wogIQ": [["0", "plural", { "one": ["پلگ اِن"], "other": ["پلگ اِنز"] }]],+ "7xEWbL": [+ "یہ macOS کی جانب سے OpenKnowledge اور اس کے معاون عملوں کے لیے ریکارڈ کی گئی کریش رپورٹس بھی شامل کرتا ہے، کسی دوسری ایپ کی رپورٹ کبھی نہیں، اگرچہ ہماری رپورٹس اُن عملوں کے نام ضرور بتاتی ہیں جو ساتھ ساتھ چل رہے تھے۔ ہر رپورٹ میں مشین کی وہ تفصیلات ہوتی ہیں جو macOS ہر رپورٹ میں ڈالتا ہے: آپ کے اکاؤنٹ کا uid، Mac ماڈل، اور اُس عمل کا نام جس نے ایپ چلائی۔ منظم مشین پر وہ چلانے والا عمل داخلی ٹولنگ ہو سکتا ہے۔ وہ شناخت کنندگان جو آپ کی بھیجی گئی بگ رپورٹس کو آپس میں جوڑ سکتے تھے پہلے تبدیل کر دیے جاتے ہیں، اس لیے جمع کی گئی رپورٹ macOS کی لکھی ہوئی رپورٹ سے بائٹ بہ بائٹ یکساں نہیں ہوتی۔"+ ],"80c4-P": ["کوڈ کلپ بورڈ پر نقل ہو گیا"],"81H_23": ["خصوصیات شامل کریں"],"851WA-": ["یہ ترتیبات > AI ٹولز اور CLI میں مقرر کیا جا سکتا ہے"],@@ -4038,9 +4041,6 @@],"mPzgTS": [["docName"], " کھولیں"],"mR3uQg": ["یہ فائل موجودہ برانچ پر حذف کر دی گئی تھی (delete-modify تنازع)۔"],- "mRitpT": [- "یہ OpenKnowledge اور اس کے معاون پروسیسز کے لیے macOS کی ریکارڈ کردہ کریش رپورٹس بھی شامل کرتا ہے، صرف ہماری، کبھی کسی دوسری ایپ کی نہیں۔"- ],"mToVM9": [["agentName"], " کو پیغام بھیجیں"],"mU3j1b": ["آئٹم ", ["0"], " ہٹائیں"],"mVFyH-": [["accessibleLabel"], " (تصادم)"],diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.poindex 2b5a1f256..43665b4ba 100644--- a/packages/app/src/locales/ur/messages.po+++ b/packages/app/src/locales/ur/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "YAML درست نہیں"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "یہ OpenKnowledge اور اس کے معاون پروسیسز کے لیے macOS کی ریکارڈ کردہ کریش رپورٹس بھی شامل کرتا ہے، صرف ہماری، کبھی کسی دوسری ایپ کی نہیں۔"+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "یہ macOS کی جانب سے OpenKnowledge اور اس کے معاون عملوں کے لیے ریکارڈ کی گئی کریش رپورٹس بھی شامل کرتا ہے، کسی دوسری ایپ کی رپورٹ کبھی نہیں، اگرچہ ہماری رپورٹس اُن عملوں کے نام ضرور بتاتی ہیں جو ساتھ ساتھ چل رہے تھے۔ ہر رپورٹ میں مشین کی وہ تفصیلات ہوتی ہیں جو macOS ہر رپورٹ میں ڈالتا ہے: آپ کے اکاؤنٹ کا uid، Mac ماڈل، اور اُس عمل کا نام جس نے ایپ چلائی۔ منظم مشین پر وہ چلانے والا عمل داخلی ٹولنگ ہو سکتا ہے۔ وہ شناخت کنندگان جو آپ کی بھیجی گئی بگ رپورٹس کو آپس میں جوڑ سکتے تھے پہلے تبدیل کر دیے جاتے ہیں، اس لیے جمع کی گئی رپورٹ macOS کی لکھی ہوئی رپورٹ سے بائٹ بہ بائٹ یکساں نہیں ہوتی۔"#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.jsonindex 148be7ed3..08a66e637 100644--- a/packages/app/src/locales/zh-Hans/messages.json+++ b/packages/app/src/locales/zh-Hans/messages.json@@ -584,6 +584,9 @@"7uBlRT": ["复制文件树中当前聚焦的项目,以便用「粘贴」创建副本。"],"7vxWET": ["无法预览入门包。"],"7wogIQ": [["0", "plural", { "other": ["插件"] }]],+ "7xEWbL": [+ "还会添加 macOS 为 OpenKnowledge 及其辅助进程记录的崩溃报告,绝不包含其他应用的报告,不过我们自己的报告会列出与之同时运行的进程。每份报告都含有 macOS 写入所有报告的机器信息:你的账户 uid、Mac 机型,以及启动该应用的进程名称。在受管理的设备上,该启动进程可能是内部工具。会先替换掉可能将你提交的多份问题报告相互关联的标识符,因此收集到的报告与 macOS 写入的原文并非逐字节相同。"+ ],"80c4-P": ["代码已复制到剪贴板"],"81H_23": ["添加属性"],"851WA-": ["这可以在「设置 > AI 工具与 CLI」中配置"],@@ -3481,9 +3484,6 @@"mPy9lS": ["把我现有的规格整理成一个按领域分组的链接索引,并标出与当前代码脱节的部分。"],"mPzgTS": ["打开 ", ["docName"]],"mR3uQg": ["此文件已在当前分支中删除(delete-modify 冲突)。"],- "mRitpT": [- "它还会添加 macOS 为 OpenKnowledge 及其辅助进程记录的崩溃报告,仅包含我们的报告,绝不包含其他应用的报告。"- ],"mToVM9": ["给 ", ["agentName"], " 发消息"],"mU3j1b": ["移除项目 ", ["0"]],"mVFyH-": [["accessibleLabel"], "(冲突)"],diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.poindex fe1ec5bc3..980cc8c49 100644--- a/packages/app/src/locales/zh-Hans/messages.po+++ b/packages/app/src/locales/zh-Hans/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "无效的 YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "它还会添加 macOS 为 OpenKnowledge 及其辅助进程记录的崩溃报告,仅包含我们的报告,绝不包含其他应用的报告。"+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "还会添加 macOS 为 OpenKnowledge 及其辅助进程记录的崩溃报告,绝不包含其他应用的报告,不过我们自己的报告会列出与之同时运行的进程。每份报告都含有 macOS 写入所有报告的机器信息:你的账户 uid、Mac 机型,以及启动该应用的进程名称。在受管理的设备上,该启动进程可能是内部工具。会先替换掉可能将你提交的多份问题报告相互关联的标识符,因此收集到的报告与 macOS 写入的原文并非逐字节相同。"#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.jsonindex 56f4c8337..fea2d3446 100644--- a/packages/app/src/locales/zh-Hant/messages.json+++ b/packages/app/src/locales/zh-Hant/messages.json@@ -586,6 +586,9 @@"7uBlRT": ["複製檔案樹中目前聚焦的項目,這樣「貼上」就能做出一份副本。"],"7vxWET": ["無法預覽入門套件。"],"7wogIQ": [["0", "plural", { "other": ["外掛程式"] }]],+ "7xEWbL": [+ "還會加入 macOS 為 OpenKnowledge 及其輔助處理程序記錄的當機報告,絕不包含其他應用程式的報告,不過我們自己的報告會列出與之同時執行的處理程序。每份報告都含有 macOS 寫入所有報告的機器資訊:你的帳戶 uid、Mac 機型,以及啟動該應用程式的處理程序名稱。在受管理的裝置上,該啟動處理程序可能是內部工具。會先替換掉可能將你提交的多份問題報告相互關聯的識別碼,因此收集到的報告與 macOS 寫入的原文並非逐位元組相同。"+ ],"80c4-P": ["程式碼已複製到剪貼簿"],"81H_23": ["新增屬性"],"851WA-": ["這可以在「設定 > AI 工具與 CLI」中設定"],@@ -3505,9 +3508,6 @@"mPy9lS": ["把我現有的規格整理成一個依領域分組的連結索引,並標出和目前程式碼已經脫節的部分。"],"mPzgTS": ["開啟 ", ["docName"]],"mR3uQg": ["此檔案已在目前分支中刪除(delete-modify 衝突)。"],- "mRitpT": [- "它還會加入 macOS 為 OpenKnowledge 及其輔助程序記錄的當機報告,僅包含我們的報告,絕不包含其他應用程式的報告。"- ],"mToVM9": ["傳訊息給 ", ["agentName"]],"mU3j1b": ["移除項目 ", ["0"]],"mVFyH-": [["accessibleLabel"], "(衝突)"],diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.poindex 97cb0d348..e5bbe1aab 100644--- a/packages/app/src/locales/zh-Hant/messages.po+++ b/packages/app/src/locales/zh-Hant/messages.po@@ -7295,8 +7295,8 @@ msgid "Invalid YAML"msgstr "無效的 YAML"#: src/components/ReportBugDialogBody.tsx-msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, only ours and never another app's."-msgstr "它還會加入 macOS 為 OpenKnowledge 及其輔助程序記錄的當機報告,僅包含我們的報告,絕不包含其他應用程式的報告。"+msgid "It also adds the crash reports macOS recorded for OpenKnowledge and its helper processes, never another app's report, though ours do name the processes they were running alongside. Each one carries machine details macOS puts in every report: your account uid, the Mac model, and the name of the process that launched the app. On a managed machine, that launching process can be internal tooling. The identifiers that would link the bug reports you file to each other are replaced first, so a collected report is not byte-identical to the one macOS wrote."+msgstr "還會加入 macOS 為 OpenKnowledge 及其輔助處理程序記錄的當機報告,絕不包含其他應用程式的報告,不過我們自己的報告會列出與之同時執行的處理程序。每份報告都含有 macOS 寫入所有報告的機器資訊:你的帳戶 uid、Mac 機型,以及啟動該應用程式的處理程序名稱。在受管理的裝置上,該啟動處理程序可能是內部工具。會先替換掉可能將你提交的多份問題報告相互關聯的識別碼,因此收集到的報告與 macOS 寫入的原文並非逐位元組相同。"#. placeholder {0}: prompt.cwd#. placeholder {1}: prompt.agentNamediff --git a/packages/cli/src/commands/diagnose-bundle.test.ts b/packages/cli/src/commands/diagnose-bundle.test.tsindex 792e0ebee..f137ec766 100644--- a/packages/cli/src/commands/diagnose-bundle.test.ts+++ b/packages/cli/src/commands/diagnose-bundle.test.ts@@ -100,6 +100,14 @@ describe('runDiagnoseBundle — macOS crash reports', () => {'1 collected (7d; 1 other-process report(s) ignored; 0 unparseable)',);expect(summaryLine).not.toContain('not-collected');++ const allLogs = captured.logs.join('\n');+ expect(allLogs).toContain('machine details macOS puts in every report');+ expect(allLogs).toContain('account uid, the Mac model, and the name of the process that');+ expect(allLogs).toContain('which on a managed machine can be internal');+ expect(allLogs).toContain('tooling.');+ expect(allLogs).toContain('bundles to each other replaced');+ expect(allLogs).toContain('processes it was running alongside');});test('reports an empty sweep rather than staying silent', async () => {@@ -126,6 +134,9 @@ describe('runDiagnoseBundle — macOS crash reports', () => {'NOT scrubbed (--no-redact): tokens and keys ship verbatim, crash reports excepted',);expect(allLogs).toContain('Not byte-identical to the files macOS wrote');+ expect(allLogs).toContain('machine details macOS puts in every report');+ expect(allLogs).toContain('bundles to each other replaced');+ expect(allLogs).toContain('processes it was running alongside');});test('--no-redact promises no exception when no report was staged', async () => {diff --git a/packages/cli/src/commands/diagnose.ts b/packages/cli/src/commands/diagnose.tsindex 21c18a30a..56a3cc421 100644--- a/packages/cli/src/commands/diagnose.ts+++ b/packages/cli/src/commands/diagnose.ts@@ -516,10 +516,16 @@ function printSummary(` macOS crash reports: ${renderDiagnosticReportsStatus(diagnosticReports, summary.stagedDiagnosticReports)}`,);if (summary.stagedDiagnosticReports > 0) {- log(' rewritten on the way in: escaped path separators normalised');- log(' so the scrub can read them, and the per-device identifier');- log(' replaced. Not byte-identical to the files macOS wrote, on');- log(' any tier and regardless of --no-redact.');+ log(' each carrying machine details macOS puts in every report: the');+ log(' account uid, the Mac model, and the name of the process that');+ log(' launched this app, which on a managed machine can be internal');+ log(' tooling.');+ log(' Rewritten on the way in: escaped path separators normalised so');+ log(' the scrub can read them, and the identifiers that would link');+ log(" this machine's bundles to each other replaced.");+ log(' Not byte-identical to the files macOS wrote, on any tier and');+ log(' regardless of --no-redact. A report of ours still names the');+ log(' processes it was running alongside.');}log(` Output: ${outputPath}`);log('');diff --git a/packages/cli/src/diagnose/diagnostic-reports.test.ts b/packages/cli/src/diagnose/diagnostic-reports.test.tsindex 32cbc388f..ba6750b0f 100644--- a/packages/cli/src/diagnose/diagnostic-reports.test.ts+++ b/packages/cli/src/diagnose/diagnostic-reports.test.ts@@ -1,13 +1,33 @@-import { existsSync, mkdirSync, mkdtempSync, rmSync, utimesSync, writeFileSync } from 'node:fs';+import {+ existsSync,+ mkdirSync,+ mkdtempSync,+ readSync,+ rmSync,+ utimesSync,+ writeFileSync,+} from 'node:fs';import { tmpdir } from 'node:os';import { basename, join, resolve } from 'node:path';-import { afterEach, describe, expect, test } from 'vitest';+import { afterEach, describe, expect, test, vi } from 'vitest';+import {collectDiagnosticReports,+ MAX_HEADER_BYTES,prepareDiagnosticReportText,renderDiagnosticReportsStatus,} from './diagnostic-reports.ts';+const fsHolder = vi.hoisted(() => ({+ realReadSync: null as null | typeof import('node:fs').readSync,+}));+vi.mock('node:fs', async (importOriginal) => {+ const actual = await importOriginal<typeof import('node:fs')>();+ fsHolder.realReadSync = actual.readSync;+ return { ...actual, readSync: vi.fn(actual.readSync) };+});+const mockedReadSync = vi.mocked(readSync);+const tmpDirs: string[] = [];function makeTmpDir(): string {@@ -17,6 +37,7 @@ function makeTmpDir(): string {}afterEach(() => {+ mockedReadSync.mockReset();for (const d of tmpDirs) {if (existsSync(d)) rmSync(d, { recursive: true, force: true });}@@ -41,6 +62,19 @@ function headerTimestamp(at: Date, offsetHours = 0): string {return `${shifted.toISOString().slice(0, 10)} ${shifted.toISOString().slice(11, 19)}.00 ${offset}`;}+function headerOfExactBytes(target: number): string {+ const build = (pad: string): string =>+ JSON.stringify({+ name: 'OpenKnowledge',+ bug_type: '309',+ timestamp: headerTimestamp(daysBefore(1)),+ pad,+ });+ const header = build('x'.repeat(target - Buffer.byteLength(build(''))));+ expect(Buffer.byteLength(header)).toBe(target);+ return header;+}+function writeReport(dir: string,fileName: string,@@ -113,7 +147,10 @@ describe('prepareDiagnosticReportText', () => {' "crashReporterKey" : "03BEA1C8-0E42-2631-A65B-FB48F8C46739",',' "bootSessionUUID" : "2C1A7E44-9B3D-4A02-8F55-1D0C6E9B7A31",',' "sleepWakeUUID" : "7F2B9C10-4E5A-4B88-9C31-0A2D5E7F1B44",',- ' "incident_id" : "9D5B0E6B-1F0A-4E77-9A6E-6C7B2E0A0B11"',+ ' "incident_id" : "9D5B0E6B-1F0A-4E77-9A6E-6C7B2E0A0B11",',+ ' "storeInfo" : {',+ ' "deviceIdentifierForVendor" : "4E1D9A73-55C2-4F08-B6A1-2D77C0E3F912"',+ ' }','}',].join('\n');@@ -123,6 +160,8 @@ describe('prepareDiagnosticReportText', () => {expect(after).not.toContain('2C1A7E44-9B3D-4A02-8F55-1D0C6E9B7A31');expect(after).toContain('"crashReporterKey" : "[REDACTED-DEVICE-ID]"');expect(after).toContain('"bootSessionUUID" : "[REDACTED-DEVICE-ID]"');+ expect(after).not.toContain('4E1D9A73-55C2-4F08-B6A1-2D77C0E3F912');+ expect(after).toContain('"deviceIdentifierForVendor" : "[REDACTED-DEVICE-ID]"');expect(after).toContain('7F2B9C10-4E5A-4B88-9C31-0A2D5E7F1B44');expect(after).toContain('9D5B0E6B-1F0A-4E77-9A6E-6C7B2E0A0B11');expect(() => JSON.parse(after)).not.toThrow();@@ -388,6 +427,72 @@ describe('collectDiagnosticReports', () => {expect(result.files.map((f) => basename(f))).toEqual(['OpenKnowledge-partial.ips']);expect(result.unparseable).toBe(0);});++ test('bounds the header read at 8 KiB, which every boundary fixture derives from', () => {+ expect(MAX_HEADER_BYTES).toBe(8192);+ });++ test('reassembles a header delivered in short reads, as a network mount may return it', () => {+ const dir = makeTmpDir();+ writeReport(dir, 'OpenKnowledge-chunked.ips', { name: 'OpenKnowledge' });+ mockedReadSync.mockImplementation((fd, buffer, offset, length, position) =>+ (fsHolder.realReadSync as typeof import('node:fs').readSync)(+ fd,+ buffer as NodeJS.ArrayBufferView,+ offset as number,+ Math.min(length as number, 3),+ position as number,+ ),+ );++ const result = collectDiagnosticReports(dir, NOW);++ expect(result.files.map((f) => basename(f))).toEqual(['OpenKnowledge-chunked.ips']);+ expect(result.unparseable).toBe(0);+ expect(mockedReadSync.mock.calls.length).toBeGreaterThan(1);+ });++ test('collects a header whose newline lands on the last byte the window covers', () => {+ const dir = makeTmpDir();+ const padded = headerOfExactBytes(MAX_HEADER_BYTES - 1);+ writeReport(dir, 'OpenKnowledge-at-bound.ips', {+ name: 'OpenKnowledge',+ raw: `${padded}\n{"procName":"OpenKnowledge"}\n`,+ });++ const result = collectDiagnosticReports(dir, NOW);++ expect(result.files.map((f) => basename(f))).toEqual(['OpenKnowledge-at-bound.ips']);+ expect(result.unparseable).toBe(0);+ });++ test('treats a header complete at exactly the bound as unreadable', () => {+ const dir = makeTmpDir();+ const padded = headerOfExactBytes(MAX_HEADER_BYTES);+ writeReport(dir, 'OpenKnowledge-exact-bound.ips', {+ name: 'OpenKnowledge',+ raw: `${padded}\n{"procName":"OpenKnowledge"}\n`,+ });++ const result = collectDiagnosticReports(dir, NOW);++ expect(result.files).toEqual([]);+ expect(result.unparseable).toBe(1);+ });++ test('treats a header line that runs past the bound as unreadable', () => {+ const dir = makeTmpDir();+ const padded = headerOfExactBytes(MAX_HEADER_BYTES + 1);+ writeReport(dir, 'OpenKnowledge-past-bound.ips', {+ name: 'OpenKnowledge',+ raw: `${padded}\n{"procName":"OpenKnowledge"}\n`,+ });++ const result = collectDiagnosticReports(dir, NOW);++ expect(result.files).toEqual([]);+ expect(result.unparseable).toBe(1);+ });});describe('status when nothing is collected', () => {diff --git a/packages/cli/src/diagnose/diagnostic-reports.ts b/packages/cli/src/diagnose/diagnostic-reports.tsindex bb66402f2..feb86953c 100644--- a/packages/cli/src/diagnose/diagnostic-reports.ts+++ b/packages/cli/src/diagnose/diagnostic-reports.ts@@ -1,4 +1,4 @@-import { type Dirent, readdirSync, readFileSync, statSync } from 'node:fs';+import { closeSync, type Dirent, openSync, readdirSync, readSync, statSync } from 'node:fs';import { join } from 'node:path';import { DESKTOP_PRODUCT_NAME } from '../integrations/desktop-state.ts';@@ -7,6 +7,8 @@ const DIAGNOSTIC_REPORT_WINDOW_MS = DIAGNOSTIC_REPORT_WINDOW_DAYS * 24 * 60 * 60const MAX_BUNDLED_DIAGNOSTIC_REPORTS = 25;+export const MAX_HEADER_BYTES = 8192;+export interface DiagnosticReportCollection {files: string[];outcome: 'not-present' | 'unreadable-directory' | 'none-in-window' | 'collected';@@ -51,7 +53,11 @@ function normalizeSolidusEscapes(content: string): string {});}-const LINKING_IDENTIFIER_KEYS = ['crashReporterKey', 'bootSessionUUID'] as const;+const LINKING_IDENTIFIER_KEYS = [+ 'crashReporterKey',+ 'bootSessionUUID',+ 'deviceIdentifierForVendor',+] as const;const LINKING_IDENTIFIERS = new RegExp(`("(?:${LINKING_IDENTIFIER_KEYS.join('|')})"\\s*:\\s*)"[^"]*"`,@@ -81,11 +87,33 @@ function parseHeaderTimestamp(value: unknown): number | null {return Number.isNaN(parsed) ? null : parsed;}+function readHeaderLine(filePath: string): string | null {+ const fd = openSync(filePath, 'r');+ try {+ const buf = Buffer.alloc(MAX_HEADER_BYTES);+ let filled = 0;+ let atEof = false;+ while (filled < MAX_HEADER_BYTES) {+ const read = readSync(fd, buf, filled, MAX_HEADER_BYTES - filled, filled);+ if (read === 0) {+ atEof = true;+ break;+ }+ const scanFrom = filled;+ filled += read;+ const found = buf.subarray(0, filled).indexOf(0x0a, scanFrom);+ if (found !== -1) return buf.subarray(0, found).toString('utf-8');+ }+ return atEof ? buf.subarray(0, filled).toString('utf-8') : null;+ } finally {+ closeSync(fd);+ }+}+function readReportHeader(filePath: string): ReportHeader {try {- const content = readFileSync(filePath, 'utf-8');- const newline = content.indexOf('\n');- const firstLine = newline === -1 ? content : content.slice(0, newline);+ const firstLine = readHeaderLine(filePath);+ if (firstLine === null) return { kind: 'unreadable' };const header: unknown = JSON.parse(firstLine);if (typeof header !== 'object' || header === null) return { kind: 'unreadable' };const {diff --git a/packages/cli/src/diagnose/staging-coverage.test.ts b/packages/cli/src/diagnose/staging-coverage.test.tsindex 7ad686c8c..d2d025a1c 100644--- a/packages/cli/src/diagnose/staging-coverage.test.ts+++ b/packages/cli/src/diagnose/staging-coverage.test.ts@@ -69,8 +69,35 @@ describe('staged-content coverage', () => {tmpDirs.push(contentDir);writeFileSync(join(contentDir, 'note.md'), '# note\n');+ const reportsDir = mkdtempSync(resolve(tmpdir(), 'ok-staging-coverage-reports-'));+ tmpDirs.push(reportsDir);+ const reportPath = join(reportsDir, 'OpenKnowledge-2026-05-28-142201.ips');+ writeFileSync(+ reportPath,+ `${JSON.stringify({ name: 'OpenKnowledge', timestamp: '2026-05-28 14:22:01.00 +0000' })}\n{"procName":"OpenKnowledge"}\n`,+ );++ const processDir = mkdtempSync(resolve(tmpdir(), 'ok-staging-coverage-process-'));+ tmpDirs.push(processDir);+ writeFileSync(join(processDir, 'sample.txt'), 'process sample\n');++ const extraDir = mkdtempSync(resolve(tmpdir(), 'ok-staging-coverage-extra-'));+ tmpDirs.push(extraDir);+ const extraPath = join(extraDir, 'minidump.dmp');+ writeFileSync(extraPath, Buffer.from([0x4d, 0x44, 0x4d, 0x50, 0x00, 0x01]));+const collected = await collectBundle({contentDir,+ processDir,+ extraFiles: [{ sourcePath: extraPath }],+ diagnosticReports: {+ files: [reportPath],+ outcome: 'collected',+ foreignIgnored: 0,+ unparseable: 0,+ droppedOverCap: 0,+ windowDays: 7,+ },deps: {fetchAgentPresence: async () => null,fetchAgentEffects: async () => null,@@ -89,7 +116,9 @@ describe('staged-content coverage', () => {const produced = readdirSync(collected.stagingDir, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name);- expect(produced.length).toBeGreaterThan(0);+ expect(produced).toContain('diagnostic-reports');+ expect(produced).toContain('process');+ expect(produced).toContain('extra');for (const dir of produced) {expect(Object.keys(TOP_LEVEL), `staged directory "${dir}" is undeclared`).toContain(dir);}