@runuai/host 0.9.144 → 0.9.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/agents/codex.ts +1 -0
- package/package.json +1 -1
- package/scripts/agent/task-up.sh +12 -9
package/lib/agents/codex.ts
CHANGED
|
@@ -55,6 +55,7 @@ import type {
|
|
|
55
55
|
// Sourced from that picker; UPDATE WHEN MODELS CHANGE. Order = display order
|
|
56
56
|
// in the cloud picker. Legacy models remain reachable via config.toml.
|
|
57
57
|
const CODEX_MODELS = [
|
|
58
|
+
"gpt-6-astra",
|
|
58
59
|
"gpt-5.6-sol",
|
|
59
60
|
"gpt-5.6-terra",
|
|
60
61
|
"gpt-5.6-luna",
|
package/package.json
CHANGED
package/scripts/agent/task-up.sh
CHANGED
|
@@ -91,11 +91,9 @@ project_env_json=$(printf '%s' "$project_env_json" | jq -c '.')
|
|
|
91
91
|
|
|
92
92
|
task_dir="$UAI_WORKSPACE_ROOT/tasks/$task_id"
|
|
93
93
|
task_workspace="$task_dir/workspace"
|
|
94
|
+
# The HOST control tree. Deliberately not bind-mounted: the container sees only
|
|
95
|
+
# $task_workspace. Anything an agent must reach belongs under $task_workspace/.uai.
|
|
94
96
|
task_uai_dir="$task_dir/.uai"
|
|
95
|
-
# Agents are told to save browser screenshots and other artifacts under
|
|
96
|
-
# /workspace/.uai/attachments/, but nothing created the directory — every
|
|
97
|
-
# first browser_take_screenshot hit ENOENT (found by an agent in the first
|
|
98
|
-
# apple-container task, 2026-08-24). Created with the .uai dir below.
|
|
99
97
|
projects_root="$UAI_WORKSPACE_ROOT/projects"
|
|
100
98
|
compose_project=$(compose_project_for_task "$task_id")
|
|
101
99
|
app_container=$(app_container_for_task "$task_id")
|
|
@@ -880,14 +878,19 @@ shared_owner_user=$(jq -r '.[0].owner_user_id // ""' <<<"$task_json")
|
|
|
880
878
|
shared_owner_org=$(printf '%s' "$shared_owner_org" | tr ':' '_')
|
|
881
879
|
shared_owner_user=$(printf '%s' "$shared_owner_user" | tr ':' '_')
|
|
882
880
|
shared_root="$UAI_WORKSPACE_ROOT/shared"
|
|
881
|
+
# The workspace's own .uai is the only one the container can read (/workspace/.uai):
|
|
882
|
+
# the CLI, the chat log and the attachments agents are told to write screenshots
|
|
883
|
+
# into all live here. Create it unconditionally — it used to be made only when
|
|
884
|
+
# shared files were on, and `attachments` was made in the unmounted control tree,
|
|
885
|
+
# so every first browser_take_screenshot hit ENOENT (first seen 2026-08-24).
|
|
886
|
+
reject_unsafe_host_directory "$task_workspace/.uai" \
|
|
887
|
+
"the task workspace marker directory"
|
|
888
|
+
mkdir -p "$task_workspace/.uai/attachments"
|
|
883
889
|
if [ "$shared_files_mode" != "off" ]; then
|
|
884
890
|
[ -n "$shared_owner_org" ] && mkdir -p "$shared_root/orgs/$shared_owner_org"
|
|
885
891
|
[ -n "$shared_owner_user" ] && mkdir -p "$shared_root/users/$shared_owner_user"
|
|
886
892
|
# Marker for the preamble: only containers that actually carry the mounts
|
|
887
893
|
# get the "## Shared files" briefing (pre-feature containers don't).
|
|
888
|
-
reject_unsafe_host_directory "$task_workspace/.uai" \
|
|
889
|
-
"the task workspace marker directory"
|
|
890
|
-
mkdir -p "$task_workspace/.uai"
|
|
891
894
|
: > "$task_workspace/.uai/files-mounted"
|
|
892
895
|
fi
|
|
893
896
|
|
|
@@ -1328,7 +1331,7 @@ done < <(jq -c '.[]' <<<"$projects_json")
|
|
|
1328
1331
|
# uid-501 macOS host. The sanitizer above repairs its rewritten control files
|
|
1329
1332
|
# on every later resume.
|
|
1330
1333
|
step "WORKTREE_FAILED" "share task files with container"
|
|
1331
|
-
mkdir -p "$task_uai_dir"
|
|
1334
|
+
mkdir -p "$task_uai_dir"
|
|
1332
1335
|
# The shared group may be a broad host group (for example macOS `staff`). Keep
|
|
1333
1336
|
# its writable leaves behind host-only parents; Docker bind-mounts the exact
|
|
1334
1337
|
# workspace/repository roots, so node does not need host-path traversal here.
|
|
@@ -1376,7 +1379,7 @@ fi
|
|
|
1376
1379
|
|
|
1377
1380
|
step "RENDER_FAILED" "generate compose"
|
|
1378
1381
|
|
|
1379
|
-
mkdir -p "$task_uai_dir"
|
|
1382
|
+
mkdir -p "$task_uai_dir"
|
|
1380
1383
|
|
|
1381
1384
|
STANDARD_CONTAINER_DIR="${UAI_STANDARD_CONTAINER_ASSETS_DIR:-$SCRIPT_DIR/../../images/standard/container}"
|
|
1382
1385
|
if ! STANDARD_CONTAINER_DIR=$(cd "$STANDARD_CONTAINER_DIR" && pwd -P); then
|