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
Artifacts
Releases
CI
Agents
Settings
fix(antigravity): distinguish session initialization auth failures
#9919
Send to my agent
Merged
maria-rcks
merged 1 commit into
main
from
refs/pull/9919/head
·
merged by
maria-rcks
3 months ago
View on GitHub
Conversation
1
Commits
1
Files changed
2
Impact
Showing
2 changed files
with
31 additions
and
1 deletion
.
x
0 of 2 viewed, 2 left
Files
Hide whitespace
Unified
Split
28 additions and 1 deletion
+28
-1
apps/server/src/provider/AntigravityAuth.test.ts
Modified
Diff
Before/After
Viewed
apps/server/src/provider/AntigravityAuth.test.ts
View file
Expand up
Show all 60 lines
@@ -61,7 +61,7 @@
61
61
} = {},
62
62
) {
63
63
const
authenticated =
yield
*
Deferred
.
make
<
void
,
AcpErrors
.
AcpError
>();
64
-
const
discovered =
yield
*
Deferred
.
make
<
void
>();
64
+
const
discovered =
yield
*
Deferred
.
make
<
void
,
AcpErrors
.
AcpError
>();
65
65
const
closed =
yield
*
Deferred
.
make
<
void
>();
66
66
const
events:
string
[] = [];
67
67
let
receiveAuthorizationUrl:
Expand up
Expand down
Show all 156 lines
@@ -224,6 +224,33 @@
224
224
}),
225
225
);
226
226
227
+
it.
effect
(
228
+
"distinguishes a post-authentication session failure without exposing its payload"
,
229
+
() =>
230
+
Effect
.
gen
(
function
* () {
231
+
const
harness =
yield
*
makeHarness
();
232
+
yield
* harness.
auth
.
controller
.
start
(owner);
233
+
yield
*
phase
(harness.
auth
,
"waiting"
);
234
+
yield
*
Deferred
.
succeed
(harness.
authenticated
,
undefined
);
235
+
yield
*
Deferred
.
fail
(
236
+
harness.
discovered
,
237
+
new
AcpErrors
.
AcpRequestError
({
238
+
code
: -
32603
,
239
+
errorMessage
:
`Internal error
${
callbackUrl
}
`
,
240
+
method
:
"session/new"
,
241
+
}),
242
+
);
Home
Search
Explore
Menu