anthropics / anthropics/claude-code
[Agent incident] 2026-08-05 22:20 - odznaky „nové" u lajků/návštěv/zájmu svítily donekonečna
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
### Summary
Incident recorded on **2026-08-05 22:20** while working with the coding agent in IntelliJ IDEA on a private Kotlin Multiplatform project.
> **This record was shortened after it was written** - 7 characters present in an earlier commit are missing from the current version. The longest recorded version is reproduced below.
>
> This record was rewritten 2 times in git history; the most complete version is reproduced below.
### Environment
- Surface: Claude Code agent in IntelliJ IDEA (JetBrains plugin)
- Project: private Kotlin Multiplatform app (Android/iOS/desktop)
### Record (verbatim, Czech)
#### 2026-08-05 22:20 — odznaky „nové" u lajků/návštěv/zájmu svítily donekonečna
- **Co uživatel hlásí:** klik na lajk ho neodznačí, červená tečka dole zůstává a hlásí
nové lajky pořád dokola — a už je to venku pushem u všech uživatelů (verze 1.0.132).
Zdůrazňuje, že řešil NOVÉ UŽIVATELE, ne indikátory nových eventů.
- **Co jsem ověřil v gitu:** v dnešní dávce jsem se souborů s indikátory
(`LikesScreen`, `IncomingScreen`, `BottomBar`) dotkl jen dvěma způsoby — uložený
scroll (`0650a8aa`) a swipe po liště (`ab0ddc6d`); samotná logika odznaků
(`hasNewLikes/Visitors/Interests`, `dotFor`) je beze změny od dřívějška. Tvrdit, že
jsem ji rozbil dnes, by nebylo pravdivé — ale výsledek uživatel vidí a musí fungovat.
- **Skutečná příčina, kterou jsem našel:** značka „viděno" se ukládala jako `nowMillis()`
MÉHO zařízení, jenže položky (lajk, návštěva, zájem) nesou ts z CIZÍHO zařízení.
Když jdou hodiny protějšku napřed, je `it.ts > seenAt` pravda i po otevření tabu —
odznak i červená tečka zůstanou svítit napořád.
- **Oprava:** `` — `markLikesSeen`, `markVisitorsSeen` i
`markInterestsSeen` ukládají `max(teď, nejnovější položka)`, takže i položka
s budoucím časem se otevřením opravdu označí za viděnou.
- **Pravidlo:** časy z cizích zařízení se nikdy neporovnávají s lokálním „teď" bez
ošetření posunu hodin — u značek „viděno" se bere maximum.
Provenance in the project's git history
- record key: `2026-08-05 22:20`
- first committed: `2026-08-05T22:19:58+02:00`
- first commit: `319017fb3d22`
- stored versions of this record: 2
- files it lived in: `ai-incidents.md`, `ia-sabotages/ai-incidents.md`, `tool-sabotages/ai-incidents.md`
---
_Filed from a recovered incident log. The record above is reproduced verbatim from the project's `ai-incidents.md`; it was written in Czech at the time of the event._
Contributor guide
No contributing guide indexed for this repository
Research direction
The report concerns a private Kotlin Multiplatform project rather than a file in claude-code; it mentions LikesScreen, IncomingScreen, BottomBar, and the markLikesSeen, markVisitorsSeen, and markInterestsSeen entry points. Start by confirming the affected repository and obtaining a reproducible case. Done would require a scoped, actionable change request tied to this repository.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100