anthropics / anthropics/claude-code

[Agent incident] 2026-08-14 - 12:xx — iOS migrace do DB zapomněla profily: testerům se po updatu „ztratil" profil

Open
#94,961 0 comments 0 reactions 0 assignees View on GitHub
area:model bug platform:intellij
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

### Summary

Incident recorded on **2026-08-14** while working with the coding agent in IntelliJ IDEA on a private Kotlin Multiplatform project.

### Environment

- Surface: Claude Code agent in IntelliJ IDEA (JetBrains plugin)
- Project: private Kotlin Multiplatform app (Android/iOS/desktop)

### Record (verbatim, Czech)

#### 2026-08-14 12:xx — iOS migrace do DB zapomněla profily: testerům se po updatu „ztratil" profil

- **Co:** nové iOS DB úložiště (IosDbLocalStore, ~13. 8.) migruje ze souborové éry
jen `chat_*.json` a `conversations.txt`. `profile_*.json` (VČETNĚ vlastního
`profile_me.json`), `kv_*.txt`, `favs.txt` a `bans.txt` nechává ležet —
Android/desktop je v DbLocalStore.importLegacyFile mají, iOS půlku vynechal.
Tester po TestFlight updatu uviděl onboarding „vyplň profil" (hlášeno 14. 8.).
- **Škoda:** iOS testeři se starými daty vypadají jako po čerstvé instalaci;
reálně NIC smazáno není (migrace nedestruktivní, soubory netknuté), ale hrozí,
že si někdo vyplní nový profil a starý už nepůjde slepě vrátit.
- **Oprava:** druhá migrační vlna s vlastním klíčem `ios_db_migrated_profiles`
(profily jen kde v DB není kompletní, kv jen chybějící, oblíbení/bany aditivně);
iosCheck zelený. Ven se dostane až dalším Release (macOS/TestFlight).
- **Pravidlo:** migrace úložiště se píše proti ÚPLNÉMU výčtu toho, co staré
úložiště zapisovalo (projít všechny `write(...)` staré implementace), a parita
s jvm migrací se kontroluje soubor po souboru. Nová platformní migrace bez
checklistu „co všechno staré úložiště drželo" nesmí ven.

Provenance in the project's git history

- record key: `2026-08-14 ~ 12xx ios migrace do db zapomněla profily testerům se po upda`
- first committed: `2026-08-14T12:02:39+02:00`
- first commit: `f2693035b688`
- stored versions of this record: 1
- 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 points to a private Kotlin Multiplatform project and names IosDbLocalStore, DbLocalStore.importLegacyFile, and incident-log files, but it names no claude-code file, test, or requested repository change. First verify that this incident belongs in this repository; done is not defined by the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
databases, mobile-dev
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.