reset the ExecPath for a new session

This commit is contained in:
Alfred Kamanda 2025-02-03 12:14:05 +03:00
parent cad18c9e64
commit 63bef2f58c
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -129,6 +129,7 @@ func (h *MenuHandlers) Init(ctx context.Context, sym string, input []byte) (reso
if len(input) == 0 { if len(input) == 0 {
// move to the top node // move to the top node
h.st.Code = []byte{} h.st.Code = []byte{}
h.st.ExecPath = []string{}
} }
sessionId, ok := ctx.Value("SessionId").(string) sessionId, ok := ctx.Value("SessionId").(string)