Skip to content

Cleaned-up local files incorrectly marked as "committed"Β #96

Description

@Vachhani-Tapan

πŸ› Bug Description

sync_pending_state() marks files as status "committed" when they are no longer dirty in VS Code. These files have NOT been committed to GitHub β€” they were merely cleaned up locally or reverted.

πŸ” Steps to Reproduce

  1. Make changes to a file so it appears as staged.
  2. Discard the changes locally (revert to original).
  3. Check the file status in the database via the Telegram bot /log command.

βœ… Expected Behavior

Files that were reverted or cleaned up locally should be marked as "cancelled" or "removed", not "committed".

❌ Actual Behavior

The status bar and Telegram bot show these files as "committed", polluting the commit history with phantom commits.

🌍 Environment

Field Value
OS Any
VS Code version Any
GitPhone extension version Any
Python version Any

πŸ“‹ Additional Context

File: backend/supabase_service.py:242-277
Fix: Change the status to "cancelled" or "removed" instead of "committed" when files are no longer dirty.


Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-triageAwaiting admin review

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions