feat: inject git context into chat prompt#133
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9ed5f38a73
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| branch = "HEAD" | ||
| } | ||
|
|
||
| status, err := gitOutput(cwd, "status", "--short") |
There was a problem hiding this comment.
Disable repo-controlled hooks for git status
When Neo starts in a repo whose local config sets core.fsmonitor, this new git status --short call invokes that fsmonitor hook immediately, before the model/tool permission policy has a chance to gate command execution. That means simply opening chat in such a repository can run arbitrary local code from git configuration; please force unsafe repo-controlled integrations off for this automatic snapshot (for example by overriding fsmonitor for the command or avoiding status) before collecting git context.
Useful? React with 👍 / 👎.
Summary
Closes #63