Skip to content

Commit 75f7381

Browse files
committed
fix: resolve user login shell environment and throttle gh API calls
ShellCommand now resolves the user's login shell environment once at startup and injects it into every subprocess. This fixes tmux socket mismatches in .app bundles (TMPDIR differs from terminal) that caused 0 sessions to show in the process manager. Also throttle gh CLI calls: every 30s when active, every 5min when backgrounded, to avoid GitHub API rate limiting.
1 parent c62b49e commit 75f7381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/KanbanCodeCore/UseCases/BoardStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,8 @@ public final class BoardStore: @unchecked Sendable {
10821082
}
10831083

10841084
// Fetch PR data via targeted GraphQL — concurrent across repos (max 5)
1085-
// Throttle: every 30s when active, every 5min when backgrounded.
1086-
let ghInterval: Duration = appIsActive ? .seconds(30) : .seconds(300)
1085+
// Throttle: every reconcile cycle when active, every 5min when backgrounded/hidden.
1086+
let ghInterval: Duration = appIsActive ? .seconds(0) : .seconds(300)
10871087
let shouldFetchPRs = ContinuousClock.now - lastGHLookup >= ghInterval
10881088
var pullRequests: [String: PullRequest] = [:] // branch → PR for reconciler
10891089
var prsByRepoAndNumber: [String: [Int: PullRequest]] = [:] // repo → number → PR

0 commit comments

Comments
 (0)