fix: wait for native workspace projection before opening a conversation
Core regression / Python core, intervention UI and release configuration (push) Successful in 4m20s
Core regression / JavaScript syntax (push) Successful in 10s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 3m42s
Core regression / JavaScript syntax (pull_request) Successful in 7s
Core regression / Python core, intervention UI and release configuration (push) Successful in 4m20s
Core regression / JavaScript syntax (push) Successful in 10s
Core regression / Python core, intervention UI and release configuration (pull_request) Successful in 3m42s
Core regression / JavaScript syntax (pull_request) Successful in 7s
This commit is contained in:
1 parent
d0c07f4f74
commit
6cd6520bae
3 files changed
+13
-3
No files matched your search
@@ -295,7 +295,7 @@ window.__ModuleLoader__.load({id:'@dx/dsh-task',factory:require=>{
|
||||
tab==='tickets'?h(TicketsPanel,{operations,perform,pending:pending||operations.busy}):h(UsagePanel,{runtime,control,pending})),
|
||||
tab!=='overview'&&h('p',{'data-testid':'dx-operations-notice',role:'status',style:{fontSize:12,color:secondary,lineHeight:1.8,whiteSpace:'pre-wrap'}},operations.activity?.message||notice||''));
|
||||
}
|
||||
return{inject:['slots','sidebarRightTabs','sidebarRight','uiSession','uiWorkspace'],apply(ctx){
|
||||
return{inject:['slots','sidebarRightTabs','sidebarRight','uiSession','uiWorkspace','workspaces'],apply(ctx){
|
||||
ctx.effect(()=>{
|
||||
let live=true,opened='';
|
||||
const check=()=>fetch('/dx/context').then(r=>r.json()).then(data=>{
|
||||
@@ -318,10 +318,11 @@ window.__ModuleLoader__.load({id:'@dx/dsh-task',factory:require=>{
|
||||
if(sessionId){
|
||||
if(openedSession===sessionId)return;
|
||||
try{ctx.sidebarRight.openTab('dx-task');if(ctx.sidebarRight.isExpanded()){openedSession=sessionId;return;}}catch{}
|
||||
}else if(!connecting&&!adopted){
|
||||
}else if(!connecting&&!adopted&&ctx.workspaces.list.getSnapshot().phase==='ready'){
|
||||
connecting=true;
|
||||
fetch('/dx/workspace').then(r=>{if(!r.ok&&r.ok!==undefined)throw Error();return r.json();}).then(value=>{
|
||||
if(live&&!current.getSnapshot()&&typeof value.workspace_id==='string'){
|
||||
if(live&&!current.getSnapshot()&&typeof value.workspace_id==='string'&&
|
||||
ctx.workspaces.list.getSnapshot().items.some(row=>row.workspaceId===value.workspace_id)){
|
||||
adopted=true;return ctx.uiWorkspace.openWorkspace(value.workspace_id);
|
||||
}
|
||||
}).catch(()=>{adopted=false;}).finally(()=>{connecting=false;if(live)queue();});
|
||||
|
||||
Reference in new issue
Block a user