Skip to content

[Bug]: Changes row count shows immediately on new Task with no changes, and doesn't update after actual changes #980

Description

@khuongdo

Summary

After initializing a new Task, the "changes" row count displays a non-zero number immediately — even though no changes have been made yet. Conversely, after actual file changes occur, the count does not update to reflect them. This is intermittent, not always reproducible.

Affected area

Web UI

Kandev version

v0.50.0

Install mode

Docker Compose

Environment

  • OS: Windows 11 + WSL2
  • Architecture: amd64
  • Browser: (latest Chromium-based)

Kandev configuration

  • N/A (default config)

Task/session context

N/A — reproducible on any newly created Task

Steps to reproduce

  1. Start Kandev
  2. Create a new Task
  3. Observe the "changes" row in the Task panel immediately shows a non-zero count even though no changes have been made
  4. Have the agent make file changes
  5. Observe the changes count does not update to reflect the actual number of changed files

Reproducibility

Sometimes

Clean-state check

Not tried

Expected behavior

The changes row should show 0 (or be empty) on a newly created Task with no changes. After agent makes file changes, the count should update to reflect the real number of changed files.

Actual behavior

Changes count appears immediately on Task creation (before any changes). After actual changes are made by the agent, the count stays stale and does not reflect the real state.

Logs and artifacts

No logs observed.

Last known good version

unknown

Extra context

Intermittent — not always reproducible. Likely a race condition or stale state in the changes counter UI binding on Task initialization.

Before submitting

  • I can reproduce this using the steps above.
  • I removed secrets, tokens, private repository URLs, private prompts, and customer data.
  • I searched existing issues and did not find a duplicate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions