Repository navigation
fix(client-runtime): recover threads when resume never completes #20932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 24 commits
594b99a
799cd5f
29c887d
2aff5f5
e8f7052
ce3d477
482db19
92bbecc
784035a
9195703
a31ea73
a5ac23e
734cabe
7202450
21fb340
7903ba0
b0569db
d9beec5
6b6b7ac
f2b8bf7
b4b22e1
df995a5
8a7ff1f
5e9c81e
7d479bc
56695ae
5a2936e
9ab6387
d90093a
e1e3e55
a0472fa
75c659b
c3a68c8
06f1c13
50212de
35d6384
762b1d0
17ebd11
bf0cd5a
13e5421
168d6f7
d27babe
2531215
865343c
114c68b
410b36c
a736958
6100cb7
44b7172
a5a0d9b
bc89863
66eb68b
a1a8aa8
25b91e3
99bab75
45fb0ba
31ca2b2
a32725a
643cd8d
accef7c
f769a7f
b4c7fa6
32f8170
e0d6002
c3b1658
528eeda
f4332a8
d5adef3
6b892de
80a3a71
cb6f125
4b91910
60c9c90
a250fae
8bc7306
abeeb43
87436dc
1b13ff1
e2dc066
9516663
bb4db3c
7b2f795
9b10d3c
1e68aca
4b9d435
bef6871
1bdb99f
cbc8547
1f3e0d3
6ad2954
a23c7bd
fe36eda
17f9c49
8e9921c
4672d37
783b9ee
ccbb9cd
d0a6a2f
dd4aa72
9924bac
38fa4fa
875b312
f4260c9
25ce7a3
8d6d3b7
0fcefa2
9185a89
fc17865
2f190e4
43ad15e
6946788
bda626d
a1b2108
4920b70
42dd483
ee17bc9
2d97140
be289b0
7964490
8be1795
3d0d528
8eb07ec
3fab274
f960c45
516ddaa
dddeac8
855bf76
b5600ac
cb961a1
0aadbfb
a42fc51
b51ef43
d422723
c71a933
f1790ab
538f946
315aac3
923c862
e121178
e1330a3
be6401d
dde9876
73fdff0
14c72e1
2a32167
4c91305
bf21dc0
b70465c
4410847
18c2ac9
1e1db74
a5add30
c1a3933
956315a
5fa02c7
e190487
95aa224
4d918b8
270d24c
b780cf5
c7f7fb9
a5e97cd
b0ebc48
6f55931
d818e4d
72376b6
0d2b3c2
c35aacd
6c014a7
e3ba42e
5f4179b
4416e70
8da4a75
dd70100
115dfb4
f7ca5ca
57a1634
c0b3768
ef5974b
a62dd8b
21097de
212feaa
5e821ea
e5f9810
6ee7e6a
90e6722
791b1e8
14fd1ba
6fa457f
052a8c8
459b514
469d514
c6cc5e5
cd77698
6f42ba8
0982f6a
8c4b91f
92b407d
323f6c0
56941fd
feabecf
9382e15
a2c438a
3eb0901
3e5d576
0bcd9d5
ebe517b
14899b6
0358209
4d4187b
a916e17
7496c58
06f12c6
2fb702c
e15bdba
6d566d6
6c4cbc2
e2fbaf4
86fe593
21c0843
6be0ce0
66eed57
d1cdeb3
3283165
cd94aeb
496983f
991a42a
fb98fa3
80a1348
f2ece68
3f64a09
aba0f30
0c5c487
6f011cd
46e146e
479af3e
90fb416
4a07012
23617fc
10e66e2
25fdbc3
e598ef5
78d7b16
f527f45
02df887
0b13485
0163e9b
b7c736f
d22e2af
fc0bd5b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -382,6 +382,7 @@ import { | |
| useEnvironmentSupportsServerBrowser, | ||
| useProject, | ||
| useProjects, | ||
| useThreadError, | ||
| useThreadProjection, | ||
| useThreadStatus, | ||
| useThreadHistory, | ||
|
|
@@ -1146,8 +1147,10 @@ export default function ChatView(props: ChatViewProps) { | |
| ? deriveReportedModelSelection(serverProjection) | ||
| : null; | ||
| const threadStatus = useThreadStatus(routeThreadDetailRef); | ||
| const threadDetailError = useThreadError(routeThreadDetailRef); | ||
| const threadSyncPhase = resolveThreadSyncPhase({ | ||
| detailExists: serverProjection !== null, | ||
| detailError: threadDetailError, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| shellExists: serverThread !== null, | ||
| status: threadStatus, | ||
| }); | ||
|
|
@@ -1530,7 +1533,7 @@ export default function ChatView(props: ChatViewProps) { | |
| title: parentSubagentThread?.title ?? "Parent thread", | ||
| }; | ||
| const threadError = isServerThread | ||
| ? (localServerError ?? serverRuntime?.lastError ?? null) | ||
| ? (localServerError ?? threadDetailError ?? serverRuntime?.lastError ?? null) | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| : localDraftError; | ||
| const threadErrorBannerKey = getThreadErrorBannerKey(routeThreadKey, threadError); | ||
| const visibleThreadError = shouldShowThreadErrorBanner( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.