From 9a825761da8f4b3d5ca3dd0319075de477dffc20 Mon Sep 17 00:00:00 2001 From: Mike Sawka Date: Thu, 2 May 2024 16:17:38 -0700 Subject: [PATCH] merge v0.7.4 and v0.7.5 changes back into main (#644) --- package.json | 2 +- src/app/common/prompt/prompt.tsx | 20 ++++++++++---------- src/app/workspace/cmdinput/infomsg.tsx | 6 +++++- src/app/workspace/cmdinput/textareainput.tsx | 5 +++-- waveshell/pkg/shellapi/zshapi.go | 2 -- wavesrv/cmd/main-server.go | 1 - wavesrv/pkg/remote/remote.go | 8 -------- 7 files changed, 19 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 8b07d5515..5c3f70928 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "productName": "Wave", "description": "An Open-Source, AI-Native, Terminal Built for Seamless Workflows", - "version": "0.7.3", + "version": "0.7.5", "main": "dist/emain.js", "license": "Apache-2.0", "repository": { diff --git a/src/app/common/prompt/prompt.tsx b/src/app/common/prompt/prompt.tsx index b09d56ad2..18b081e27 100644 --- a/src/app/common/prompt/prompt.tsx +++ b/src/app/common/prompt/prompt.tsx @@ -172,16 +172,16 @@ class Prompt extends React.Component< ); } - if (!isBlank(festate["K8SCONTEXT"])) { - const k8sContext = festate["K8SCONTEXT"]; - const k8sNs = festate["K8SNAMESPACE"]; - k8sElem = ( - - k8s:({k8sContext} - {isBlank(k8sNs) ? "" : ":" + k8sNs}){" "} - - ); - } + // if (!isBlank(festate["K8SCONTEXT"])) { + // const k8sContext = festate["K8SCONTEXT"]; + // const k8sNs = festate["K8SNAMESPACE"]; + // k8sElem = ( + // + // k8s:({k8sContext} + // {isBlank(k8sNs) ? "" : ":" + k8sNs}){" "} + // + // ); + // } return ( {remoteElem} {cwdElem} {branchElem} {condaElem} {pythonElem} {k8sElem} diff --git a/src/app/workspace/cmdinput/infomsg.tsx b/src/app/workspace/cmdinput/infomsg.tsx index 292dde5ae..3cca1851a 100644 --- a/src/app/workspace/cmdinput/infomsg.tsx +++ b/src/app/workspace/cmdinput/infomsg.tsx @@ -64,7 +64,11 @@ class InfoMsg extends React.Component<{}, {}> { } return ( - + GlobalModel.inputModel.closeAuxView()} + >
diff --git a/src/app/workspace/cmdinput/textareainput.tsx b/src/app/workspace/cmdinput/textareainput.tsx index 170b83bed..c202eaafb 100644 --- a/src/app/workspace/cmdinput/textareainput.tsx +++ b/src/app/workspace/cmdinput/textareainput.tsx @@ -617,8 +617,9 @@ class TextAreaInput extends React.Component<{ screen: Screen; onHeightChange: () } } } - - const renderCmdInputKeybindings = inputModel.shouldRenderAuxViewKeybindings(null); + const renderCmdInputKeybindings = + inputModel.shouldRenderAuxViewKeybindings(null) || + inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_Info); const renderHistoryKeybindings = inputModel.shouldRenderAuxViewKeybindings(appconst.InputAuxView_History); return (
0 && rct.EphemeralOpts.ExpectsResponse { switch dataPk.FdNum {