Skip to content

Commit a7c52d6

Browse files
committed
Fix session title
We only need a session title for non-tui parts Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 0f23870 commit a7c52d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/root/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ func runCommand(_ *cobra.Command, args []string, exec bool) error {
192192
}
193193

194194
sess := session.New()
195-
sess.Title = "Running agent"
196195

197196
// For `cagent exec`
198197
if exec {
@@ -244,6 +243,7 @@ func runCommand(_ *cobra.Command, args []string, exec bool) error {
244243
}
245244

246245
func runWithoutTUI(ctx context.Context, agentFilename string, rt *runtime.Runtime, sess *session.Session, args []string) error {
246+
sess.Title = "Running agent"
247247
// If the last received event was an error, return it. That way the exit code
248248
// will be non-zero if the agent failed.
249249
var lastErr error

0 commit comments

Comments
 (0)