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
CI
Agents
Settings
fix(mobile): tapping a Live Activity the app started opens its thread
#48220
Send to my agent
Open
juliusmarminge
wants to merge 2 commits into
main
from
refs/pull/48220/head
·
opened
2 hours ago
View on GitHub
Conversation
4
Commits
2
Files changed
3
Impact
Showing
3 changed files
with
40 additions
and
10 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
28 additions and 0 deletions
+28
-0
apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts
Modified
Diff
Before/After
Viewed
apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts
View file
Expand up
Show all 33 lines
@@ -34,10 +34,12 @@
34
34
}
from
"../../persistence/mobile-preferences"
;
35
35
import
{
MobileSecureStorageError
}
from
"../../persistence/mobile-secure-storage"
;
36
36
import
*
as
MobileStorage
from
"../../persistence/mobile-storage"
;
37
+
import
type
{
AgentActivityProps
}
from
"../../widgets/AgentActivity"
;
37
38
import
{ makeRelayDeviceRegistrationRequest }
from
"./registrationPayload"
;
38
39
import
{
39
40
__resetAgentAwarenessRemoteRegistrationForTest,
40
41
agentAwarenessNotificationsReady,
42
+
armAgentAwarenessLiveActivityForLocalWork,
41
43
getAgentAwarenessRegistrationStatus,
42
44
refreshActiveLiveActivityRemoteRegistration,
43
45
refreshAgentAwarenessRegistration,
Expand up
Expand down
Show all 532 lines
@@ -576,6 +578,32 @@
576
578
);
577
579
});
578
580
581
+
it.
effect
(
"links the Live Activity started for local work to its thread"
, () => {
582
+
setAgentAwarenessRelayTokenProvider
(() =>
Promise
.
resolve
(
"clerk-token-user-a"
));
583
+
vi.
mocked
(loadPreferences).
mockResolvedValue
({
liveActivitiesEnabled
:
true
});
584
+
widgetMocks.
start
.
mockReturnValueOnce
(
null
as
never
);
585
+
586
+
return
Effect
.
gen
(
function
* () {
587
+
yield
*
runBackgroundOperations
();
588
+
armAgentAwarenessLiveActivityForLocalWork
({
589
+
environmentId
:
"env 1"
as
EnvironmentId
,
590
+
threadId
:
"thread-1"
as
ThreadId
,
591
+
threadTitle
:
"Fix login"
,
592
+
projectTitle
:
"Shop"
,
Home
Search
Explore
Menu