[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
- スター
- 80
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandCodeAI/desktop のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/desktop#94 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/desktop#66 · コメント 1 件 · リアクション 2 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
CommandCodeAI/desktop#105 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
CommandCodeAI/desktop#104 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
CommandCodeAI/desktop#103 ·
CommandCodeAI/desktop の issue をすべて見る
似ている issue
-
Issue-Enhancement Needs-Triage
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
PowerShell/PowerShell#28061 · リアクション 2 件 ·
-
Feature Request: Add ability to load custom environment variables in linux-exec-server-installer.sh オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/vscode-remote-release#11867 ·
-
AuTest Bug Tests
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/trafficserver#13714 ·
-
Update to NCCL 2.32 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
conda-forge/nccl-feedstock#166 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
vllm-project/agentic-api#358 · コメント 1 件 ·