Don't start file watcher before "initial sync" is complete, when joining

Open
#473 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start by tracing the join flow, the initial sync, and when the file watcher is started; the issue does not name specific files or tests. Use the attached logs and reproduce a join with both peers on the same Git commit and no local changes. Done means the watcher does not act until initial sync completes, avoiding the reported conflicts and deletions.

Written by the indexing model from the issue text.

Description

bug

Describe the bug
When I join, sometimes, teamtype detects a lot of conflicts, delete files, does some random stuff.
We have to stop it and retry.

We are on the same git commit, no local changes, that's really strange.

I did not have nvim launched at all.

Versions:

  • teamtype --version: teamtype 0.9.1-dev (fc6d8e728 2025-12-17)

The logs are HUGE logs.txt

Dominant language
Rust
Stars
2k
Forks
61
Avg merge
5d 18h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from teamtype/teamtype

All issues in teamtype/teamtype

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.