[VS Code][macOS] Git processes consume substantially more CPU during Codex tasks than before

未关闭
#63,508 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
22/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
活跃
技术栈
git, macos, vscode

调研方向

This is a profiling investigation with no code pointers: the report names no Git commands, no measurements, and no files. Start by capturing which Git subprocesses the Codex VS Code extension spawns during a task (macOS, process sampling over a single task), then compare the frequency of invocations against expected polling behaviour. Read the related reports #34005, #35008 and #28036 to see whether a shared Git-watcher path is already suspected. Done means the hot invocation path is identified and its call frequency bounded, with before/after CPU numbers attached.

由索引模型根据 Issue 内容生成。

描述

bug extension performance
Environment
  • Codex IDE extension (openai.chatgpt) in VS Code on macOS
  • Observed November 24, 2026; exact extension and OS build not recorded
Actual behavior

During Codex tasks, Git processes consume significantly more CPU resources than they used to. This is a noticeable performance regression in normal development work.

Steps to reproduce
  1. Open a project in VS Code on macOS and use the Codex extension.
  2. Start a typical development task.
  3. Observe the CPU consumption of Git processes while the task is running and compare it with the behavior before the regression.
Expected behavior

Git-related operations should be bounded and efficient, with no unnecessary polling, repeated scans, or redundant process invocations. Normal Codex tasks should not impose disproportionately high CPU overhead from Git.

Related reports

#34005 and #35008 describe excessive Git-related activity on other Codex surfaces/platforms. #28036 describes Git background activity in the VS Code extension under different conditions. I have not confirmed a shared cause, specific Git commands, repository characteristics, or exact CPU measurements for this report.

Please investigate the regression in Git-related resource usage on the macOS VS Code extension.

主要语言
Rust
星标
136k
派生
21.6k
平均合并
1 分钟
30 天内合并 PR
998

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

openai/codex 的其他 Issue

查看 openai/codex 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。