Skip to content

Commit ebac70e

Browse files
docs: add file sync warning to coder_agent dir attribute
1 parent 7da76fa commit ebac70e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/resources/agent.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ resource "kubernetes_pod" "dev" {
7676
- `auth` (String) The authentication type the agent will use. Must be one of: `"token"`, `"google-instance-identity"`, `"aws-instance-identity"`, `"azure-instance-identity"`.
7777
- `connection_timeout` (Number) Time in seconds until the agent is marked as timed out when a connection with the server cannot be established. A value of zero never marks the agent as timed out.
7878
- `dir` (String) The starting directory when a user creates a shell session. Defaults to `"$HOME"`.
79+
80+
~> **Warning:** Setting `dir` to a value other than `$HOME` will break [Coder Desktop file sync](https://coder.com/docs/user-guides/desktop/desktop-connect-sync).
7981
- `display_apps` (Block Set, Max: 1) The list of built-in apps to display in the agent bar. (see [below for nested schema](#nestedblock--display_apps))
8082
- `env` (Map of String) A mapping of environment variables to set inside the workspace.
8183
- `metadata` (Block List) Each `metadata` block defines a single item consisting of a key/value pair. This feature is in alpha and may break in future releases. (see [below for nested schema](#nestedblock--metadata))

provider/agent.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ func agentResource() *schema.Resource {
115115
Type: schema.TypeString,
116116
ForceNew: true,
117117
Optional: true,
118-
Description: "The starting directory when a user creates a shell session. Defaults to `\"$HOME\"`.",
118+
Description: "The starting directory when a user creates a shell session. Defaults to `\"$HOME\"`." +
119+
"\n\n~> **Warning:** Setting `dir` to a value other than `$HOME` will break " +
120+
"[Coder Desktop file sync](https://coder.com/docs/user-guides/desktop/desktop-connect-sync).",
119121
},
120122
"env": {
121123
ForceNew: true,

0 commit comments

Comments
 (0)