Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Assist pipeline pickers never refresh a non-empty cache, so new pipelines are missing from CarPlay Quick Access

Chiusa Adatta ai principianti
#6,000 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bgoncal ci sta già lavorando.

Dal 7/10/2026.

  • #6003 di @bgoncal — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
ios, swift
Ambito
mobile

Direzione di ricerca

Inizia con AssistPipelineAddList.fetchPipelines() e AssistPipelinePicker.fetchPipelines() nei percorsi collegati nell’issue; confronta il loro comportamento della cache con AssistViewModel, che aggiorna le pipeline a ogni sessione. Verifica che entrambi i selettori possano mostrare le pipeline memorizzate nella cache mentre richiedono quelle aggiornate al server. Il lavoro è completato quando le pipeline appena create compaiono nei selettori senza dover prima aprire la schermata Assist nell’app.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug ios

iOS device model, version and app version

Model Name: iPhone 15 (iPhone15,4)
Software Version: iOS 26.6.2
App version: 2026.9.1 (2026.2985)

Home Assistant Core Version

2026.8.3

Describe the bug

When adding an item in the Settings Quick Access configuration for CarPlay (Add item > Assist / Assist prompt), the pipeline list shows only the pipelines that were cached the last time the app fetched them. Pipelines created in Home Assistant after that never appear, even after force-quitting the app. In my case two pipelines created weeks apart (one on 12 Sep, one today) were both missing, while the older three were listed.

Opening the in-app Assist screen once fixes it: AssistViewModel refetches pipelines on every session and saves them to the database, after which the new pipelines show up in the picker.

The cause appears to be that both pickers read the GRDB cache and only request pipelines from the server when the cache is empty:

assistConfigs = try AssistPipelines.config() ?? []
if assistConfigs.isEmpty {
    requestPipelines()
}

So a non-empty but stale cache is never refreshed from these screens.

To Reproduce

  1. Use Assist in the app at least once so pipelines are cached.
  2. In Home Assistant, create a new Assist pipeline.
  3. Force-quit and reopen the Companion app.
  4. Settings > CarPlay > Quick Access > Add item > Assist (or Assist prompt).
  5. The new pipeline is not listed.
  6. Open the in-app Assist screen, close it, and repeat step 4: the pipeline now appears.

Expected behavior

The pipeline pickers show current pipelines. For example, show the cached list immediately and refresh from the server in the background (as AssistViewModel already does), or offer pull-to-refresh.

Screenshots

The Add item > Assist list showed only Preferred, Home Assistant (fully local), Home Assistant (Claude API) and Claw. The two newer pipelines (OpenClaw, Hank Car) were missing until the in-app Assist screen had been opened once.

Additional context

Found while setting up CarPlay Assist on iOS 26.4+.

Lingua principale
Swift
Stelle
2.4k
Fork
541
Merge medio
23h 29m
PR unite (30g)
174

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di home-assistant/iOS

Tutte le issue di home-assistant/iOS

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.