Skip to content

Add terminal and chat workspace actions - #304

Closed
MBoegers wants to merge 1 commit into
coder:mainfrom
MBoegers:quick-actions-terminal-chat
Closed

MBoegers wants to merge 1 commit into
coder:mainfrom
MBoegers:quick-actions-terminal-chat

Conversation

@MBoegers

Copy link
Copy Markdown

Summary

  • Add a Coder CLI terminal action and a browser action for workspace chat command apps.
  • Wrap workspace shortcuts onto additional rows so existing actions remain accessible.
  • Request Terminal automation permission and add focused tests.

Validation

  • SwiftLint and SwiftFormat passed for the changed Swift files.
  • Swift syntax, plist, AppleScript compilation, and CLI argument quoting checks passed.
  • Focused Xcode tests could not run: Swift 6.2.4 and 6.2.3 both crashed compiling the existing VPN PacketTunnelProvider. A signed app was not run because no Apple Developer signing identity is configured.

The terminal action requires the Coder CLI and macOS Terminal automation permission.

@MBoegers
MBoegers requested a review from a team November 23, 2026 10:21
@MBoegers

Copy link
Copy Markdown
Author

Would love to see something similar merged. I work a lot with detached sessions and chats. To which I connect with the browser. But I would love to have this in the Coder Desktop as a quick action.
Haven't had a chance to test locally, yet.

@ethanndickson ethanndickson left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open a feature request issue that describes the behaviour you'd expect/like Coder Desktop to have.

deploymentURL: baseAccessURL, workspaceAgentName: "work'space.main;echo unsafe"
)

#expect(command == "coder --url 'https://coder.example.com' ssh 'work'\\''space.main;echo unsafe'")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we shell out to coder ssh and not just ssh?

workspaceAgentName: String
) -> [WorkspaceApp] {
let workspaceApps = agent.apps.compactMap { app in
if app.slug == "chat", !app.external, let command = app.command, !command.isEmpty {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we special-casing app slugs called chat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants