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): keep auth-like Codex files private to each home
#23428
Send to my agent
Open
juliusmarminge
wants to merge 9 commits into
main
from
refs/pull/23428/head
·
opened
last month
View on GitHub
Conversation
18
Commits
9
Files changed
2
Impact
Showing
2 changed files
with
106 additions
and
16 deletions
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
66 additions and 0 deletions
+66
-0
apps/server/src/provider/Drivers/CodexHomeLayout.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/provider/Drivers/CodexHomeLayout.test.ts
View file
Expand up
Show all 164 lines
@@ -165,6 +165,72 @@
165
165
}),
166
166
);
167
167
168
+
it.
effect
.
skipIf
(!symlinksSupported)(
169
+
"keeps auth-like entries private to each home without touching shared copies"
,
170
+
() =>
171
+
Effect
.
gen
(
function
* () {
172
+
const
fileSystem =
yield
*
FileSystem
.
FileSystem
;
173
+
const
path =
yield
*
Path
.
Path
;
174
+
const
sharedHome =
yield
*
makeTempDir
(
"t3code-codex-shared-"
);
175
+
const
shadowRoot =
yield
*
makeTempDir
(
"t3code-codex-shadow-root-"
);
176
+
const
shadowHome = path.
join
(shadowRoot,
"shadow"
);
177
+
const
authLikeNames = [
178
+
"auth-fixture-a.json"
,
179
+
"auth_fixture_b.json"
,
180
+
"auth.json.bak"
,
181
+
"AUTH.Backup"
,
182
+
"auth.lock"
,
183
+
];
184
+
185
+
for
(
const
name
of
authLikeNames) {
186
+
yield
*
writeTextFile
(path.
join
(sharedHome, name),
`{"shared":"
${
name
}
"}\n`
);
187
+
}
188
+
yield
*
writeTextFile
(path.
join
(sharedHome,
"author.json"
),
'{"author":true}\n'
);
189
+
yield
*
writeTextFile
(path.
join
(shadowHome,
"auth.json"
),
'{"shadow":true}\n'
);
190
+
yield
* fileSystem.
symlink
(
191
+
path.
join
(sharedHome,
"auth.lock"
),
192
+
path.
join
(shadowHome,
"auth.lock"
),
193
+
);
Home
Search
Explore
Menu