[Bug]: Sophos CPU usage skyrockets after adding a repository folder to desktop app
@aliarain 已經在處理了。
開始於 2026年9月7日。
評估
這個 Issue 還沒有評估資料。
描述
GUI version
0.1.26
Operating system
macOS (Apple silicon)
Reproduction steps
With Command Code Desktop installed but not adding a repository, Sophos is essentially idle:
com.sophos.endpoint.scanextension 0.1%
SophosEventMonitor 0.1%
SophosCryptoGuard 0.1%
After adding a repository and using Command Code with it, Sophos CPU usage progressively increases.
For example:
com.sophos.endpoint.scanextension 133.2%
SophosEventMonitor 74.2%
SophosCryptoGuard 165.2%
and shortly afterwards:
com.sophos.endpoint.scanextension 154.2%
SophosEventMonitor 73.6%
SophosCryptoGuard 189.3%
So Sophos reaches roughly 370–420% combined CPU.
Removing the repository from Command Code immediately brings Sophos back to approximately 1–3% CPU.
I reproduced the same behaviour after reinstalling Command Code Desktop.
No issues with the CLI
Expected behavior
Adding a repository, including one containing tens of thousands of files and normal dependency/build directories, should not cause the system's antivirus/security software to enter a sustained hundreds-of-percent CPU state.
I would expect Command Code's indexing/file-watching logic to avoid unnecessary directories such as node_modules, build output, coverage, etc., particularly when they are excluded by .gitignore.
Actual behavior
This looks like an interaction between Command Code Desktop's repository discovery/indexing/file-watching behaviour and Sophos Endpoint's on-access scanning.
I do not know whether the underlying issue is excessive filesystem activity generated by Command Code, Sophos's handling of that activity, or an interaction between the two.
The fact that removing the repository immediately stops the Sophos CPU storm makes the repository/indexing behaviour in Command Code the most obvious place to investigate.
Happy to provide additional diagnostics if useful.
Screenshots, recordings, or sanitized logs
Here is a video where I open the app, let it run without doing anything, the CPU goes up, then as soon as I close it, Sophos CPU usage drops immediately
https://github.com/user-attachments/assets/3d53447f-cb07-48b6-857f-fafc0c05c579
Safety check
- I removed credentials and private project information from this report.
- 主要語言
- Shell
- 星號
- 85
- 分支
- 5
- 平均合併
- 2 小時 46 分鐘
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CommandCodeAI/desktop 的其他 Issue
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controls可能已有人在做 @aliarain 於 3 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 70/100
CommandCodeAI/desktop#125 · 1 則留言 · 已指派 1 人 ·
-
[Feedback]: add copy block under a code block可能已有人在做 @aliarain 於 8 天前認領。 未關閉enhancement
難度 2/5 1-3 小時 新手友好度 68/100
CommandCodeAI/desktop#94 · 已指派 1 人 ·
-
[Feedback]: Add Expand & Collapse for changes可能已有人在做 @aliarain 於 8 天前認領。 未關閉enhancement
難度 2/5 1-3 小時 新手友好度 68/100
CommandCodeAI/desktop#66 · 1 則留言 · 2 個 reaction · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 52/100
CommandCodeAI/desktop#131 · 1 則留言 ·
-
bug
難度 2/5 1-3 小時 新手友好度 58/100
CommandCodeAI/desktop#130 ·
查看 CommandCodeAI/desktop 的全部 Issue
相似的 Issue
-
component:skill
難度 1/5 1 小時以內 新手友好度 94/100
agentic-os-org/ANOLISA#4086 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
adobe-fonts/source-serif#152 ·
-
難度 2/5 1-3 小時 新手友好度 86/100
canonical/rocks-toolbox#52 ·
-
難度 2/5 1-3 小時 新手友好度 74/100
tldr-pages/tldr#24565 ·
維護者通常 1 天內回覆
-
agentic documentation
難度 2/5 1-3 小時 新手友好度 82/100
MagnaCapax/PMSS#981 ·
維護者通常 5 天內回覆