File tree Expand file tree Collapse file tree
Docker-Images/DeveloperAndroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ RUN mkdir -p /opt/android-sdk/cmdline-tools && \
170170 install -d -o coder -g coder /home/coder/.android
171171
172172# Android Studio
173- ARG ANDROID_STUDIO_VERSION=2025.2.3.9
173+ ARG ANDROID_STUDIO_VERSION=2025.3.2
174174RUN curl -fsSL "https://redirector.gvt1.com/edgedl/android/studio/ide-zips/${ANDROID_STUDIO_VERSION}/android-studio-${ANDROID_STUDIO_VERSION}-linux.tar.gz" -o /tmp/android-studio.tar.gz && \
175175 tar -xzf /tmp/android-studio.tar.gz -C /opt && \
176176 rm /tmp/android-studio.tar.gz && \
Original file line number Diff line number Diff line change 339339 touch "$HOME/.codex/config.toml"
340340 # Migrar config antigua de chrome-devtools (formato bash -lc) si existe
341341 python3 - <<'PY'
342- import re, os
342+ import os
343343path = os.path.expanduser("~/.codex/config.toml")
344344try:
345- with open(path) as f:
345+ with open(path, encoding="utf-8" ) as f:
346346 content = f.read()
347347except FileNotFoundError:
348348 content = ""
349349if "[mcp_servers.chrome-devtools]" in content and '"bash"' in content:
350- content = re.sub(r'\n*\[mcp_servers\.chrome-devtools\][^\[]*', '', content, flags=re.DOTALL)
351- with open(path, 'w') as f:
352- f.write(content.rstrip('\n') + '\n')
350+ lines = content.splitlines()
351+ cleaned = []
352+ i = 0
353+ removed = False
354+ while i < len(lines):
355+ if lines[i].strip() == "[mcp_servers.chrome-devtools]":
356+ j = i + 1
357+ block = [lines[i]]
358+ while j < len(lines) and not lines[j].lstrip().startswith("["):
359+ block.append(lines[j])
360+ j += 1
361+ if '"bash"' in "\n".join(block):
362+ removed = True
363+ i = j
364+ continue
365+ cleaned.append(lines[i])
366+ i += 1
367+ if removed:
368+ content = "\n".join(cleaned).rstrip("\n")
369+ with open(path, "w", encoding="utf-8") as f:
370+ f.write((content + "\n") if content else "")
353371PY
354372 if ! grep -q '^\[mcp_servers\.chrome-devtools\]' "$HOME/.codex/config.toml" 2>/dev/null; then
355373 cat >> "$HOME/.codex/config.toml" <<'CODEXCFG'
Original file line number Diff line number Diff line change 382382 touch "$HOME/.codex/config.toml"
383383 # Migrar config antigua de chrome-devtools (formato bash -lc) si existe
384384 python3 - <<'PY'
385- import re, os
385+ import os
386386path = os.path.expanduser("~/.codex/config.toml")
387387try:
388- with open(path) as f:
388+ with open(path, encoding="utf-8" ) as f:
389389 content = f.read()
390390except FileNotFoundError:
391391 content = ""
392392if "[mcp_servers.chrome-devtools]" in content and '"bash"' in content:
393- content = re.sub(r'\n*\[mcp_servers\.chrome-devtools\][^\[]*', '', content, flags=re.DOTALL)
394- with open(path, 'w') as f:
395- f.write(content.rstrip('\n') + '\n')
393+ lines = content.splitlines()
394+ cleaned = []
395+ i = 0
396+ removed = False
397+ while i < len(lines):
398+ if lines[i].strip() == "[mcp_servers.chrome-devtools]":
399+ j = i + 1
400+ block = [lines[i]]
401+ while j < len(lines) and not lines[j].lstrip().startswith("["):
402+ block.append(lines[j])
403+ j += 1
404+ if '"bash"' in "\n".join(block):
405+ removed = True
406+ i = j
407+ continue
408+ cleaned.append(lines[i])
409+ i += 1
410+ if removed:
411+ content = "\n".join(cleaned).rstrip("\n")
412+ with open(path, "w", encoding="utf-8") as f:
413+ f.write((content + "\n") if content else "")
396414PY
397415 if ! grep -q '^\[mcp_servers\.chrome-devtools\]' "$HOME/.codex/config.toml" 2>/dev/null; then
398416 cat >> "$HOME/.codex/config.toml" <<'CODEXCFG'
Original file line number Diff line number Diff line change 360360 touch "$HOME/.codex/config.toml"
361361 # Migrar config antigua de chrome-devtools (formato bash -lc) si existe
362362 python3 - <<'PY'
363- import re, os
363+ import os
364364path = os.path.expanduser("~/.codex/config.toml")
365365try:
366- with open(path) as f:
366+ with open(path, encoding="utf-8" ) as f:
367367 content = f.read()
368368except FileNotFoundError:
369369 content = ""
370370if "[mcp_servers.chrome-devtools]" in content and '"bash"' in content:
371- content = re.sub(r'\n*\[mcp_servers\.chrome-devtools\][^\[]*', '', content, flags=re.DOTALL)
372- with open(path, 'w') as f:
373- f.write(content.rstrip('\n') + '\n')
371+ lines = content.splitlines()
372+ cleaned = []
373+ i = 0
374+ removed = False
375+ while i < len(lines):
376+ if lines[i].strip() == "[mcp_servers.chrome-devtools]":
377+ j = i + 1
378+ block = [lines[i]]
379+ while j < len(lines) and not lines[j].lstrip().startswith("["):
380+ block.append(lines[j])
381+ j += 1
382+ if '"bash"' in "\n".join(block):
383+ removed = True
384+ i = j
385+ continue
386+ cleaned.append(lines[i])
387+ i += 1
388+ if removed:
389+ content = "\n".join(cleaned).rstrip("\n")
390+ with open(path, "w", encoding="utf-8") as f:
391+ f.write((content + "\n") if content else "")
374392PY
375393 if ! grep -q '^\[mcp_servers\.chrome-devtools\]' "$HOME/.codex/config.toml" 2>/dev/null; then
376394 cat >> "$HOME/.codex/config.toml" <<'CODEXCFG'
Original file line number Diff line number Diff line change 283283 touch "$HOME/.codex/config.toml"
284284 # Migrar config antigua de chrome-devtools (formato bash -lc) si existe
285285 python3 - <<'PY'
286- import re, os
286+ import os
287287path = os.path.expanduser("~/.codex/config.toml")
288288try:
289- with open(path) as f:
289+ with open(path, encoding="utf-8" ) as f:
290290 content = f.read()
291291except FileNotFoundError:
292292 content = ""
293293if "[mcp_servers.chrome-devtools]" in content and '"bash"' in content:
294- content = re.sub(r'\n*\[mcp_servers\.chrome-devtools\][^\[]*', '', content, flags=re.DOTALL)
295- with open(path, 'w') as f:
296- f.write(content.rstrip('\n') + '\n')
294+ lines = content.splitlines()
295+ cleaned = []
296+ i = 0
297+ removed = False
298+ while i < len(lines):
299+ if lines[i].strip() == "[mcp_servers.chrome-devtools]":
300+ j = i + 1
301+ block = [lines[i]]
302+ while j < len(lines) and not lines[j].lstrip().startswith("["):
303+ block.append(lines[j])
304+ j += 1
305+ if '"bash"' in "\n".join(block):
306+ removed = True
307+ i = j
308+ continue
309+ cleaned.append(lines[i])
310+ i += 1
311+ if removed:
312+ content = "\n".join(cleaned).rstrip("\n")
313+ with open(path, "w", encoding="utf-8") as f:
314+ f.write((content + "\n") if content else "")
297315PY
298316 if ! grep -q '^\[mcp_servers\.chrome-devtools\]' "$HOME/.codex/config.toml" 2>/dev/null; then
299317 cat >> "$HOME/.codex/config.toml" <<'CODEXCFG'
Original file line number Diff line number Diff line change @@ -318,3 +318,10 @@ module "cursor" {
318318 version = " 1.3.0"
319319 agent_id = coder_agent. dev . id
320320}
321+
322+ module "filebrowser" {
323+ count = data. coder_workspace . me . start_count
324+ source = " registry.coder.com/coder/filebrowser/coder"
325+ version = " 1.0.8"
326+ agent_id = coder_agent. dev . id
327+ }
You can’t perform that action at this time.
0 commit comments