Skip to content

Do not disconnect from coder_app after command #7931

Closed as not planned
Closed as not planned
@jaulz

Description

@jaulz

It would be great if the coder apps do not disconnect automatically after they return. To ensure compatibility it would of course be fine to have a parameter (e.g. tty=true?) to control it. My use case is that I want to list the log files in the database via:

resource "coder_app" "postgres" {
  agent_id = coder_agent.postgres.id
  display_name     = "Logs"
  command  = "ls /var/lib/postgresql/data/log/"
  icon     = "https://iconarchive.com/download/i83612/pelfusion/flat-file-type/log.ico"
  slug     = "postgres-logs"
}

Unfortunately, once opened it immediately says "Disconnected" and I cannot even view the result but actually I would like to use it as a starting point to run further commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThis issue is like stale bread.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions