fix(cli): use app slug instead of raw command in terminal URLs (#24827)

This commit is contained in:
Kayla はな
2026-05-05 19:43:08 -06:00
committed by GitHub
parent a7377f7613
commit f6233e622b
2 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -114,9 +114,10 @@ func Test_buildAppLinkURL(t *testing.T) {
Name: "a-workspace-agent",
},
app: codersdk.WorkspaceApp{
Slug: "my-terminal",
Command: "ls -la",
},
expectedLink: "https://coder.tld/@username/Test-Workspace.a-workspace-agent/terminal?command=ls%20-la",
expectedLink: "https://coder.tld/@username/Test-Workspace.a-workspace-agent/terminal?app=my-terminal",
},
{
name: "with subdomain",