Skip to content

Add @git-changes mention#9026

Merged
marius-kilocode merged 16 commits intomainfrom
whip-krill
Apr 24, 2026
Merged

Add @git-changes mention#9026
marius-kilocode merged 16 commits intomainfrom
whip-krill

Conversation

@marius-kilocode
Copy link
Copy Markdown
Collaborator

@marius-kilocode marius-kilocode commented Apr 16, 2026

Summary

Add an @git-changes prompt mention that attaches working-tree or worktree-scoped git diffs (including untracked file contents and repos without an initial commit).
Route Agent Manager local/worktree tabs through the existing worktree diff API so the attached diff matches the diff viewer.

Context is gathered exactly like in the old extension, with the exception that now worktrees are handled properly.

image

Comment thread packages/kilo-vscode/src/services/git/context.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Apr 16, 2026

Code Review Summary

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/kilo-vscode/tests/visual-regression.spec.ts-snapshots/chat/welcome-with-switcher-and-notification-chromium-linux.png 1 The updated visual snapshot captures a Storybook runtime error (gitInstalled is not a function) instead of a valid render, so the regression baseline is masking a broken component state.
packages/kilo-vscode/src/services/git/context.ts 25 Carried forward: @git-changes still breaks on repositories without an initial commit because git diff HEAD fails on unborn branches.
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

None.

Fix these issues in Kilo Cloud

Files Reviewed (1 files)
  • packages/kilo-vscode/tests/visual-regression.spec.ts-snapshots/chat/welcome-with-switcher-and-notification-chromium-linux.png - 1 issue

Reviewed by gpt-5.4 · 0 tokens

@marius-kilocode marius-kilocode changed the title Add git changes and folder mentions Add @git-changes mention Apr 17, 2026
# Conflicts:
#	packages/kilo-vscode/src/agent-manager/AgentManagerProvider.ts
#	packages/kilo-vscode/tests/unit/file-mention-utils.test.ts
#	packages/kilo-vscode/webview-ui/src/components/chat/ChatView.tsx
#	packages/kilo-vscode/webview-ui/src/components/chat/PromptInput.tsx
#	packages/kilo-vscode/webview-ui/src/hooks/file-mention-utils.ts
#	packages/kilo-vscode/webview-ui/src/hooks/useFileMention.ts
# Conflicts:
#	packages/kilo-vscode/webview-ui/src/types/messages.ts
@marius-kilocode marius-kilocode merged commit 61516b4 into main Apr 24, 2026
17 of 19 checks passed
@marius-kilocode marius-kilocode deleted the whip-krill branch April 24, 2026 12:09
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.

2 participants