Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(server): macOS service starts even when launchd leaves it pending after bootstrap
#29528
Send to my agent
Open
juliusmarminge
wants to merge 8 commits into
main
from
refs/pull/29528/head
·
opened
4 weeks ago
View on GitHub
Conversation
11
Commits
8
Files changed
2
Impact
Showing
2 changed files
with
59 additions
and
2 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
45 additions and 1 deletion
+45
-1
apps/server/src/cloud/bootService.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/cloud/bootService.test.ts
View file
Expand up
Show all 119 lines
@@ -120,11 +120,18 @@
120
120
linger:
string
;
121
121
enabled:
boolean
;
122
122
active:
boolean
;
123
+
// launchd can load a bootstrapped job yet leave its RunAtLoad spawn pending.
124
+
bootstrapSpawns:
boolean
;
125
+
launchdLoaded:
boolean
;
126
+
launchdRunning:
boolean
;
123
127
} = {
124
128
failCommand
:
undefined
,
125
129
linger
:
"yes"
,
126
130
enabled
:
true
,
127
131
active
:
true
,
132
+
bootstrapSpawns
:
true
,
133
+
launchdLoaded
:
false
,
134
+
launchdRunning
:
false
,
128
135
};
129
136
const
runner =
ProcessRunner
.
ProcessRunner
.
of
({
130
137
run
:
Effect
.
fn
(
"test.run_boot_service_command"
)(
function
* (
Show all 3 lines
@@ -134,13 +141,27 @@
134
141
commands.
push
(command);
135
142
invocations.
push
(input);
136
143
timeouts.
set
(command, input.
timeout
);
137
-
const
failed = command === control.
failCommand
;
144
+
const
launchdVerb = input.
command
===
"launchctl"
? input.
args
[
0
] :
undefined
;
145
+
// launchd rejects bootstrap of a loaded job and kickstart of an unloaded one.
146
+
const
failed =
147
+
command === control.
failCommand
||
148
+
(launchdVerb ===
"bootstrap"
&& control.
launchdLoaded
) ||
Home
Search
Explore
Menu