Compare commits

...

4 Commits

Author SHA1 Message Date
sawka d3eac06d7a remove chatty logging 2024-05-02 15:45:27 -07:00
sawka 5ad6a803b0 bump to v0.7.5 2024-05-02 15:39:54 -07:00
sawka bd366e99f3 add onClose back in to infomsg view 2024-05-02 15:31:56 -07:00
sawka 4cb89e02df use cmdinput keybindings even when auxview info is open 2024-05-02 15:26:17 -07:00
5 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
},
"productName": "Wave",
"description": "An Open-Source, AI-Native, Terminal Built for Seamless Workflows",
"version": "0.7.4",
"version": "0.7.5",
"main": "dist/emain.js",
"license": "Apache-2.0",
"repository": {
+5 -1
View File
@@ -64,7 +64,11 @@ class InfoMsg extends React.Component<{}, {}> {
}
return (
<AuxiliaryCmdView title={titleStr} className="cmd-input-info">
<AuxiliaryCmdView
title={titleStr}
className="cmd-input-info"
onClose={() => GlobalModel.inputModel.closeAuxView()}
>
<If condition={infoMsg?.infomsg}>
<div key="infomsg" className="info-msg">
<If condition={infoMsg.infomsghtml}>
+3 -2
View File
@@ -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 (
<div
-1
View File
@@ -733,7 +733,6 @@ func HandleRunEphemeralCommand(w http.ResponseWriter, r *http.Request) {
WriteJsonError(w, fmt.Errorf(ErrorDecodingJson, err))
return
}
log.Printf("Running ephemeral command: %v\n", commandPk)
if commandPk.EphemeralOpts == nil {
commandPk.EphemeralOpts = &ephemeral.EphemeralRunOpts{}
-8
View File
@@ -1930,10 +1930,6 @@ func RunCommand(ctx context.Context, rcOpts RunCommandOpts, runPacket *packet.Ru
return nil, nil, fmt.Errorf("runPacket.StatePtr should not be set, it is set in RunCommand")
}
if rcOpts.EphemeralOpts != nil {
log.Printf("[info] running ephemeral command ck: %s\n", runPacket.CK)
}
// pending state command logic
// if we are currently running a command that can change the state, we need to wait for it to finish
if rcOpts.StatePtr == nil {
@@ -2186,9 +2182,6 @@ func (msh *MShellProc) HandleFeInput(inputPk *scpacket.FeInputPacketType) error
func (msh *MShellProc) AddRunningCmd(rct *RunCmdType) {
msh.Lock.Lock()
defer msh.Lock.Unlock()
if rct.EphemeralOpts != nil {
log.Printf("[info] adding ephemeral running command: %s\n", rct.CK)
}
msh.RunningCmds[rct.RunPacket.CK] = rct
}
@@ -2596,7 +2589,6 @@ func (msh *MShellProc) handleDataPacket(rct *RunCmdType, dataPk *packet.DataPack
return
}
if rct.EphemeralOpts != nil {
log.Printf("ephemeral data packet: %s\n", dataPk.CK)
// Write to the response writer if it's set
if len(realData) > 0 && rct.EphemeralOpts.ExpectsResponse {
switch dataPk.FdNum {