Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/blockcontroller/blockcontroller.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2025, Command Line Inc.
// Copyright 2026, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0

package blockcontroller
Expand Down Expand Up @@ -463,6 +463,10 @@ func makeSwapToken(ctx context.Context, logCtx context.Context, blockId string,
Exp: time.Now().Add(5 * time.Minute),
}
token.Env["TERM_PROGRAM"] = "waveterm"
if !conncontroller.IsLocalConnName(remoteName) {
// Remote shells do not receive the defaults from WaveshellLocalEnvVars.
token.Env["COLORTERM"] = "truecolor"
}
token.Env["WAVETERM_BLOCKID"] = blockId
token.Env["WAVETERM_VERSION"] = wavebase.WaveVersion
token.Env["WAVETERM"] = "1"
Expand Down