Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
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
36 changes: 36 additions & 0 deletions dogfood/coder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,22 @@ resource "coder_script" "install-deps" {
# (site tests + the claude-code/codex MCP servers below).
cd "${local.repo_dir}/site" && pnpm exec playwright install chromium
npx --yes --package=@playwright/[email protected] playwright-core install --no-shell chromium

# Keep this version pinned because the dashboard is embeddable only while
# it omits X-Frame-Options and CSP headers. This is not a documented
# contract, so verify those headers before updating.
npm install -g [email protected]
agent-browser install

# Keep the agent skill aligned with the installed CLI version.
skill_src="$(npm root -g)/agent-browser/skills/agent-browser"
for skill_dir in "$HOME/.claude/skills" "$HOME/.agents/skills"; do
mkdir -p "$skill_dir"
rm -rf "$skill_dir/agent-browser"
cp -r "$skill_src" "$skill_dir/agent-browser"
done

agent-browser dashboard start
EOT
}

Expand Down Expand Up @@ -1012,3 +1028,23 @@ resource "coder_app" "codex" {
exec tmux new-session -A -s codex codex
EOT
}

# Live view of agent browser sessions, served by the dashboard that
# install-deps starts. The dashboard has no authentication, so restrict
# it to the workspace owner. "preview" is reserved for apps that need
# the iframe navigation toolbar.
resource "coder_app" "agent_browser" {
agent_id = coder_agent.dev.id
slug = "agent-browser"
display_name = "Agent Browser"
icon = "${data.coder_workspace.me.access_url}/emojis/1f310.png" // 🌐
url = "http://localhost:4848"
share = "owner"
subdomain = true
open_in = "tab"
healthcheck {
url = "http://localhost:4848/"
interval = 5
threshold = 6
}
}
Loading