File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,10 @@ export const TerminalLink: FC<React.PropsWithChildren<TerminalLinkProps>> = ({
28
28
userName = "me" ,
29
29
workspaceName,
30
30
} ) => {
31
- const { proxy } = useProxy ( )
32
31
33
- const href = ` ${ proxy . preferredPathAppURL } /@ ${ userName } / ${ workspaceName } ${
34
- agentName ? `.${ agentName } ` : ""
35
- } /terminal`
32
+ // Always use the primary for the terminal link. This is a relative link.
33
+ const href = `/@ ${ userName } / ${ workspaceName } ${ agentName ? `.${ agentName } ` : ""
34
+ } /terminal`
36
35
37
36
return (
38
37
< Link
Original file line number Diff line number Diff line change @@ -198,8 +198,8 @@ export const loadPreferredProxy = (): PreferredProxy | undefined => {
198
198
if ( str === undefined || str === null ) {
199
199
return undefined
200
200
}
201
- const proxy = JSON . parse ( str )
202
- if ( proxy . id === undefined || proxy . id === null ) {
201
+ const proxy : PreferredProxy = JSON . parse ( str )
202
+ if ( proxy . selectedRegion === undefined || proxy . selectedRegion === null ) {
203
203
return undefined
204
204
}
205
205
return proxy
You can’t perform that action at this time.
0 commit comments