豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Fix 'Hide Ghost Requests' not filtering ghost prompt groups#4425

Merged
ulugbekna merged 1 commit intomainfrom
ulugbekna/passive-amphibian
Mar 16, 2026
Merged

Fix 'Hide Ghost Requests' not filtering ghost prompt groups#4425
ulugbekna merged 1 commit intomainfrom
ulugbekna/passive-amphibian

Conversation

@ulugbekna
Copy link
Copy Markdown
Contributor

The ghost request filter in the Chat Debug Log only checked `ChatRequestItem` instances but not `ChatPromptItem` (parent grouping nodes). This meant ghost prompt groups labeled "Ghost" or "Ghost | ..." remained visible even with the filter active.

Extends `isGhostRequest` to also handle `ChatPromptItem`, matching the pattern already used for NES request filtering.

Fixes microsoft/vscode#297566

Copilot AI review requested due to automatic review settings March 16, 2026 13:42
The ghost request filter in the Chat Debug Log only checked ChatRequestItem
instances but not ChatPromptItem (parent grouping nodes). This meant ghost
prompt groups labeled 'Ghost' or 'Ghost | ...' remained visible even with
the filter active.

Extend isGhostRequest to also handle ChatPromptItem, matching the pattern
already used for NES request filtering.

Fixes microsoft/vscode#297566
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes the "Hide Ghost Requests" filter in the Chat Debug Log by extending isGhostRequest to also handle ChatPromptItem (parent grouping nodes), matching the pattern already used by isNesRequest.

Changes:

  • Added ghost request check for ChatPromptItem in the itemIncluded method
  • Extended isGhostRequest to accept both ChatPromptItem and ChatRequestItem, consistent with isNesRequest

@ulugbekna ulugbekna added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 539d2dc Mar 16, 2026
19 checks passed
@ulugbekna ulugbekna deleted the ulugbekna/passive-amphibian branch March 16, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Hide Ghost Requests" in Chat Debug Log still shows ghost request items

3 participants