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

background_script_timeout defaults to 30s, but docs/CHANGELOG say background scripts wait indefinitely

Chiusa Adatta ai principianti
#79 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Una pull request collegata è già stata integrata.

  • #80 di @bartreardon — integrata

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
swift
Ambito
devops

Direzione di ricerca

Leggi Outset/Globals.swift e Outset/UserDefaults/Preferences.swift, quindi confronta il fallback del timeout con le affermazioni del wiki e del CHANGELOG citate nell’issue. Decidi se modificare il comportamento o la documentazione; il lavoro è completato quando il comportamento predefinito e tutta la documentazione pertinente sono coerenti, con un test o una verifica adeguati per la modifica scelta.

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

Descrizione

What happens

With Outset 4.3.0.22031 and no background_script_timeout set, a background (_-prefixed) login-once script is killed after 30 seconds:

INFO: [BG] Launching background script: /usr/local/outset/login-once/_campus-new-mac-defaults.sh
ERROR: [BG:pid=5464] Background script /usr/local/outset/login-once/_campus-new-mac-defaults.sh timed out after 30s — terminating
ERROR: [BG:pid=5464] /usr/local/outset/login-once/_campus-new-mac-defaults.sh exited with status 15

What the docs say

  • Wiki, Background Scripts → Timeout: "By default, Outset waits indefinitely for background scripts to finish."
  • CHANGELOG (4.3): "A new optional preference key background_script_timeout (integer, seconds, no default) … When not set, Outset waits indefinitely for background scripts to exit."
  • The comment above backgroundScriptTimeout in Outset/UserDefaults/Preferences.swift: "When nil, background scripts run until they exit naturally with no enforced limit."

What the code does

Outset/Globals.swift: let defaultBackgroundScriptTimeout: Int = 30, used as the fallback in Preferences.swift (as? Int ?? defaultBackgroundScriptTimeout) and as the struct default.

Suggested fix

Either make the default "no limit" to match the docs (e.g. treat 0/unset as unlimited), or update the wiki, CHANGELOG and code comment to say the default is 30 seconds. Waiting for something to finish installing is a natural use of background scripts, and a silent 30 s cap is easy to miss.

Workaround for anyone hitting this: set background_script_timeout (seconds) in the io.macadmins.Outset managed preferences.

AI

AI: Claude Code (claude-opus-5-5)

Lingua principale
Swift
Stelle
253
Fork
18
Merge medio
9m
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 macadmins/outset

Tutte le issue di macadmins/outset

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.