Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ 初心者向け
#79 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

関連するプルリクエストがすでにマージされています。

  • #80 @bartreardon による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
swift
領域
devops

調査の方向性

Outset/Globals.swift と Outset/UserDefaults/Preferences.swift を読み、タイムアウトのフォールバックを、issue で引用されている wiki と CHANGELOG の記述と比較してください。動作とドキュメントのどちらを変更すべきか判断してください。デフォルトの動作と関連するすべてのドキュメントが一致し、選択した変更に適切なテストまたは検証が行われれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
Swift
スター
253
フォーク
18
平均マージ
9分
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

macadmins/outset のほかの issue

macadmins/outset の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。