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(client): recover cached threads when an environment is offline
#22768
Send to my agent
Closed
juliusmarminge
wants to merge 1 commit into
main
from
fix/issue-4852
·
opened
last month
View on GitHub
Conversation
3
Commits
1
Files changed
3
Impact
Showing
3 changed files
with
81 additions
and
1 deletion
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
17 additions and 0 deletions
+17
-0
apps/mobile/src/features/threads/threadListV2.test.ts
Modified
Diff
Before/After
Viewed
apps/mobile/src/features/threads/threadListV2.test.ts
View file
Expand up
Show all 98 lines
@@ -99,6 +99,23 @@
99
99
);
100
100
});
101
101
102
+
it
(
"shows cached work from an unavailable environment as Offline, not Working"
, () => {
103
+
const
running =
presentThreadShell
(
104
+
environmentId,
105
+
decodeThreadShell
(
106
+
makeRawThreadShell
({
107
+
status
:
"running"
,
108
+
activeRunId
:
RunId
.
make
(
"run-offline"
),
109
+
latestRunId
:
RunId
.
make
(
"run-offline"
),
110
+
}),
111
+
),
112
+
);
113
+
expect
(
resolveThreadListV2Status
({ ...running,
environmentUnavailable
:
true
})).
toBe
(
"offline"
);
114
+
expect
(
resolveThreadListV2Status
({ ...running,
environmentUnavailable
:
false
})).
toBe
(
115
+
"working"
,
116
+
);
117
+
});
118
+
102
119
it.
each
([
103
120
{
kind
:
"command"
,
status
:
"ready"
},
104
121
{
kind
:
"monitor"
,
status
:
"waiting"
},
Expand down
Show all lines
9 additions and 0 deletions
+9
-0
apps/web/src/components/Sidebar.logic.test.ts
Modified
Diff
Before/After
Viewed
apps/web/src/components/Sidebar.logic.test.ts
View file
Expand up
Show all 270 lines
@@ -271,6 +271,15 @@
271
271
).
toBe
(
"approval"
);
Home
Search
Explore
Menu