ci: build linux release artifacts with slimmer flags

This commit is contained in:
野生派Coder~
2026-03-02 23:46:03 +08:00
parent 062be860d9
commit 8e94e7e1f6
7 changed files with 132 additions and 11 deletions

View File

@@ -79,10 +79,12 @@ func (m *ProcessManager) Start(parent context.Context, command, cwd string) (str
}
stdout, err := cmd.StdoutPipe()
if err != nil {
cancel()
return "", err
}
stderr, err := cmd.StderrPipe()
if err != nil {
cancel()
return "", err
}
s := &processSession{ID: id, Command: command, StartedAt: time.Now().UTC(), cmd: cmd, cancel: cancel, done: make(chan struct{}), logQueue: make(chan []byte, 128)}

View File

@@ -163,7 +163,6 @@ func (t *SessionsTool) Execute(ctx context.Context, args map[string]interface{})
return "sessions history unavailable", nil
}
key, _ := args["key"].(string)
key = key
if key == "" {
return "key is required for history", nil
}