Skip to content

Conversation

@markijbema
Copy link
Contributor

we had multiple people give us feedback that this triggers when the task is actually there, so this does more harm than good now

we had multiple people give us feedback that this triggers when the task is actually there, so this does more
harm than good now
@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

🦋 Changeset detected

Latest commit: 909bca7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@markijbema markijbema marked this pull request as draft January 8, 2026 14:54
@markijbema
Copy link
Contributor Author

TODO: also revert 942e605

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 8, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

This PR cleanly removes the "file not found" red background feature from task history items. The changes are well-structured:

  • Schema update: Removes fileNotfound field from historyItemSchema in packages/types/src/history.ts
  • Backend cleanup: Removes setTaskFileNotFound method and comments out the problematic deletion logic in ClineProvider.ts with clear explanatory comments
  • UI cleanup: Removes conditional red background styling from TaskItem.tsx

The explanatory comments in ClineProvider.ts (lines 1819-1825) provide good context for why the deletion was disabled - users were confused because tasks marked as "not found" were actually working fine, suggesting the detection was triggering too often or tasks were syncing later.

Files Reviewed (4 files)
  • .changeset/clever-moments-melt.md - Changeset for the fix
  • packages/types/src/history.ts - Schema field removal
  • src/core/webview/ClineProvider.ts - Method removal and logic commenting
  • webview-ui/src/components/history/TaskItem.tsx - UI styling cleanup

- Remove fileNotfound field from HistoryItem schema
- Remove setTaskFileNotFound method from ClineProvider
- Restore original deleteTaskFromState behavior when task file is not found

This completes the revert of PR #938's fileNotFound feature which was
marking tasks with a red background when their files couldn't be found.
// FIXME: this seems to happen sometimes when the json file doesnt save to disk for some reason
// await this.deleteTaskFromState(id) // kilocode_change disable confusing behaviour
await this.setTaskFileNotFound(id) // kilocode_change
await this.deleteTaskFromState(id)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we want to comment this out?

@markijbema markijbema marked this pull request as ready for review January 8, 2026 15:11
@markijbema markijbema requested a review from chrarnoldus January 8, 2026 15:12
Copy link
Collaborator

@chrarnoldus chrarnoldus left a comment

Choose a reason for hiding this comment

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

do we want a changeset?

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.

3 participants