Pass exec environment paths through the product entry #207

Merged
weichen merged 3 commits from fix/product-exec-env into main 2026-10-15 14:44:48 +00:00
Owner

Why: RDM starts the server through extension.Main, which dropped ExecDepsDir, ExecWorkspace, and ExecEnvRoot, so a deployed product ignored the layered Python environment.

Evidence: go test ./pkg/extension/link/ passed locally (SELF). CI on this head is the merge gate.

Impact: a product binary reads the same AGENT_SYSTEM_EXEC_* variables as the base CLI when its own flags are empty; explicit Options still win.

Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/570

Why: RDM starts the server through extension.Main, which dropped ExecDepsDir, ExecWorkspace, and ExecEnvRoot, so a deployed product ignored the layered Python environment. Evidence: go test ./pkg/extension/link/ passed locally (SELF). CI on this head is the merge gate. Impact: a product binary reads the same AGENT_SYSTEM_EXEC_* variables as the base CLI when its own flags are empty; explicit Options still win. Refs: https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/pulls/570
weichen added 1 commit 2026-10-15 14:36:20 +00:00
Pass exec environment paths through the product entry
ci / vet-and-test (pull_request) Successful in 1m1s
50d25ac690
Why: RDM starts the server through extension.Main, which dropped ExecDepsDir, ExecWorkspace, and ExecEnvRoot, so a deployed product ignored the layered Python environment.
Evidence: go test ./pkg/extension/link/ passed on this worktree (SELF).
Impact: a product binary reads the same AGENT_SYSTEM_EXEC_* variables as the base CLI when its own flags are empty; explicit Options still win.
Refs: Agent-System-Dev PR 570
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-15 14:38:27 +00:00
Write the pip dry-run report to a file
ci / vet-and-test (pull_request) Successful in 1m7s
c5a4c6306b
Why: pip --report - mixes Collecting progress and the JSON document on stdout, so the first base-layer resolve failed before any wheel was stored.
Evidence: go test ./internal/execenv/ passed on this worktree (SELF). A live dry-run of python-docx showed the progress text before the JSON object.
Impact: resolve reads report.json and ignores the progress stream. Package selection is unchanged.
Refs: Agent-System-Backend PR 207
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-15 14:43:15 +00:00
Execute the managed interpreter through its real path
ci / vet-and-test (pull_request) Successful in 1m3s
28544cfe5d
Why: the sandbox hides /home and only remounts the resolved Python prefix, so executing python/current/bin/python3 failed before the base layer could be imported.
Evidence: go test ./internal/tools/ -run TestResolveInterpreterFollowsManagedSymlink passed, and env doctor against the built base layer printed doctor ok (SELF).
Impact: run_python and env doctor follow the symlink into the mounted prefix or /usr/bin/python3. The layer and the prefix mount stay the same.
Refs: Agent-System-Backend PR 207
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen merged commit 7aa624370a into main 2026-10-15 14:44:48 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#207