Skip to content

git cache read only warning#1234

Draft
g-r-a-n-t wants to merge 2 commits intoargotorg:masterfrom
g-r-a-n-t:git-cache-read-only
Draft

git cache read only warning#1234
g-r-a-n-t wants to merge 2 commits intoargotorg:masterfrom
g-r-a-n-t:git-cache-read-only

Conversation

@g-r-a-n-t
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef6f675853

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +265 to +276
if backend.is_git_cache_path(&path) {
if matches!(message.kind, ChangeKind::Edit(_))
&& backend.readonly_warnings.insert(message.uri.clone())
{
let _ = backend.client.clone().show_message(ShowMessageParams {
typ: MessageType::ERROR,
message:
"Git dependency cache files are read-only in the editor; edits are ignored."
.to_string(),
});
}
return Ok(());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow git cache file updates from file watchers

This early return drops all FileChange events for git cache paths, not just in-editor edits. That means changes coming from didChangeWatchedFiles (e.g., updating a dependency or switching a git revision in the cache) will never refresh the workspace contents, so diagnostics and hover/rename data can stay stale until restart. If the intent is only to block user edits, consider still processing Create/Delete (and possibly Edit(None) from file watchers) while suppressing only Edit(Some(_)) that came from the editor.

Useful? React with 👍 / 👎.

@g-r-a-n-t g-r-a-n-t changed the title git cache read only warnings git cache read only warning Feb 2, 2026
@g-r-a-n-t g-r-a-n-t force-pushed the git-cache-read-only branch from ef6f675 to 72d8349 Compare February 3, 2026 01:48
@g-r-a-n-t g-r-a-n-t marked this pull request as draft February 17, 2026 17:50
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.

1 participant